-
Notifications
You must be signed in to change notification settings - Fork 41
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
Can't coerce to transaction using as (df, "transactions") when executed with Rscript #20
Comments
Ensure that the dependencies of the arules package are loaded. |
What are the dependent package I need to load? |
Hmmmm the same lines of code are working for me, both in RStudio and RScript, event without loading "methods" explicitly...Do you have any other possible packages in the environment that could overwrite the definition of the What OS and R version are you using? Also, try to reinstall the package with |
@nirsisense is correct. This has nothing to do with arules. You need to explicitly load methods when you use Rscript. |
ok, thanks. It works now |
Hi,
I'm trying to run the following script:
data <- list(
c("a","b","c"),
c("a","b"),
c("a","b","d"),
c("b","e"),
c("b","c","e"),
c("a","d","e"),
c("a","c"),
c("a","b","d"),
c("c","e"),
c("a","b","d","e")
)
as(data, "transactions")
through command line Rscript and get an error:
Error: could not find function "as"
Execution halted
The text was updated successfully, but these errors were encountered: