How to upload arules package in R

馋奶兔 提交于 2019-12-14 03:35:46

问题


I am not able to upload arules package Below is the following command I am using

library(arules)

I have downloaded the file from http://cran.r-project.org/web/packages/arules/index.html still it is not able to upload it. Can anyone help me out


回答1:


install.packages("arules")

pls. find below GUI - Screen for Rcmdr Package Open RStudio. Go to the “Packages” tab and click on “Install Packages”. The first time you’ll do this you’ll be prompted to choose a CRAN mirror. R will download all necessary files from the server you select here. Choose the location closest to you (probably “USA CA 1” or “USA CA 2”, which are housed at UC Berkeley and UCLA, respectively).

Install packages in Windows Start typing “Rcmdr” until you see it appear in a list. Select the first option (or finish typing Rcmdr), ensure that “Install dependencies” is checked, and click “Install”. Install Rcmdr in Windows Wait while all the parts of the R Commander package are installed.




回答2:


I had a similar problem. I solve it using

#install and load devtools to install directly from github
install("devtools")    
library("devtools")
install_github("mhahsler/arules")



回答3:


If you want to install "arules" package, you may not be able to install it just using the code below. << install.packages("arules") >>

follow the steps in order to solve problem:

  1. go to the package's address and download it manually.you will find it in the link below: https://cran.r-project.org/web/packages/arules/index.html

  2. If you are using R-Studio just install that package you have got, by "tools" menu in your IDE (R-studio) Tools->Install packages->...

brows the file in your computer and install it.

  1. go to the command line and using library(arules) function test the package. If there is still an error it could belong to incompatibility of the package with the version of R (Not R-Studio or any other IDE that you are using), just upgrade R and try installation period again.



回答4:


I had a related problem where I could not install arules after being able to successfully install many libraries. I finally learned that I needed to update to 3.4 for arules. In order to do that, I followed duckmayr's answer HERE. Then, I was able to install arules with no issues, and it worked.



来源:https://stackoverflow.com/questions/21453732/how-to-upload-arules-package-in-r

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!