Warning “The following object(s) are masked _from_ ‘package: <Package_Name> ’ when executing data functions in Spotfire

Warning “The following object(s) are masked _from_ ‘package: <Package_Name> ’ when executing data functions in Spotfire

book

Article ID: KB0082498

calendar_today

Updated On:

Products Versions
Spotfire Statistics Services All Versions

Description

Sometimes while executing data functions from TIBCO Spotfire, you may get warning messages which about some objects being masked, like:
The following object(s) are masked _from_ ‘package:<Package_Name>

For example, while executing a script using the package ‘dplyr’, you may get warnings like:
Warning:
The following object(s) are masked _from_ 'package:stats':

  filter, lag

The following object(s) are masked _from_ 'base':      
   
   intersect, setdiff, setequal, union


 

Issue/Introduction

Warning “The following object(s) are masked _from_ ‘package: ’ when executing data functions in Spotfire

Resolution

These warnings are all expected and normal, and they are coming from the TERR or R session that is processing the data function's script. 

When an R or TERR script loads a package that requires access to another R package, the second package (or its namespace) will be loaded. When an R package (or its namespace) is loaded, R and TERR check to see whether any of the R objects in the package have the same name as objects in other packages that are already loaded into the R or TERR session's search() path. When such objects with the same name are found, informational warnings are issued to tell the user that the objects in the newly loaded package (or namespace) will be used.

These warnings are not an issue, but you will need to ensure your script is referencing the correct objects (since multiple have the same name) otherwise you may have errors or unexpected results.

Additional Information

External: What does “The following object is masked from 'package:xxx'” mean? External: How does R handle overlapping object names?