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

calling NMF::nmf without library(NMF) #114

Open
gdkrmr opened this issue Jun 15, 2018 · 1 comment
Open

calling NMF::nmf without library(NMF) #114

gdkrmr opened this issue Jun 15, 2018 · 1 comment

Comments

@gdkrmr
Copy link

gdkrmr commented Jun 15, 2018

When calling nmf from a fresh R session (without calling library(NMF) first):

ints_trn <- matrix(seq(0, 98, by = 2), ncol = 5)
tmp <- NMF::nmf(t(ints_trn), rank = 2, nrun = 10, seed = 13)

Gives the following error:

Error in path.package(pkg) : none of the packages are loaded
@luca-dex
Copy link

Package NMF is doing a lot of stuff in the background when is attached. The only way I found to be able to use it as a dependancy in another package, is to move it from the Imports section to the Depends section to have it attached insted of loaded.

danro9685/SparseSignatures#4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants