Open iampawansingh opened 11 years ago
The tar file you downloaded does not seem to be correct. Here is the link of the tar.gz
file that you should download
https://github.com/ramnathv/rCharts/archive/master.tar.gz
You can then use
install.packages(path/to/tar/file, repos = NULL, type="source")
I am closing this issue. Reopen it if installation doesnt work even after you downloaded the file from the correct location.
Windows 7, 32 bit R3.0.1
I've tried your suggestions and am still having issues.
> find_rtools() # returned TRUE
> require(devtools)
> install_github('rCharts', 'ramnathv')
Installing github repo(s) rCharts/master from ramnathv
Downloading rCharts.zip from https://github.com/ramnathv/rCharts/archive/master.zip
Installing package from C:\Users\dmarx\AppData\Local\Temp\RtmpI1sr8h/rCharts.zip
Installing rCharts
"C:/PROGRA~1/R/R-30~1.1/bin/i386/R" --vanilla CMD INSTALL "C:\Users\dmarx\AppData\Local\Temp\RtmpI1sr8h\rCharts-master" \
--library="\\REGGAE/Users$/dmarx/Documents/R/win-library/3.0" --with-keep.source --install-tests
* installing *source* package 'rCharts' ...
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
*** arch - i386
Warning in library(pkg_name, lib.loc = lib, character.only = TRUE, logical.return = TRUE) :
there is no package called 'rCharts'
Error: loading failed
Execution halted
*** arch - x64
Warning in library(pkg_name, lib.loc = lib, character.only = TRUE, logical.return = TRUE) :
there is no package called 'rCharts'
Error: loading failed
Execution halted
ERROR: loading failed for 'i386', 'x64'
* removing '\\REGGAE/Users$/dmarx/Documents/R/win-library/3.0/rCharts'
Error: Command failed (1)
> package.URL = "https://github.com/ramnathv/rCharts/archive/master.tar.gz"
> destination.path = "C:\\sandbox\\rCharts.tar.gz"
> download.file(package.URL, destination.path)
trying URL 'https://github.com/ramnathv/rCharts/archive/master.tar.gz'
Content type 'application/x-gzip' length 3542107 bytes (3.4 Mb)
opened URL
downloaded 3.4 Mb
> install.packages(destination.path, repos = NULL, type="source")
Warning in install.packages :
package ‘C:\sandbox\rCharts.tar.gz’ is not available (for R version 3.0.1)
Installing package into ‘\\REGGAE/Users$/dmarx/Documents/R/win-library/3.0’
(as ‘lib’ is unspecified)
'\\REGGAE\Users$\dmarx\Documents'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported. Defaulting to Windows directory.
Warning in untar2(tarfile, files, list, exdir, restore_times) :
skipping pax global extended headers
* installing *source* package 'rCharts' ...
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
*** arch - i386
Warning in library(pkg_name, lib.loc = lib, character.only = TRUE, logical.return = TRUE) :
there is no package called 'rCharts'
Error: loading failed
Execution halted
*** arch - x64
Warning in library(pkg_name, lib.loc = lib, character.only = TRUE, logical.return = TRUE) :
there is no package called 'rCharts'
Error: loading failed
Execution halted
ERROR: loading failed for 'i386', 'x64'
* removing '\\REGGAE/Users$/dmarx/Documents/R/win-library/3.0/rCharts'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-30~1.1/bin/i386/R" CMD INSTALL -l "\\REGGAE\Users$\dmarx\Documents\R\win-library\3.0" "C:/sandbox/rCharts.tar.gz"' had status 1
Warning in install.packages :
installation of package ‘C:/sandbox/rCharts.tar.gz’ had non-zero exit status
Followed the direct-download method, but still failed:
install.packages("~/Downloads/rCharts-master.tar.gz", repos = NULL, type="source") Installing package into ‘/home/brian/R/x86_64-pc-linux-gnu-library/3.0’ (as ‘lib’ is unspecified) Warning in untar2(tarfile, files, list, exdir, restore_times) : skipping pax global extended headers ERROR: dependencies ‘RCurl’, ‘RJSONIO’, ‘whisker’, ‘yaml’ are not available for package ‘rCharts’
- removing ‘/home/brian/R/x86_64-pc-linux-gnu-library/3.0/rCharts’ Warning in install.packages : installation of package ‘/home/brian/Downloads/rCharts-master.tar.gz’ had non-zero exit status
R version 3.0.2 (2013-09-25) -- "Frisbee Sailing" Copyright (C) 2013 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu (64-bit)
You will need to install the dependencies first, and then install rCharts
as you did before.
deps = c('RCurl', 'RJSONIO', 'whisker', 'yaml')
for (dep in deps){
install.packages(dep)
}
Many thanks.
RCurl required
sudo apt-get install libcurl4-openssl-dev
in linux terminal
Glad you got it working. Would you mind posting on the rCharts Wiki a short note explaining the entire process of installation, along with your sessionInfo()
so that I can point it to other Linux users if they have trouble?
Thanks.
Done and done, thanks for your work on the package and for your assistance.
https://github.com/ramnathv/rCharts/wiki/Installation---dependencies-errors-in-Linux-OS-(Ubuntu)
Thanks a lot for writing up the details on the wiki. I will compile an FAQ that will link to these items!
I am having similar issues installing on a Windows 7 machine. I have tried the devtools method, as well as installing from zip/tar.gz
> install.packages("C:/WilsonD/Downloads/rCharts-master.tar.gz", repos = NULL, type = "source")
Installing package into ‘\\valley/UserData$/dwilson/My Documents/R/win-library/3.1’
(as ‘lib’ is unspecified)
Warning in untar2(tarfile, files, list, exdir, restore_times) :
skipping pax global extended headers
* 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
Warning in library(pkg_name, lib.loc = lib, character.only = TRUE, logical.return = TRUE) :
there is no package called 'rCharts'
Error: loading failed
Execution halted
*** arch - x64
Warning in library(pkg_name, lib.loc = lib, character.only = TRUE, logical.return = TRUE) :
there is no package called 'rCharts'
Error: loading failed
Execution halted
ERROR: loading failed for 'i386', 'x64'
* removing '\\valley/UserData$/dwilson/My Documents/R/win-library/3.1/rCharts'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-31~1.1/bin/x64/R" CMD INSTALL -l "\\valley\UserData$\dwilson\My Documents\R\win-library\3.1" "C:/WilsonD/Downloads/rCharts-master.tar.gz"' had status 1
Warning in install.packages :
installation of package ‘C:/WilsonD/Downloads/rCharts-master.tar.gz’ had non-zero exit status
Session information attached
> sessionInfo()
R version 3.1.1 (2014-07-10)
Platform: x86_64-w64-mingw32/x64 (64-bit)
locale:
[1] LC_COLLATE=English_Australia.1252 LC_CTYPE=English_Australia.1252 LC_MONETARY=English_Australia.1252 LC_NUMERIC=C
[5] LC_TIME=English_Australia.1252
attached base packages:
[1] grid stats graphics grDevices utils datasets methods base
other attached packages:
[1] downloader_0.3 devtools_1.5 gtable_0.1.2 reshape2_1.4 data.table_1.9.4 lubridate_1.3.3 scales_0.2.4 ggplot2_1.0.0
[9] ReporteRs_0.6.0 ReporteRsjars_0.0.2
loaded via a namespace (and not attached):
[1] chron_2.3-45 colorspace_1.2-4 digest_0.6.4 evaluate_0.5.5 httr_0.4 labeling_0.3 MASS_7.3-33 memoise_0.2.1 munsell_0.4.2
[10] parallel_3.1.1 plyr_1.8.1 proto_0.3-10 Rcpp_0.11.2 RCurl_1.95-4.3 rJava_0.9-6 stringr_0.6.2 tools_3.1.1 whisker_0.3-2
>
Hello mr, i have some problem with rCharts. I hope u can help me about that:
install.packages("rCharts") Installing package into ‘C:/Users/HP/Documents/R/win-library/3.0’ (as ‘lib’ is unspecified) Warning message: package ‘rCharts’ is not available (for R version 3.0.1) sessionInfo() R version 3.0.1 (2013-05-16) Platform: x86_64-w64-mingw32/x64 (64-bit)
locale:
[1] LC_COLLATE=English_Singapore.1252 LC_CTYPE=English_Singapore.1252
[3] LC_MONETARY=English_Singapore.1252 LC_NUMERIC=C
[5] LC_TIME=English_Singapore.1252
attached base packages: [1] stats graphics grDevices utils datasets methods base
loaded via a namespace (and not attached): [1] tools_3.0.1
As mentioned, for me i have got the 'rcharts' library with these two following instructions :
install.packages('Rcpp')
install.packages('downloader') library(downloader) download("https://github.com/ramnathv/rCharts/archive/master.tar.gz", "rCharts.tar.gz") install.packages("rCharts.tar.gz", repos = NULL, type = "source")
I tried installing rCharts using
intall_github('rCharts', 'ramnathv')
, but when i run this command in R console i get following error message -Installing github repo(s) rCharts/master from ramnathv Downloading rCharts.zip from https://github.com/ramnathv/rCharts/archive/master.zip Error in function (type, msg, asError = TRUE) : Could not resolve host: github.com; No data record of requested type
Since, this might be happening because of my internet connection, I tried installing it using
.zip
andtar ball
after downloading them fromrCharts
github
page, but again I am unable to install in and I get following error message-Warning in install.packages : package ‘C:/Users/sg0214265/Downloads/ramnathv-rCharts-4875ed1.tar.gz’ is not available (for R version 3.0.0) Installing package into ‘C:/Users/sg0214265/Documents/R/win-library/3.0’ (as ‘lib’ is unspecified) Warning in untar2(tarfile, files, list, exdir, restore_times) : skipping pax global extended headers ERROR: cannot extract package from 'C:/Users/sg0214265/Downloads/ramnathv-rCharts-4875ed1.tar.gz' Warning in install.packages : running command '"C:/PROGRA~1/R/R-30~1.0/bin/x64/R" CMD INSTALL -l "C:\Users\sg0214265\Documents\R\win-library\3.0" "C:/Users/sg0214265/Downloads/ramnathv-rCharts-4875ed1.tar.gz"' had status 1 Warning in install.packages : installation of package ‘C:/Users/sg0214265/Downloads/ramnathv-rCharts-4875ed1.tar.gz’ had non-zero exit status
Does this mean that rCharts are not available for R 3.0 version ?I am copying
sessionInfo()
for your reference`R version 3.0.0 (2013-04-03) Platform: x86_64-w64-mingw32/x64 (64-bit)
locale: [1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252 [4] LC_NUMERIC=C LC_TIME=English_United States.1252
attached base packages: [1] stats graphics grDevices utils datasets methods base
other attached packages: [1] devtools_1.3
loaded via a namespace (and not attached): [1] digest_0.6.3 evaluate_0.4.4 httr_0.2 memoise_0.1 parallel_3.0.0 RCurl_1.95-4.1 stringr_0.6.2 tools_3.0.0
[9] whisker_0.3-2`