ramnathv / rMaps

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

rCharts Availability for R 3.1.0? #54

Closed jatkat45 closed 10 years ago

jatkat45 commented 10 years ago

I had an error stating that rCharts was not available for R version 3.1.0. Any idea of when this will be available?

ramnathv commented 10 years ago

You need to install rCharts from github. For rMaps, you need the dev branch.

library(devtools)
install_github("ramnathv/rCharts@dev")
jatkat45 commented 10 years ago

Thank you!

It must have just flat out failed since it did not return any error messages. I did find that I was missing a number of other packages to load rCharts.

Success in installing rMaps.

On Mon, May 19, 2014 at 10:51 PM, Ramnath Vaidyanathan < notifications@github.com> wrote:

You need to install rCharts from github. For rMaps, you need the devbranch.

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

— Reply to this email directly or view it on GitHubhttps://github.com/ramnathv/rMaps/issues/54#issuecomment-43581468 .

ramnathv commented 10 years ago

Handling package dependencies on github is currently hard. I will try to add more explicit installation instructions.

jatkat45 commented 10 years ago

I appreciate your help. A note about other dependencies would helpful.

On Mon, May 19, 2014 at 11:21 PM, Ramnath Vaidyanathan < notifications@github.com> wrote:

Handling package dependencies on github is currently hard. I will try to add more explicit installation instructions.

— Reply to this email directly or view it on GitHubhttps://github.com/ramnathv/rMaps/issues/54#issuecomment-43582769 .

ramnathv commented 10 years ago

I went over README.md and this instruction is already there.

jatkat45 commented 10 years ago

Thanks. The installation of rCharts must have initially failed.

Please know that I think that this package is great! I am a power user with GIS software, so I am excited to test this out.

Have a great day.

Sent from my iPad

On May 20, 2014, at 12:36 AM, Ramnath Vaidyanathan notifications@github.com wrote:

I went over README.md http://ramnathv/rMaps/README.md and this instruction is already there.

— Reply to this email directly or view it on GitHubhttps://github.com/ramnathv/rMaps/issues/54#issuecomment-43585693 .

debajit001 commented 10 years ago

Hi,

I tried installing as you specified in the instruction. However, when I try to install the rCharts package, I am egtting the below error. Could you please guide me where its failing.?

install_github('ramnathv/rCharts@dev') Installing github repo rCharts/dev from ramnathv Downloading dev.zip from https://github.com/ramnathv/rCharts/archive/dev.zip Installing package from C:\Users\Debajit\AppData\Local\Temp\Rtmpq0trLE/dev.zip Installing rCharts "C:/PROGRA~1/R/R-31~1.0/bin/x64/R" --vanilla CMD INSTALL \ "C:\Users\Debajit\AppData\Local\Temp\Rtmpq0trLE\devtoolsbfc72ce1e2e\rCharts-dev" \ --library="C:/Users/Debajit/Documents/R/win-library/3.1" --install-tests

  • installing source package 'rCharts' ... * R * inst \ preparing package for lazy loading Error in loadNamespace(name) : there is no package called 'base64enc' Error : unable to load R code in package 'rCharts' ERROR: lazy loading failed for package 'rCharts'
patilv commented 10 years ago

Can you try install base64enc from CRAN before installing rCharts? That might do it. install.packages("base64enc")

jatkat45 commented 10 years ago

Based on the error I saw, I bet that will do it.

Sent from my iPad

On Jun 10, 2014, at 11:09 PM, patilv notifications@github.com wrote:

Can you try install base64enc from CRAN before installing rCharts? That might do it. install.packages("base64enc")

— Reply to this email directly or view it on GitHub.

debajit001 commented 10 years ago

Hi,

When I try to install, I get the below error.

install.packages("base64enc") Installing package into ‘C:/Users/Debajit/Documents/R/win-library/3.1’ (as ‘lib’ is unspecified) trying URL ' http://ftp.iitm.ac.in/cran/bin/windows/contrib/3.1/base64enc_0.1-1.zip' Error in download.file(url, destfile, method, mode = "wb", ...) : cannot open URL ' http://ftp.iitm.ac.in/cran/bin/windows/contrib/3.1/base64enc_0.1-1.zip' In addition: Warning message: In download.file(url, destfile, method, mode = "wb", ...) : unable to connect to 'ftp.iitm.ac.in' on port 80. Warning in download.packages(pkgs, destdir = tmpd, available = available, : download of package ‘base64enc’ failed

On Wed, Jun 11, 2014 at 9:00 AM, jatkat45 notifications@github.com wrote:

Based on the error I saw, I bet that will do it.

Sent from my iPad

On Jun 10, 2014, at 11:09 PM, patilv notifications@github.com wrote:

Can you try install base64enc from CRAN before installing rCharts? That might do it. install.packages("base64enc")

— Reply to this email directly or view it on GitHub.

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

debajit001 commented 10 years ago

I reset the cran mirror to US and it worked. Thanks a lot for your guidance

On Wed, Jun 11, 2014 at 10:06 AM, Debajit Deka debajit.deka@gmail.com wrote:

Hi,

When I try to install, I get the below error.

install.packages("base64enc") Installing package into ‘C:/Users/Debajit/Documents/R/win-library/3.1’ (as ‘lib’ is unspecified) trying URL ' http://ftp.iitm.ac.in/cran/bin/windows/contrib/3.1/base64enc_0.1-1.zip' Error in download.file(url, destfile, method, mode = "wb", ...) : cannot open URL ' http://ftp.iitm.ac.in/cran/bin/windows/contrib/3.1/base64enc_0.1-1.zip' In addition: Warning message: In download.file(url, destfile, method, mode = "wb", ...) : unable to connect to 'ftp.iitm.ac.in' on port 80. Warning in download.packages(pkgs, destdir = tmpd, available = available, : download of package ‘base64enc’ failed

On Wed, Jun 11, 2014 at 9:00 AM, jatkat45 notifications@github.com wrote:

Based on the error I saw, I bet that will do it.

Sent from my iPad

On Jun 10, 2014, at 11:09 PM, patilv notifications@github.com wrote:

Can you try install base64enc from CRAN before installing rCharts? That might do it. install.packages("base64enc")

— Reply to this email directly or view it on GitHub.

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

casconero commented 10 years ago

good morning i get the same error trying to install the rCharts package from the github repository

\ preparing package for lazy loading Error in loadNamespace(name) : there is no package called 'base64enc' Error : unable to load R code in package 'rCharts' ERROR: lazy loading failed for package 'rCharts'

I'm working on a macbook pro with osx 10.8.5, my R version is 3.1 and the R studio version is 0.98.507. I installed succesfully devtools and ramnathv/rMaps, Any suggestion? Thanks a lot Costanzo

ramnathv commented 10 years ago

Here is a quick fix.

install.packages('base64enc')
devtools::install_github('ramnathv/rCharts')

You should not be needing it since I removed base64enc as a dependency. I will leave this issue open as a reminder to debug later.

catblue commented 10 years ago

hi, thanks a lot for the wonderful package!

I have installed it successfully, at least haven't received any warnings or error messages. The Examples 2 and 3 worked fine, however when trying Example 1, the map didn't display, only tabs did, though without colour bars for Range. Maybe there is some "disagreement" between packages... here's my configuration:

R version 3.1.0 (2014-04-10) Platform: i386-w64-mingw32/i386 (32-bit)

locale: [1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

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

other attached packages: [1] rMaps_0.1.1 rCharts_0.4.2 devtools_1.5

loaded via a namespace (and not attached): [1] digest_0.6.4 evaluate_0.5.5 grid_3.1.0 httr_0.3
[5] lattice_0.20-29 memoise_0.2.1 parallel_3.1.0 plyr_1.8.1
[9] RColorBrewer_1.0-5 Rcpp_0.11.2 RCurl_1.95-4.1 rjson_0.2.14
[13] RJSONIO_1.2-0.2 stringr_0.6.2 tools_3.1.0 whisker_0.3-2
[17] yaml_2.1.13

grijs commented 10 years ago

Can anyone tell me what to do with this error:

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

arunay1 commented 10 years ago

Hi, Can you someone please tell me reason for following error

library(base64enc) devtools::install_github('ramnathv/rCharts')

Installing github repo rCharts/master from ramnathv Downloading master.zip from https://github.com/ramnathv/rCharts/archive/master.zip Installing package from C:\Users\AD~1\AppData\Local\Temp\RtmpigM9Y9/master.zip Error in unzip(src, list = TRUE) : zip file 'C:\Users\AD~1\AppData\Local\Temp\RtmpigM9Y9/master.zip' cannot be opened In addition: Warning messages: 1: In mapCurlOptNames(names(.els), asNames = TRUE) : Unrecognized CURL options: writedata 2: In mapCurlOptNames(names(.els), asNames = TRUE) : Unrecognized CURL options: writedata 3: In unzip(src, exdir = target, unzip = getOption("unzip")) : error 1 in extracting from zip file

ramnathv commented 10 years ago

This seems like an RCurl problem. Can you make sure that you reinstall RCurl so that it is updated to the latest version. If the problem persists, it is definitely something to do with your curl settings, and NOT an rMaps issue.

jvega68 commented 10 years ago

I got yet another error message:

install_github("rCharts","ramnathv") Installing github repo rCharts/master from ramnathv Downloading master.zip from https://github.com/ramnathv/rCharts/archive/master.zip Error en function (type, msg, asError = TRUE) :

it says: "not set" after the colon, inside less than and greather than symbols. Any help?

ramnathv commented 10 years ago

Okay. Here is an alternate installation strategy that might work for you. Note that you can manually download https://github.com/ramnathv/rCharts/archive/master.tar.gz 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")
jvega68 commented 10 years ago

Thanks Ramnath, it did work, everything is fine now. Thank you for your good work.

Not relevant idea, It would be good to know what is the problem with the conventional way. Thinking in proxies, I tried again with a different internet connection and still get the same error. But nevermind, now I have your package installed and working. Thanks!

ramnathv commented 10 years ago

Here is a SO Question that explains the possible reasons for the error message. You might be able to figure out the fix from there so that you can use install_github directly in the future.

sb2014 commented 10 years ago

I face the same issue highlighted by 'cat blue' above: The Examples 2 and 3 worked fine, however when trying Example 1, the map didn't display, only tabs did, though without colour bars for Range.

Was there a resolution posted to this issue?

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

WORKED FOR ME!

Problem: Windows 8 PC and error message: Error in function (type, msg, asError = TRUE) : SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

this error with "all of the above" previously tried, so THANKS!

mapilido74 commented 9 years ago

Thank you very much, I can download the rCharts package

dhoreys commented 9 years ago

Hi Ramnath: I installed downloader package and then. library(downloader) download("https://github.com/ramnathv/rCharts/archive/master.tar.gz", "rCharts.tar.gz")

install.packages("rCharts.tar.gz", repos = NULL, type = "source")

Here I get an issue ... '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-3.1.1/bin/x64/R" CMD INSTALL -l "C:\EDA\myRLib" "rCharts.tar.gz"' had status 1 Warning in install.packages : installation of package ‘rCharts.tar.gz’ had non-zero exit status

dhoreys commented 9 years ago

I solved by issue. I uninstalled prior version of R (3.1.1) and reinstalled R 3.1.2. Updated r-studio (by going to rstudio's help and clicking for check for updates). Then installed devtools. and then installed devtools::install_github('ramnathv/rCharts')

This worked. I think problem seemed to be with R version. Thanks.

thecapacity commented 9 years ago

install.packages("base64enc") worked for me too, though I got some warnings when installing: install_github('ramnathv/rCharts@dev')

Warning in .recacheSubclasses(def@className, def, doSubclasses, env) : undefined subclass "Datamaps" of class "refClass"; definition not updated Warning in .recacheSubclasses(def@className, def, doSubclasses, env) : undefined subclass "Datamaps" of class "refObject"; definition not updated Warning in .recacheSubclasses(def@className, def, doSubclasses, env) : undefined subclass "Datamaps" of class "refClass"; definition not updated Warning in .recacheSubclasses(def@className, def, doSubclasses, env) : undefined subclass "Leaflet" of class "refClass"; definition not updated Warning in .recacheSubclasses(def@className, def, doSubclasses, env) : undefined subclass "Datamaps" of class "refObject"; definition not updated Warning in .recacheSubclasses(def@className, def, doSubclasses, env) : undefined subclass "Leaflet" of class "refObject"; definition not updated

thecapacity commented 9 years ago

Also had to separately (and explicitly); install.packages("rjson")

Same issue as @catblue - Example 1 doesn't load a map.

DavidAh commented 9 years ago

Same issue as @catblue - Example 1 doesn't display a map. I have R 3.1.1 with R studio 0.98.1103 installed.

library(rMaps) crosslet( x="country", y=c("web_index", "universal_access", "impact_empowerment", "freedom_openness"), data = web_index)

maheshwaria commented 9 years ago

Same issue as posts above by DatidAh, thecapacity and others here is my code and I don't see any display and there are no errors, I have R3.1.1, Rstudio 0.98.1091 and rCharts successfully installed

nPlot(Freq~Hair,group='Eye',type='multiBarchart', data=subset(haireye,Sex='Male'))

Jolly12 commented 9 years ago

How to install rstudio in window.

Jolly12 commented 9 years ago

I am facing some problem while installing rstudio in my window.