search for: rjsonio

Displaying 20 results from an estimated 21 matches for "rjsonio".

Did you mean: rjson
2013 Apr 13
1
RJSONIO Installation
Trying to install rjsonio and I've run into a couple of issues. 1. When installing from R, it's starts to download, then I get * installing *source* package 'RJSONIO' ... ERROR: configuration failed for package 'RJSONIO' * removing 'C:/Program Files/R/R-3.0.0/library/RJSONIO' 2. I've tri...
2010 Jul 13
0
RJSONIO install problem
Hi everybody I am trying to install RJSONIO from source in on Mac OS X 10.5.8. I used the Package Installer. The message and sessionInfo is attached below Can someone help me to understand the error message and maybe give hint towards solving the problem thanks in advance Christiaan Message: The downloaded packages are in ‘/private/var/f...
2012 Aug 24
1
RJSONIO/rjson maximum depth?
Hi All, has anyone run into maximum depth of nested JSON arrays in either rjson or RJSONIO ? I seem to be able to get up to 10 depth levels without problem, but crossing over to 11 either causes an error or fails to load the nodes properly. with RJSONIO I tried: a = fromJSON('data/myJSON.json', depth=1000) but I still get this error: Error in fromJSON(content, handler, defau...
2012 Jun 19
0
Error with RJSONIO installation
Hi friends, I was trying to install RJSONIO in Ubuntu10.04 LTS but unfortunately ends up with following error. trying URL 'http://stat.ethz.ch/CRAN/src/contrib/RJSONIO_0.98-1.tar.gz' Content type 'application/x-gzip' length 1150673 bytes (1.1 Mb) opened URL ================================================== downloaded 1.1 M...
2009 Jun 13
1
conditional dependencies & loading
Hi! I'm working on a package that must convert data to and from JSON. For this, it can use either the rjson package, or preferably, the faster RJSONIO package. I have two related questions about this. First, how can I specify that the package depends on *either* RJSONIO *or* rjson? (I.e. both are not required.) Second, what's the best-practice R idiom for such conditional loading? I.e. I'm looking for R's equivalent of Python'...
2012 Mar 28
1
how to avoid farword slashes in RJSONIO output
Hi All, I wanted know how to get RJSONIO output with out forward slashes? for example: "({\"total\":5,\"results\":[\n {\n \"id\": 1,\n\"name\": \"Monkey D Luffy\",\n\"position\": \"Captain\",\n\"ambition\": \"I Will become the pirate king\" \n}...
2015 Jan 08
2
Testing R packages on Solaris Studio
..." and: ./configure --prefix=/opt/R-devel --with-blas='-library=sunperf' --with-lapack All works great (fast too), except for some CRAN packages with c++ code won't build. The compiler itself works, most packages (including e.g. MCMCpack) build OK. However packages like Rcpp and RJSONIO fail with errors shown here: https://gist.github.com/jeroenooms/f1b6a172320a32f59c82. I tried installing with GNU make, but that does not seem to be the problem configure.vars = "MAKE=/opt/csw/bin/gmake" I am aware that I can work around it by compiling with gcc instead of solaris st...
2011 Nov 05
2
install.packages problem
...g ...ideas on how to address this would be appreciated : install.packages('rdatamarket') Installing package(s) into ?/home/eric/R/i486-pc-linux-gnu-library/2.13? (as ?lib? is unspecified) --- Please select a CRAN mirror for use in this session --- also installing the dependencies ?RCurl?, ?RJSONIO? trying URL 'http://lib.stat.cmu.edu/R/CRAN/src/contrib/RCurl_1.7-0.tar.gz' Content type 'application/x-gzip' length 813252 bytes (794 Kb) opened URL ================================================== downloaded 794 Kb trying URL 'http://lib.stat.cmu.edu/R/CRAN/src/contrib/RJS...
2013 Aug 29
0
Big Integer Support in JSON-to-R Conversion
I have come across an issue converting a JSON string in R (with either the package 'rjson' or 'RJSONIO') when big integers are included in the JSON string. A simple example of the problem is: > options(scipen=999) # To prevent representing the answer in scientific notation > json.str <- '{"bigInt":123456789123456789}' # Sample JSON string with big integer Using th...
2012 Dec 04
1
Reading JSON files from R
Hello All - I am trying to use RJSONIO to read in some JSON files. I was wondering if anyone could please comment on the level of complexity of the files it can be used to read, exports from or directly from NoSQL DBMS like MongoDB and such. Also, i understand that in reading the JSON file RJSONIO will automatically create the necessa...
2010 Dec 11
2
toJSON question
Hello, I am trying to use RJSONIO I have: x <- c(0,4,8,9) y <- c(3,8,5,13) z <- cbind(x,y) Any idea how to convert z into the JSON format below? I want to get the following JSON output to put into a php file. [[0, 3], [4, 8], [8, 5], [9, 13]] Thank you.
2012 Dec 27
1
Convert json data to an r dataframe
Hello to everybody, I need to convert a json dataset in an R dataframe. I suppose that I'd need to use rjson or rjsonio package. The json dataset is: http://apistat.istat.it/?q=getdatajson&dataset=DCIS_POPSTRBIL&dim=1,0,0,0&lang=1&tr=&te= It would be nice if someone can help me to create a function like the one below: http://lamages.blogspot.it/2011/09/accessing-and-plotting-world-bank-data.html...
2016 Jan 14
2
JDataFrame API
...e: String result = new JDataFrameBuilder() .addColumn("Code", new Object[] {"WV", "VA", }) .addColumn("Description", new Object[] {"West Virginia", "Virginia"}) .toJson(); and in R script we would need to do this: temp <- RJSONIO::fromJSON(json) tempDF <- as.data.frame(temp) which yields a data frame that looks like this: > tempDF Description Code 1 West Virginia WV 2 Virginia VA It is my intention to deploy this project to Maven Central this week, time permitting. Questions and comments are welcomed....
2015 Apr 11
0
Testing R packages on Solaris Studio
...* r_base (uses GCC) * gcc4g++ and gcc4gfortran * git * vim The image is distributed in the open ova format and should work in most virtualization environments. More information is available on http://bit.ly/r-solaris-readme. That said, I still have not figured out how to build Rcpp and RJSONIO with ORD/SolarisStudio. They compile without problems using r_base/gcc, but with ORD I still get the same errors described below. I would be very interested to learn how CRAN builds/tests these packages on Solaris. On Thu, Jan 8, 2015 at 12:52 PM, Jeroen Ooms <jeroenooms at gmail.com> wrot...
2016 Jan 15
2
JDataFrame API
...st to get a ballpark (see > https://gist.github.com/s-u/4efb284e3c15c6a2db16 > > # generate: > time java -cp .:javax.json-api-1.0.jar:javax.json-1.0.4.jar A > 1e6 > > real 0m2.764s > user 0m20.356s > sys 0m0.962s > > # read: >> system.time(temp <- RJSONIO::fromJSON("1e6")) > user system elapsed > 3.484 0.279 3.834 >> str(temp) > List of 2 > $ V1: num [1:1000000] 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 ... > $ V2: chr [1:1000000] "X0" "X1" "X2" "X3" ... > > For compa...
2009 Jun 12
1
Fast JSON <-> R converter?
Is there a *fast* converter between JSON and R? I'm aware of the rjson package, but it is implemented in R, and it is too slow for my purposes. TIA! kynn [[alternative HTML version deleted]]
2016 Jan 15
0
JDataFrame API
...to build a medium-sized dataset (1e6 rows) and read it in just to get a ballpark (see https://gist.github.com/s-u/4efb284e3c15c6a2db16 # generate: time java -cp .:javax.json-api-1.0.jar:javax.json-1.0.4.jar A > 1e6 real 0m2.764s user 0m20.356s sys 0m0.962s # read: > system.time(temp <- RJSONIO::fromJSON("1e6")) user system elapsed 3.484 0.279 3.834 > str(temp) List of 2 $ V1: num [1:1000000] 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 ... $ V2: chr [1:1000000] "X0" "X1" "X2" "X3" ... For comparison using Java directly (includes...
2016 Jan 15
0
JDataFrame API
....github.com/s-u/4efb284e3c15c6a2db16 >> >> # generate: >> time java -cp .:javax.json-api-1.0.jar:javax.json-1.0.4.jar A > 1e6 >> >> real 0m2.764s >> user 0m20.356s >> sys 0m0.962s >> >> # read: >>> system.time(temp <- RJSONIO::fromJSON("1e6")) >> user system elapsed >> 3.484 0.279 3.834 >>> str(temp) >> List of 2 >> $ V1: num [1:1000000] 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 ... >> $ V2: chr [1:1000000] "X0" "X1" "X2" "X3" ......
2015 Dec 28
3
Elecciones Generales
De aqui: http://resultadosgenerales2015.interior.es/congreso/#/ES201512-CON-ES/ES o en json: http://resultadosgenerales2015.interior.es/#/herramienta-analisis?siteLanguage=es_ES dentro del linux estan los archivos El 28 de diciembre de 2015, 16:30, Javier Marcuzzi < javier.ruben.marcuzzi en gmail.com> escribió: > Estimado Ivan Aguilar > > Desconozco desde donde toma los datos,
2012 Oct 23
1
Extracting results from Google Search
Dear list, I have a long list of towns in Africa and would need to get their geographical coordinates. The Google query [/TownName Country coordinates/] works for most of the TownNames I have and give a nicely formatted Google output (try Ingall Niger coordinates for an example). I would like to launch a loop on the list of names I have and automatically extract the coordinates given by Google.