You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
Functions manipulating dgTMatrix work when run in interactive R session but fail with Rscript. Error message produced:
This appears to be an issue with Rscript not loading
methods
automatically. The workaround is tolibrary(methods)
when running as a script. Also affects Jupyter Notebook sessions. See StackOverflowThe text was updated successfully, but these errors were encountered: