HertieDataScience / SyllabusAndLectures

Hertie School of Governance Introduction to Collaborative Social Science Data Analysis
MIT License
37 stars 60 forks source link

Installing rCharts package problems #25

Closed oliverbott closed 9 years ago

oliverbott commented 9 years ago

Hi everybody, I am wondering whether you guys are also having issues with installing the 'rCharts' package for R.

When using install.packages("rCharts") I get the following error message:

Warning in install.packages :
  package ‘rCharts’ is not available (for R version 3.1.1) 

When trying to use the code require(devtools) and install_github('rCharts', 'ramnathv') from the website http://ramnathv.github.io/rCharts/ I get:

Downloading github repo ramnathv/rCharts@master
Installing rCharts
"C:/PROGRA~1/R/R-31~1.1/bin/i386/R" --vanilla CMD INSTALL  \
  "C:\Users\a6p\AppData\Local\Temp\Rtmp8qMYZJ\devtools127413d7605b\ramnathv-rCharts-929875d"  \
  --library="C:/Users/a6p/Documents/R/win-library/3.1" --install-tests 

* installing *source* package 'rCharts' ...
** R
** demo
** inst
** preparing package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : 
  there is no package called 'Rcpp'
ERROR: lazy loading failed for package 'rCharts'
* removing 'C:/Users/a6p/Documents/R/win-library/3.1/rCharts'
Error: Command failed (1)
In addition: Warning message:
Username parameter is deprecated. Please use ramnathv/rCharts 

Have you been able to install the rCharts package? Can you help out? Thanks a lot.

christophergandrud commented 9 years ago

Thanks for posting the full error message. It looks like you need to install Rcpp. This is available on CRAN so you should be able to install it with install.packages('Rcpp').

Also, the final warning is telling you to use install_github('ramnathv/rCharts') rather than install_github('rCharts', 'ramnathv'). Though this shouldn't have anything to do with the installation failing.

fzhang988 commented 9 years ago

To whom it may concern: I tried to follow the instruction on this website: http://ramnathv.github.io/rCharts/ Here is my R console information:

install.packages('Rcpp') install_github('rCharts', 'ramnathv')

Downloading github repo ramnathv/rCharts@master Installing rCharts "C:/PROGRA~1/R/R-31~1.1/bin/i386/R" --vanilla CMD INSTALL "C:/Users/Administrator/AppData/Local/Temp/RtmpAxG5xa/devtools23d4d8e3233/ramnathv-rCharts-389e214" --library="C:/Program \ Files/R/R-3.1.1/library" --install-tests

* R * demo * inst * preparing package for lazy loading \ help ** installing help indices * building package indices \ testing if installed package can be loaded

names(iris) = gsub(".", "", names(iris)) rPlot(SepalLength ~ SepalWidth | Species, data = iris, color = 'Species', type = 'point') ERROR: No"rPlot" function

My question: Why is there No"rPlot" function?

Thanks!

christophergandrud commented 9 years ago

In the code above it doesn't look like you've loaded the package (library(rCharts)). I would give that a shot first.

fzhang988 commented 9 years ago

Now, it worked. Thanks!