masked(where=1) Splus MASKED [directory]
The utility MASKED prints, on the standard output, object names which are common to both the specified directory and some directory named in S_PATH.
In both cases, object modes are ignored.
A search for masked objects is useful when S-PLUS functions and datasets do not appear to behave as they should. In extreme cases it may not even be possible to start S-PLUS because some critical function is masked (a function used in .First, for instance); in this case use the utility MASKED from the shell.
c <- function(...) cat("My c function called.\n") # now system function c is masked Warning messages: assigning "c" masks an object of the same name on database 4 c(1,2,3) # will find the new c, not the system c My c function called. masked() [1] "c" remove("c") length <- function(...) stop("system length function masked") # now system function length is masked Warning messages: assigning "length" masks an object of the same name on database 4 masked() # cannot print the answer Error in length(class(x)): system length function masked cat(masked(), "\n") # cat calls no further functions length remove("length") % Splus MASKED my_funs_dir # check working directory 'my_funs_dir'