ramnathv / rMaps

Interactive Maps from R
http://rmaps.github.io
388 stars 194 forks source link

Install error for rCharts #11

Closed hshans closed 10 years ago

hshans commented 10 years ago

Hi, I get this error on both 2.1.5 and 3.0.2 package ‘rCharts’ is not available (for R version 3.0.2)

Is there a specific version on which this will work?

Thanks, Harry

ramnathv commented 10 years ago

rCharts is NOT on CRAN, so you can't use install.packages to install it. You will need the devtools package to install it. You can find installation instructions here

dicenslice commented 10 years ago

Hello, I'm having some issues installing the package manually.

First, using the zip file at http://ramnathv.github.io/rCharts/ I get the following:

Warning in install.packages : cannot open compressed file 'ramnathv-rCharts-2c368c8/DESCRIPTION', probable reason 'No such file or directory' Error in install.packages : cannot open the connection

Second, the master zip file at https://github.com/ramnathv/rCharts does not cause any warnings but require(rCharts) brings this:

Loading required package: rCharts Warning message: In library(package, lib.loc = lib.loc, character.only = TRUE, logical.return = TRUE, : there is no package called ‘rCharts’

I really look forward to using the great package, so any help would be really appreciated.

Thanks in advance.

OS: Windows 7 R: 3.0.2 (Rstudio)

ramnathv commented 10 years ago

That is not the zip file to use. It is the zip file for the gh-pages branch, which contains documentation and not the package. Here is the link to the zip file that contains the package.

https://github.com/ramnathv/rCharts/archive/master.zip

Alternately, you can directly use devtools to handle the installation for you by running

library(devtools)
install_github("rCharts", "ramnathv")

If you are still having trouble, please copy-paste your sessionInfo() so that I can help debug.

dicenslice commented 10 years ago

Thanks for the reply, I have proxy limitations which I cannot alter due to job conditions, so I get the following error:

install_github('rCharts', 'ramnathv')
Installing github repo rCharts/master from ramnathv
Downloading rCharts.zip from https://github.com/ramnathv/rCharts/archive/master.zip
Error in function (type, msg, asError = TRUE)  : couldn't connect to host

my session info:

R version 3.0.2 (2013-09-25)
Platform: i386-w64-mingw32/i386 (32-bit)

locale:
[1] LC_COLLATE=Turkish_Turkey.1254  LC_CTYPE=Turkish_Turkey.1254    LC_MONETARY=Turkish_Turkey.1254
[4] LC_NUMERIC=C                    LC_TIME=Turkish_Turkey.1254    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] yaml_2.1.10    whisker_0.3-2  RJSONIO_1.0-3  RCurl_1.95-4.1 bitops_1.0-6   devtools_1.4.1

loaded via a namespace (and not attached):
[1] digest_0.6.4   evaluate_0.5.1 httr_0.2       memoise_0.1    parallel_3.0.2 stringr_0.6.2 
[7] tools_3.0.2   
ramnathv commented 10 years ago

Okay. Here is an alternate installation strategy that might work for you. Note that you can manually download the *.tar.gz file if your proxy doesn't allow you to programmatically download it. Let me know if this works for you.

library(downloader)
download("https://github.com/ramnathv/rCharts/archive/master.tar.gz", "rCharts.tar.gz")
install.packages("rCharts.tar.gz", repos = NULL, type = "source")
dicenslice commented 10 years ago

works perfect! Thank you very much for the online realtime help :)

ramnathv commented 10 years ago

Glad it worked. Happy coding :+1:

jilagan commented 10 years ago

Thanks for the alternate install instructions! I was having problems with SSL and install_github.

ffgama commented 9 years ago

i've been the same problem @ramnathv . I did the same steps that @dicenslice but the error launched:

Installing package into ‘/Users/pma014/Library/R/3.1/library’ (as ‘lib’ is unspecified) During startup - Warning messages: 1: Setting LC_CTYPE failed, using "C" 2: Setting LC_TIME failed, using "C" 3: Setting LC_MESSAGES failed, using "C" 4: Setting LC_MONETARY failed, using "C" Warning: invalid package 'rCharts.tar.gz' Error: ERROR: no packages specified Warning in install.packages : installation of package ‘rCharts.tar.gz’ had non-zero exit status

:/

PKBibi commented 9 years ago

Hi Ramnathv

no luck either...

Here is the output I get, can you help please? Also not able to install any git hub package with dev tools.

install.packages("rCharts.tar.gz", repos = NULL, type = "source") Installing package into ‘C:/Users/PK/Documents/R/win-library/3.2’ (as ‘lib’ is unspecified) 'C:\Program' is not recognized as an internal or external command, operable program or batch file. Warning in install.packages : running command '"C:/Program Files/R/R-32~1.1/bin/x64/R" CMD INSTALL -l "C:\Users\PK\Documents\R\win-library\3.2" "rCharts.tar.gz"' had status 1 Warning in install.packages : installation of package ‘rCharts.tar.gz’ had non-zero exit status

OS = Windows 7 RStudio Version 0.99.447

ramnathv commented 9 years ago

Can you try this to check if you have the build tools installed on your computer?

library(devtools)
has_devel()
PKBibi commented 9 years ago

On Sat, Jun 27, 2015 at 7:42 PM, Ramnath Vaidyanathan < notifications@github.com> wrote:

library(devtools) has_devel()

Hi Ramnath

Thanks for your rapid response.

Here is the output when I run the 2 commands:

library("devtools", lib.loc="~/R/win-library/3.2") has_devel() "C:/Program Files/R/R-32~1.1/bin/x64/R" --no-site-file --no-environ --no-save --no-restore CMD \ SHLIB foo.c

'C:\Program' is not recognized as an internal or external command, operable program or batch file. Error: Command failed (1)

Not sure what it all means....

Kind regards

P. Bibi

ramnathv commented 9 years ago

Okay. That explains it. Follow the instructions in this thread on SO. In short, you need to uninstall R and reinstall it in a root folder like C:\.

PKBibi commented 9 years ago

Yes !

Ramnath you are the man... :)

worked like a charm.

Very much appreciated, thanks for your time and expertise.

Let's keep in touch. https://uk.*linkedin*.com/in/pkentabibi

On Sat, Jun 27, 2015 at 8:00 PM, Ramnath Vaidyanathan < notifications@github.com> wrote:

Okay. That explains it. Follow the instructions in this thread on SO http://stackoverflow.com/questions/20963942/problems-with-install-bitbucket. In short, you need to uninstall R and reinstall it in a root folder like C:.

— Reply to this email directly or view it on GitHub https://github.com/ramnathv/rMaps/issues/11#issuecomment-116120567.

Kind regards

P. Bibi

ramnathv commented 9 years ago

Glad to know it worked!

Alsaxian commented 7 years ago

Hi dear ramnathv,

I also got an error message while following your instructions

require(devtools) 
install_github('rCharts', 'ramnathv')

to install rCharts which says

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' Erreur : le chargement a échoué Exécution arrêtée

The last means loading failed and execution stopped.

The has_devel() command also reports an error

"C:/PROGRA\~1/R/R-33\~1.0/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD SHLIB foo.c Warning message: l'exécution de la commande 'make -f "C:/PROGRA\~1/R/R-33\~1.0/etc/x64/Makeconf" -f "C:/PROGRA\~1/R/R-33\~1.0/share/make/winshlib.mk" SHLIB="foo.dll" WIN=64 TCLBIN=64 OBJECTS="foo.o"' renvoie un statut 127 Error: Command failed (1)

According to what I understand from the previous comments if I'am working on a school terminal and don't have the admin permission to reinstall anything then I can't do much about it?

Thank you in advance,

Alsaxian

GuoweiYang19891101 commented 5 years ago

Hi dear ramnathv,

I have tried this code to install rCharts:

require(devtools) install_github('rCharts', 'ramnathv')

It returned me this error:

Error in parse_repo_spec(repo) : Invalid git repo specification: 'rCharts'

Did you know why this happens?

Thank you.

Guowei Yang

Alsaxian commented 5 years ago

这位大神,为什么抄送给我?

Guowei Yang notifications@github.com 于 2019年2月25日周一 下午6:42写道:

Hi dear ramnathv,

I have tried this code to install rCharts:

require(devtools) install_github('rCharts', 'ramnathv')

It returned me this error:

Error in parse_repo_spec(repo) : Invalid git repo specification: 'rCharts'

Did you know why this happens?

Thank you.

Guowei Yang

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ramnathv/rMaps/issues/11#issuecomment-467106640, or mute the thread https://github.com/notifications/unsubscribe-auth/AXnf9mYBXGCei6BPJY4iM_-xqXEo-lMHks5vRCCRgaJpZM4BjRwo .

swapna9481 commented 5 years ago

package is not available (for R version 3.5.2) when i try to install rchart package. but it seems warning message package is not available.

idoiaguirre commented 5 years ago

Hello everyone, I had the same problem as stated above and I was able to solve it by installing the "devtools" package and installing "rCharts" by the "install.github" command:

library("devtools")
install_github("ramnathv/rCharts")

Idoia Aguirre