Bob the Builder Bob the Builder - 1 month ago 9
R Question

R Installing rCharts on R 3.2.1

I had a little bit of trouble installing rCharts for R version 3.2.1. I have referenced a question that addresses an earlier version of R, but the solution did not work for me exactly. [Link]

It would appear that there wasn't a rCharts package for R that can be installed using the

install.packages()
command

Answer

I hope my way helps.

#Install rtools33.exe from <https://cran.r-project.org/bin/windows/Rtools/Rtools33.exe>
install.packages("devtools")
install.packages("Rcpp")
library(devtools)
library(Rcpp)
install_github('ramnathv/rCharts')

I have tested this method on a clean install of R 3.2.1 x64.

> #Install rtools33.exe from <https://cran.r-project.org/bin/windows/Rtools/Rtools33.exe>
> install.packages("devtools")
also installing the dependencies ‘stringi’, ‘magrittr’, ‘BH’, ‘mime’, ‘curl’, ‘R6’, ‘stringr’, ‘bitops’, ‘brew’, ‘Rcpp’, ‘xml2’, ‘httr’, ‘RCurl’, ‘memoise’, ‘whisker’, ‘evaluate’, ‘digest’, ‘rstudioapi’, ‘jsonlite’, ‘roxygen2’, ‘rversions’, ‘git2r’

trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.2/stringi_0.5-5.zip'
Content type 'application/zip' length 14261819 bytes (13.6 MB)
downloaded 13.6 MB

trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.2/magrittr_1.5.zip'
Content type 'application/zip' length 150843 bytes (147 KB)
downloaded 147 KB

trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.2/BH_1.58.0-1.zip'
Warning in install.packages :
  InternetOpenUrl failed: 'The operation timed out'
Error in download.file(url, destfile, method, mode = "wb", ...) : 
  cannot open URL 'http://cran.rstudio.com/bin/windows/contrib/3.2/BH_1.58.0-1.zip'
Warning in install.packages :
  download of package ‘BH’ failed
trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.2/mime_0.3.zip'
Content type 'application/zip' length 35080 bytes (34 KB)
downloaded 34 KB

trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.2/curl_0.9.1.zip'
Content type 'application/zip' length 2240662 bytes (2.1 MB)
downloaded 2.1 MB

trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.2/R6_2.1.0.zip'
Content type 'application/zip' length 141940 bytes (138 KB)
downloaded 138 KB

trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.2/stringr_1.0.0.zip'
Content type 'application/zip' length 82883 bytes (80 KB)
downloaded 80 KB

trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.2/bitops_1.0-6.zip'
Content type 'application/zip' length 36015 bytes (35 KB)
downloaded 35 KB

trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.2/brew_1.0-6.zip'
Content type 'application/zip' length 104729 bytes (102 KB)
downloaded 102 KB

trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.2/Rcpp_0.12.0.zip'
Content type 'application/zip' length 3112728 bytes (3.0 MB)
downloaded 3.0 MB

trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.2/xml2_0.1.1.zip'
Content type 'application/zip' length 3172447 bytes (3.0 MB)
downloaded 3.0 MB

trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.2/httr_1.0.0.zip'
Content type 'application/zip' length 382920 bytes (373 KB)
downloaded 373 KB

trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.2/RCurl_1.95-4.7.zip'
Content type 'application/zip' length 2858472 bytes (2.7 MB)
downloaded 2.7 MB

trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.2/memoise_0.2.1.zip'
Content type 'application/zip' length 16871 bytes (16 KB)
downloaded 16 KB

trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.2/whisker_0.3-2.zip'
Content type 'application/zip' length 64764 bytes (63 KB)
downloaded 63 KB

trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.2/evaluate_0.7.zip'
Content type 'application/zip' length 36951 bytes (36 KB)
downloaded 36 KB

trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.2/digest_0.6.8.zip'
Content type 'application/zip' length 151951 bytes (148 KB)
downloaded 148 KB

trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.2/rstudioapi_0.3.1.zip'
Content type 'application/zip' length 27430 bytes (26 KB)
downloaded 26 KB

trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.2/jsonlite_0.9.16.zip'
Content type 'application/zip' length 1009857 bytes (986 KB)
downloaded 986 KB

trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.2/roxygen2_4.1.1.zip'
Content type 'application/zip' length 594071 bytes (580 KB)
downloaded 580 KB

trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.2/rversions_1.0.2.zip'
Content type 'application/zip' length 16374 bytes (15 KB)
downloaded 15 KB

trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.2/git2r_0.10.1.zip'
Content type 'application/zip' length 1554276 bytes (1.5 MB)
downloaded 1.5 MB

trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.2/devtools_1.8.0.zip'
Content type 'application/zip' length 338333 bytes (330 KB)
downloaded 330 KB

package ‘stringi’ successfully unpacked and MD5 sums checked
package ‘magrittr’ successfully unpacked and MD5 sums checked
package ‘mime’ successfully unpacked and MD5 sums checked
package ‘curl’ successfully unpacked and MD5 sums checked
package ‘R6’ successfully unpacked and MD5 sums checked
package ‘stringr’ successfully unpacked and MD5 sums checked
package ‘bitops’ successfully unpacked and MD5 sums checked
package ‘brew’ successfully unpacked and MD5 sums checked
package ‘Rcpp’ successfully unpacked and MD5 sums checked
package ‘xml2’ successfully unpacked and MD5 sums checked
package ‘httr’ successfully unpacked and MD5 sums checked
package ‘RCurl’ successfully unpacked and MD5 sums checked
package ‘memoise’ successfully unpacked and MD5 sums checked
package ‘whisker’ successfully unpacked and MD5 sums checked
package ‘evaluate’ successfully unpacked and MD5 sums checked
package ‘digest’ successfully unpacked and MD5 sums checked
package ‘rstudioapi’ successfully unpacked and MD5 sums checked
package ‘jsonlite’ successfully unpacked and MD5 sums checked
package ‘roxygen2’ successfully unpacked and MD5 sums checked
package ‘rversions’ successfully unpacked and MD5 sums checked
package ‘git2r’ successfully unpacked and MD5 sums checked
package ‘devtools’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
    C:\Users\Riorank\AppData\Local\Temp\RtmpsDrKB1\downloaded_packages
> install.packages("Rcpp")
trying URL 'http://cran.rstudio.com/bin/windows/contrib/3.2/Rcpp_0.12.0.zip'
Content type 'application/zip' length 3112728 bytes (3.0 MB)
downloaded 3.0 MB

package ‘Rcpp’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
    C:\Users\Riorank\AppData\Local\Temp\RtmpsDrKB1\downloaded_packages
> library(devtools)
> library(Rcpp)
> install_github('ramnathv/rCharts')
Downloading github repo ramnathv/rCharts@master
Installing rCharts
Installing 3 packages: plyr, RJSONIO, yaml
package ‘plyr’ successfully unpacked and MD5 sums checked
package ‘RJSONIO’ successfully unpacked and MD5 sums checked
package ‘yaml’ successfully unpacked and MD5 sums checked
"C:/R/R-32~1.1/bin/x64/R" --no-site-file --no-environ --no-save --no-restore CMD INSTALL  \
  "C:/Users/Riorank/AppData/Local/Temp/RtmpsDrKB1/devtoolsf0cd5175c6/ramnathv-rCharts-389e214"  \
  --library="C:/R/R-3.2.1/library" --install-tests 

* installing *source* package 'rCharts' ...
** R
** demo
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (rCharts)
> 
Comments