ramnathv / rMaps

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

crosslet example not working #1

Closed lcolladotor closed 10 years ago

lcolladotor commented 10 years ago

Hello,

I'm not sure if I'm doing something wrong or missing any pre-reqs, but the CrossLet example is not working for me.

> sessionInfo()
R version 3.0.2 (2013-09-25)
Platform: x86_64-apple-darwin10.8.0 (64-bit)

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

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

other attached packages:
[1] rMaps_0.1

loaded via a namespace (and not attached):
[1] grid_3.0.2         lattice_0.20-24    plyr_1.8           rCharts_0.4.2     
[5] RColorBrewer_1.0-5 rjson_0.2.13       RJSONIO_1.0-3      whisker_0.3-2     
[9] yaml_2.1.10       

Here's the screenshot from the Google Chrome console.

screen shot 2014-02-10 at 10 32 54 am

DataMaps and Leaflet examples are working well.

Cheers, Leo

ramnathv commented 10 years ago

Did you install the dev version of rCharts?

ramnathv commented 10 years ago

You will need a local server to preview crosslet maps, since it reads JSON. If you are using the latest version of RStudio, it will automatically open the map up in a server for you.

lcolladotor commented 10 years ago

Yes, I did install the dev version of rCharts. By the way, have you tried using different version numbers for dev and release versions of rCharts? That way you can tell which version the user is using from the sessionInfo. Here's a versioning system that might be useful http://www.bioconductor.org/developers/package-guidelines/#versions

Ok, I didn't know about the local server part. And like you said, it does work in RStudio. Thanks!

ramnathv commented 10 years ago

My version control is a little messed up right now. Locally, I am working with only a single branch. I keep pushing to dev till ideas are stable and then merge back with master. I need a more robust git workflow :)

arturochian commented 10 years ago

It's working fine. You have to install the dev version as ramnathv said. I recommend uninstalling the old version using remove.packages("rCharts") It's very nice. :) The next month I'm going to learn how to configurate that. I'm interested in geolocalization for social variables. I'm thinking integration with WDI package could be great. There are a lot of economics information about countries.

ramnathv commented 10 years ago

Yes. The WDI package provides some nice data that can be used with rMaps. Let me know any comments/feedback that you have as you try things out.

arturochian commented 10 years ago

Sure, I'm improving my Shiny's skills for this month. I'm interested doing the same for my country Peru by cities for next months for improving economics decisions.
PD: I'm student in Economics so these things are interesting for me. Best regards

lcolladotor commented 10 years ago

As Ramnath said, it works with RStudio. I just removed and installed the dev version of rChartsand ran into the same issue as before when using the R GUI instead of RStudio.

screen shot 2014-02-10 at 11 11 57 am

arturochian commented 10 years ago

Try

x<-crosslet(
  x = "country", 
  y = c("web_index", "universal_access", "impact_empowerment", "freedom_openness"),
  data = web_index
)
print(x)
lcolladotor commented 10 years ago

Tried it, got the same result on the R GUI.

This has to be related to the local server Ramnath mentioned earlier.

arturochian commented 10 years ago

I see, It's about that. Interesting... I didn't know that differences...

patilv commented 10 years ago

The examples worked for me, verbatim. Using R-Studio, v 0.98.490.

ramnathv commented 10 years ago

Crosslet will only work in RStudio for now. I have to figure out a way to make it work from the R GUI.

abresler commented 10 years ago

Mine stopped working on R-Studio - just upgraded to 0.98.501 not sure whats going on

ramnathv commented 10 years ago

I am on 0.98.637 and it works fine for me. Let me check what is happening with 0.98.501

abresler commented 10 years ago

Any idea if we can download this version for Mac?


Alex Bresler 917-455-0239

abresler@asbcllc.com | alex@aragorntech.com |@abreslerhttp://twitter.com/abresler | LinkedIn http://www.linkedin.com/in/abresler| Aragornhttp://aragorn.org

On Wed, Feb 12, 2014 at 12:22 PM, Ramnath Vaidyanathan < notifications@github.com> wrote:

I am on 0.98.637 and it works fine for me.

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

ramnathv commented 10 years ago

Yes. I am on a mac. Just go to the page with daily builds

http://www.rstudio.org/download/daily/desktop/mac/

abresler commented 10 years ago

Thanks!!


Alex Bresler 917-455-0239

abresler@asbcllc.com | alex@aragorntech.com |@abreslerhttp://twitter.com/abresler | LinkedIn http://www.linkedin.com/in/abresler| Aragornhttp://aragorn.org

On Wed, Feb 12, 2014 at 12:26 PM, Ramnath Vaidyanathan < notifications@github.com> wrote:

Yes. I am on a mac. Just go to the page with daily builds

http://www.rstudio.org/download/daily/desktop/mac/

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

abresler commented 10 years ago

Works perfectly - its something with 0.98.501 but the preview works perfectly!

patilv commented 10 years ago

I have .98.501 on Windows. Works fine.

lcolladotor commented 10 years ago

I'm using .98.501 on Mac and it works fine there too.

screen shot 2014-02-12 at 1 29 34 pm

dg83 commented 10 years ago

Hi,

I am running into the same issues as lcolladotor. Cannot see the crosslet maps but leaflet and datamaps work fine. I have the latest version of Rstudio and Windows 8.1

Thanks

bhuston commented 9 years ago

Ditto on what dg83 said. I'm running Windows 8.1/Chrome/Rstudio 0.98.1091 and I cannot get map in crosslet to display either in the viewer or in my broswer.

2014-12-03 22_50_19-localhost_11354_session_rcharts10b457733b78_index

cantgetthatping commented 9 years ago

All the same on MacOSx/Chrome or Safari

_Antoine_ _SAGE | _Skype: atsage

On Thu, Dec 4, 2014 at 4:51 AM, Ben Huston notifications@github.com wrote:

Ditto on what dg83 said. I'm running Windows 8.1/Chrome/Rstudio 0.98.1091 and I cannot get map in crosslet to display either in the viewer or in my broswer.

[image: 2014-12-03 22_50_19-localhost_11354_session_rcharts10b457733b78_index] https://cloud.githubusercontent.com/assets/8014279/5293396/e795db98-7b3e-11e4-9e20-a5aecaa40aa9.png

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

geertdobbels commented 9 years ago

Hi,

I get exactly the same results as bhuston above.... labels appear but no map. I am on Linux fedora 21, R version 3.1.3 Rstudio 0.99.386 (updated recently, but in previous version I had the same problem) As with the others, the datamap and leaflet examples work fine.

Geert

JasonAizkalns commented 9 years ago

I receive the same results as @bhuston @cantgetthatping and @geertdobbels - I am able to see the labels/controls, but no map.

Here's the output from the Chrome console:

image

The 403 status messages continue and they appear to come back with Wrong API Key.