Displaying 3 results from an estimated 3 matches for "__path__".
2009 Aug 21
2
Lightweight 'package' idea.
...he master source for R functions
* Don't see the functions in ls()
* After editing R, make it easy to update the definitions visible to
R (unlike rebuilding and reloading a package).
So I wrote these two in a few mins:
loadDir <- function(dir){
e = attach(NULL,name=dir)
assign("__path__",dir,envir=e)
reloadDir(e)
e
}
reloadDir <- function(e){
path = get("__path__",e)
files = list.files(path,".R$",full.names=TRUE,recursive=TRUE,ignore.case=TRUE)
for(f in files){
sys.source(f,envir=e)
}
}
Usage is something like:
lib1 = loadDir("...
2016 Aug 25
2
lnt issue- Could not find required distribution six==1.9.0
...l-ZBhMFI/six-1.9.0/setup.cfg*
*Running six-1.9.0/setup.py -q bdist_egg --dist-dir
/tmp/easy_install-ZBhMFI/six-1.9.0/egg-dist-tmp-fhACLO*
*no previously-included directories found matching 'documentation/_build'*
*zip_safe flag not set; analyzing archive contents...*
*six: module references __path__*
*six 1.8.0 is already the active version in easy-install.pth*
*Installed
/home/xxx/xxx/workBox/lib/python2.7/site-packages/six-1.8.0-py2.7.egg*
*error: Could not find required distribution six==1.9.0*
*When I run lnt, I am getting the following error-*
*pkg_resources.DistributionNotFound: six==1...
2011 Feb 11
3
Writing R packages in an easier way?
Dear R colleagues,
is there an easier way to write R packages for the own use - without RTools and TeX?
With R versions < 2.10.0 it was very easy to write a package. Under the path
with the package name you wrote a description file and built some directories
like "help", "html" and "R" with the special files in a "hand-operated" way. In
the next step