Open echomsky opened 7 years ago
I have exactly same problem too.
Use R_DEFAULT_PACKAGES= Rscript xxx.R
solves the problem
Well I believe it's a bug in h5, please refer to this: https://stat.ethz.ch/pipermail/r-devel/2017-December/075311.html
@sunyj could you please expand on your explanation of R_DEFAULT_PACKAGES= Rscript xxx.R
to solve this issue? Perhaps by providing a more concrete example?
EDIT: never mind, got it
Hi, it took me a while to understand your answer @sunyj, but indeed, it works for me too.
To add a bit of context: Instead of using, to execute a script in a bash.
$ Rscript myScript.R
one need to prefix the command by R_DEFAULT_PACKAGES=
.
$ R_DEFAULT_PACKAGES= Rscript myScript.R
Many thanks for creating and maintaining this package.
It appears that the package is missing some symbols from
methods
. The following test script runs successfully from an interactive session (which loadsmethods
by default), but fails when run from an Rscript:The following error is reported:
The Rscript runs successfully if
methods
is explicitly loaded beforeh5
: