search for: h5ex2

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

Did you mean: h5ex
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)
...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 need that as it loads methods just like R itself does avoiding the confusion: edd at bud:/tmp$ cat h5ex2.R library(h5) name <- tempfile() f <- h5file(name) file.remove(name) edd at bud:/tmp$ r h5ex2.R edd at bud:/tmp$ Dirk -- http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
2017 Dec 26
2
Rscript fails with some packages (for example, h5)
...[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 need that as it loads methods > just > like R itself does avoiding the confusion: > > edd at bud:/tmp$ cat h5ex2.R > library(h5) > name <- tempfile() > f <- h5file(name) > file.remove(name) > edd at bud:/tmp$ r h5ex2.R > edd at bud:/tmp$ > > Dirk > > -- > http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org > [[alternative HTML version...