Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Not able to install packages in R with install.packages() [closed]

I have installed R Version 3.0.2. I am trying to run association analysis on a dataset.

While trying to install the arules package, using the code:

install.packages(“arules”)

I get and error:

Error: unexpected input in "install.packages(“arules")

Can you guide as to how I can install this package and use it to run association on an imported txt file using R?

like image 827
user3278533 Avatar asked Feb 14 '23 21:02

user3278533


1 Answers

You appear to be using "smartquotes" instead of straight quotes like " around arules. R cannot recognize these. Change to straight quotes and everything should work.

like image 53
Thomas Avatar answered Feb 16 '23 11:02

Thomas