Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sparse matrix methods fail when run with Rscript #1

Open
kbseah opened this issue Jun 20, 2018 · 0 comments
Open

Sparse matrix methods fail when run with Rscript #1

kbseah opened this issue Jun 20, 2018 · 0 comments
Labels

Comments

@kbseah
Copy link
Owner

kbseah commented Jun 20, 2018

Functions manipulating dgTMatrix work when run in interactive R session but fail with Rscript. Error message produced:

Error in validObject(r) : 
  invalid class “dgTMatrix” object: Not a valid 'Mnumeric' class object
Calls: msimat -> <Anonymous> -> validObject
Execution halted

This appears to be an issue with Rscript not loading methods automatically. The workaround is to library(methods) when running as a script. Also affects Jupyter Notebook sessions. See StackOverflow

@kbseah kbseah added the wontfix label Jun 29, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant