Problems Installing R Word Cloud Package - Mint 17.1

Trying to install Word-Cloud package to custom library, however, getting the following error. It looks like it downloads the package successfully, but bombs during installation. I suspect the problem is with trying to install in the custom library and the second line of g ++, but not sure how to fix it. I am running Mint 17.1 64-bit.

Any suggestions would be appreciated.

install.packages("wordcloud", lib="/media/Data/RPackages")
trying URL 'http://mirrors.nics.utk.edu/cran/src/contrib/wordcloud_2.5.tar.gz'
Content type 'application/x-gzip' length 40861 bytes (39 KB)
==================================================
downloaded 39 KB

.Rprofile: Setting CMU repositoryn
* installing *source* package ‘wordcloud’ ...
** package ‘wordcloud’ successfully unpacked and MD5 sums checked
** libs
g++ -I/usr/share/R/include -DNDEBUG   -I"/media/Data/RPackages/Rcpp/include"   -fpic  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g  -c layout.cpp -o layout.o
g++ -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -Wl,-z,relro -o wordcloud.so layout.o .Rprofile: Setting CMU repositoryn -L/usr/lib/R/lib -lR
g++: error: .Rprofile:: No such file or directory
g++: error: Setting: No such file or directory
g++: error: CMU: No such file or directory
g++: error: repositoryn: No such file or directory
make: *** [wordcloud.so] Error 1**strong text**
ERROR: compilation failed for package ‘wordcloud’
* removing ‘/media/Data/RPackages/wordcloud’
Warning in install.packages :
  installation of package ‘wordcloud’ had non-zero exit status

The downloaded source packages are in
    ‘/tmp/RtmpdScavH/downloaded_packages’

      

+3


source to share


1 answer


Figured out the problem. In my .Rprofile I had the following:

cat(".Rprofile: Setting CMU repositoryn")
r = getOption("repos") # hard code the Oakridge repo for CRAN
r["CRAN"] = "http://mirrors.nics.utk.edu/cran/"
options(repos = r)
rm(r)

      

I removed the first line, changing it to the following:



r = getOption("repos") # hard code the Oakridge repo for CRAN
r["CRAN"] = "http://mirrors.nics.utk.edu/cran/"
options(repos = r)
rm(r)

      

Reboot R and install work. I think the WordCount package didn't like the first line.

+2


source







All Articles