2015-08-04 41 views
8

पर rCharts को स्थापित करना मुझे आर संस्करण 3.2.1 के लिए rCharts इंस्टॉल करने में कुछ परेशानी थी। मैंने एक प्रश्न का संदर्भ दिया है जो आर के पहले संस्करण को संबोधित करता है, लेकिन समाधान वास्तव में मेरे लिए काम नहीं करता है। [Link]आर आर 3.4.2 x64

ऐसा लगता है कि वहाँ आर के लिए एक rCharts पैकेज कि install.packages() आदेश

3.2.2 64

3.4.2 x64 के लिए अपडेट किया गया के लिए अपडेट किया गया का उपयोग कर स्थापित किया जा सकता नहीं था

+0

संभावित डुप्लिकेट [मुझे "पैकेज 'xxx' से कैसे निपटना चाहिए (आर संस्करण xyz के लिए)" चेतावनी एनजी?] (http://stackoverflow.com/questions/25721884/how-should-i-deal-with-package-xxx-is-not-available-for-r-version-xyz-wa) – zx8754

उत्तर

17

मुझे उम्मीद है कि मेरा रास्ता मदद करता है।

install.packages("devtools") 
install.packages("Rcpp") 
library(devtools) 
library(Rcpp) 
install_github('ramnathv/rCharts', force= TRUE) 

मैंने इस विधि का परीक्षण 3.4 3.4 x64 के क्लीन इंस्टॉल पर किया है।

R version 3.4.2 (2017-09-28) -- "Short Summer" 
Copyright (C) 2017 The R Foundation for Statistical Computing 
Platform: x86_64-w64-mingw32/x64 (64-bit) 

R is free software and comes with ABSOLUTELY NO WARRANTY. 
You are welcome to redistribute it under certain conditions. 
Type 'license()' or 'licence()' for distribution details. 

R is a collaborative project with many contributors. 
Type 'contributors()' for more information and 
'citation()' on how to cite R or R packages in publications. 

Type 'demo()' for some demos, 'help()' for on-line help, or 
'help.start()' for an HTML browser interface to help. 
Type 'q()' to quit R. 

[Workspace loaded from ~/.RData] 

> install.packages("devtools") 
Warning in install.packages : 
    cannot open URL 'http://www.stats.ox.ac.uk/pub/RWin/src/contrib/PACKAGES.rds': HTTP status was '404 Not Found' 
Installing package into ‘C:/Users/frank/Documents/R/win-library/3.4’ 
(as ‘lib’ is unspecified) 
Warning in install.packages : 
    cannot open URL 'http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/3.4/PACKAGES.rds': HTTP status was '404 Not Found' 
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/devtools_1.13.3.zip' 
Content type 'application/zip' length 443924 bytes (433 KB) 
downloaded 433 KB 

package ‘devtools’ successfully unpacked and MD5 sums checked 

The downloaded binary packages are in 
    C:\Users\frank\AppData\Local\Temp\RtmpEJRBVY\downloaded_packages 
> install.packages("Rcpp") 
Installing package into ‘C:/Users/frank/Documents/R/win-library/3.4’ 
(as ‘lib’ is unspecified) 
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/Rcpp_0.12.13.zip' 
Content type 'application/zip' length 4353971 bytes (4.2 MB) 
downloaded 4.2 MB 

package ‘Rcpp’ successfully unpacked and MD5 sums checked 

The downloaded binary packages are in 
    C:\Users\frank\AppData\Local\Temp\RtmpEJRBVY\downloaded_packages 
> library(devtools) 
> library(Rcpp) 
> install_github('ramnathv/rCharts') 
Skipping install of 'rCharts' from a github remote, the SHA1 (479a4f98) has not changed since last install. 
    Use `force = TRUE` to force installation 
> install.packages("devtools") 
Error in install.packages : Updating loaded packages 
> install.packages("Rcpp") 
Error in install.packages : Updating loaded packages 
> library(devtools) 
> library(Rcpp) 
> install_github('ramnathv/rCharts', force= TRUE) 
Downloading GitHub repo ramnathv/[email protected] 
from URL https://api.github.com/repos/ramnathv/rCharts/zipball/master 

Restarting R session... 

> install.packages("devtools") 
Warning in install.packages : 
    cannot open URL 'http://www.stats.ox.ac.uk/pub/RWin/src/contrib/PACKAGES.rds': HTTP status was '404 Not Found' 
Installing package into ‘C:/Users/frank/Documents/R/win-library/3.4’ 
(as ‘lib’ is unspecified) 
Warning in install.packages : 
    cannot open URL 'http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/3.4/PACKAGES.rds': HTTP status was '404 Not Found' 
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/devtools_1.13.3.zip' 
Content type 'application/zip' length 443924 bytes (433 KB) 
downloaded 433 KB 

package ‘devtools’ successfully unpacked and MD5 sums checked 

The downloaded binary packages are in 
    C:\Users\frank\AppData\Local\Temp\RtmpiSWkVr\downloaded_packages 
> library(devtools) 
> library(Rcpp) 
> install_github('ramnathv/rCharts', force= TRUE) 
Downloading GitHub repo ramnathv/[email protected] 
from URL https://api.github.com/repos/ramnathv/rCharts/zipball/master 
Installing rCharts 
"C:/PROGRA~1/R/R-34~1.2/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL \ 
    "C:/Users/frank/AppData/Local/Temp/RtmpiSWkVr/devtools3ff09fd3b8/ramnathv-rCharts-479a4f9" \ 
    --library="C:/Users/frank/Documents/R/win-library/3.4" --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 
*** arch - i386 
*** arch - x64 
* DONE (rCharts) 
+1

विधि के लिए काम करता है आर 3.2.2 x64 भी। –

2

पहला जवाब मेरे लिए काम नहीं करता था। ज़िप फ़ाइल के रूप https://github.com/ramnathv/rCharts से पैकेज

डाउनलोड करें और

"C:\rchartsdownload" 

करने के लिए इसे फिर विस्तार, निम्नलिखित पैकेज इंस्टॉल:: लेकिन कोशिश यह एक

install.packages("devtools") 
install.packages("Rcpp") 
install.packages("RCurl") 
install.packages("RJSONIO") 
library(devtools) 
library(Rcpp) 
library(RCurl) 
library(RJSONIO) 

और अंत में:

install.packages("C:/rchartsdownload", repos = NULL, type="source")