[R] R package & namespace questions

kestickler@netscape.net kestickler at netscape.net
Tue Sep 18 00:47:36 CEST 2001


i'm unclear on ".Internal" functions in R.
Do ".Internal" functions mean:
1) functions (to be) used only inside a package (like private methods)
2) do they mean functions that call upon the R - C interface?

Related to this, how are namespaces handled in R?
It seems that i could write a function read.table(), place it in my own file, source the file and there would be *no warning* that it interferes with the base package's read.table() function? This seems quite unsafe to me coming from a Java background where namespaces are very controlled.

I guess my question boils down to asking if the object manager in R maintains function names as: functionname or as pkg::functionname

Finally, a function i wrote, placed in a file.R and sourc'ed:
misc.expand_table <- function(vec, n)
# something

seems to redefine the base function "table".

Thanks for any suggestions or comments.



r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list