search for: loaddir

Displaying 2 results from an estimated 2 matches for "loaddir".

Did you mean: uploaddir
2009 Aug 21
2
Lightweight 'package' idea.
...convert over on R-help). My requirements were thus: * .R files as the 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.s...
2008 Oct 14
2
Fact load failure
...ter node. I get: # puppetd --test --debug info: Loading fact cib_epoch /usr/lib/ruby/site_ruby/1.8/puppet/network/client/master.rb:420:in `load'': /var/puppet/facts/cib_epoch.rb:17: syntax error (SyntaxError) from /usr/lib/ruby/site_ruby/1.8/puppet/network/client/master.rb:420:in `loaddir'' from /usr/lib/ruby/1.8/timeout.rb:56:in `timeout'' from /usr/lib/ruby/site_ruby/1.8/puppet/network/client/master.rb:419:in `loaddir'' from /usr/lib/ruby/site_ruby/1.8/puppet/network/client/master.rb:415:in `each'' from /usr/lib/ruby/...