Displaying 1 result from an estimated 1 matches for "pkname".
Did you mean:
pkgname
2011 Apr 21
1
Package check issue: Rprofile.site is not used
...he context is the following:
1- /usr/lib/R/etc/Rprofile.site contains the following line of R code:
options(my_path='/some/path/
to/myfile.txt')
2- mypackage has a NAMESPACE, and a .onLoad function is included in a zzz.R
file. Its content is the following:
.onLoad <- function(libname, pkname) {
# print(options()) # for testing
myf()
}
3- myf is a function distributed with mypackage. At one point of its
execution, this function tries to source /some/path/to/myfile.txt using the
following call: source(file = options()$my_path, local = TRUE)
When I start as R session and call 'o...