true.file.name(what, where=1, write=T, purpose=0)
length(search())
), or the name of
the database in the search list.
TRUE
, a mapping of the name will be performed regardless of whether
the object exists.
Otherwise, an empty string is returned if the mapping is not yet defined.
0
for
an ordinary database,
1
for a methods meta-database, or
2
for
a documentation database.
what
in the directory.
If
what
is not a legal file name (e.g., too long or containing characters
not allowed, or conflicting with special names used by S-PLUS), the resulting
character string will be constructed by S-PLUS. Currently it is made up of
two underline characters plus a number.
The character string returned should be used very carefully. If you're not sure whether you ought to be working at this low level, chances are you shouldn't be. In particular, moving or removing files of this name is dangerous because it can break S-PLUS's understanding of the corresponding database.
"T/d" <- 999 true.file.name("T/d") [1] "__1"