简体   繁体   中英

sentiment package installation from local zip file issue

I am trying to find a way to install sentiment package in R for performing sentiment analysis. I searched in all d repositories but it isn't available.I am trying to manually install sentiment_0.2.tar file from local directory but i get this:

Error in read.dcf(file.path(pkgname, "DESCRIPTION"), c("Package", "Type")) : cannot open the connection In addition: Warning messages: 1: In unzip(zipname, exdir = dest) : error 1 in extracting from zip file 2: In read.dcf(file.path(pkgname, "DESCRIPTION"), c("Package", "Type")) : cannot open compressed file 'sentiment_0.2.tar.gz/DESCRIPTION', probable reason 'No such file or directory'

How do i resolve this problem? any valuable suggestions will be of great help.

Please try:

install.packages(file.choose(), repos = NULL, type="source")

This should allow you to select the file itself and install the package subsequently. Also, please note that the package version may not be compatible with the current R version on your machine.

Thanks!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM