search for: h5ex

Displaying 3 results from an estimated 3 matches for "h5ex".

Did you mean: h5ex2
2017 Dec 26
2
Rscript fails with some packages (for example, h5)
Consider this script (with h5 installed): $ cat test.R library(h5) name <- tempfile() f <- h5file(name) file.remove(name) $ Rscript test.R Error in initialize(value, ...) : cannot use object of class "character" in new(): class "H5File" does not extend that class Calls: h5file -> new -> initialize -> initialize Execution halted $ /usr/lib64/R/bin/R --slave
2017 Dec 26
0
Rscript fails with some packages (for example, h5)
...alent to | setting it to a magic value, it's really confusing. I suggest remove this | feature. The more confusing part is that "methods" is missing 'by design' (as loading methods is marginally more expensive that other packages). Ie for your script edd at bud:/tmp$ cat h5ex.R library(methods) library(h5) name <- tempfile() f <- h5file(name) file.remove(name) edd at bud:/tmp$ Rscript h5ex.R [1] TRUE edd at bud:/tmp$ it all works if you just add `library(methods)` as seen in the first line. For what it is worth, littler's r does not...
2017 Dec 26
2
Rscript fails with some packages (for example, h5)
...#39;s really confusing. I suggest remove > this > | feature. > > The more confusing part is that "methods" is missing 'by design' (as > loading > methods is marginally more expensive that other packages). Ie for your > script > > edd at bud:/tmp$ cat h5ex.R > library(methods) > library(h5) > name <- tempfile() > f <- h5file(name) > file.remove(name) > edd at bud:/tmp$ Rscript h5ex.R > [1] TRUE > edd at bud:/tmp$ > > it all works if you just add `library(methods)` as seen in the first line....