Displaying 1 result from an estimated 1 matches for "my_test_f".
2009 Dec 02
1
How to export a function from a package and access it only by specifying the namespace?
...does (short line)
Version: 1.0
Date: 2009-10-26
Author: Who wrote it
Maintainer: Who to complain to <yourfault at somewhere.net>
Description: More about what it does (maybe more than one line)
License: What license is it under?
LazyLoad: yes
$ cat NAMESPACE
export(
my_test_g
)
$ ls R
my_test_f.R randomxx.R
$ for f in R/*.R; do echo $f; cat $f;done
R/my_test_f.R
my_test_f<-function() {
print("Hello")
}
R/randomxx.R
my_test_g<-function() {
print("Helloggg")
}
----------------------------------------
I install the package by
R CMD INSTALL -l /path/to/R_use...