search for: readr

Displaying 20 results from an estimated 88 matches for "readr".

Did you mean: read
2017 Jun 17
3
suggestion to fix packageDescription() for Windows users
Hi Duncan, Thanks for your reply. Yes, it does seem to be specific to the CTYPE setting to Chinese on Windows. If I set it to English using Sys.setlocale() there is no problem, then back to Chinese and the authors disappear: Sys.setlocale("LC_ALL","English") citation("readr") #' To cite package ?readr? in publications use: #' #' Hadley Wickham, Jim Hester and Romain Francois (2017). readr: Read #' Rectangular Text Data. R package version 1.1.1. #' https://CRAN.R-project.org/package=readr #' #' A BibTeX entry for LaTeX users is #'...
2017 Jun 23
0
suggestion to fix packageDescription() for Windows users
...ic to the CTYPE > setting to Chinese on Windows. If I set it to English using > Sys.setlocale() there is no problem, then back to Chinese and the > authors disappear: > > Sys.setlocale("LC_ALL","English") > citation("readr") > > > Thanks, that makes the problem reproducible. I'll submit it as a > bug report. Maybe someone from Microsoft will fix it. > > Duncan Murdoch > > > #' To cite package ?readr? in publications use: > #' > #&...
2017 Jun 18
2
suggestion to fix packageDescription() for Windows users
...eem to be specific to the CTYPE >> setting to Chinese on Windows. If I set it to English using >> Sys.setlocale() there is no problem, then back to Chinese and the >> authors disappear: >> >> Sys.setlocale("LC_ALL","English") >> citation("readr") >> > > Thanks, that makes the problem reproducible. I'll submit it as a bug > report. Maybe someone from Microsoft will fix it. > > Duncan Murdoch > > >> #' To cite package ?readr? in publications use: >> #' >> #' Hadley Wickha...
2017 Jun 17
2
suggestion to fix packageDescription() for Windows users
...a package where the authors have ? and ? in their names. I found that on Windows the citation() function did not return the authors' names at all, but on Linux there was no problem (sessionInfos at the bottom): On Windows, no author names are returned: #--------------- > citation("readr") To cite package ?readr? in publications use: (2017). readr: Read Rectangular Text Data. R package version 1.1.1. https://CRAN.R-project.org/package=readr A BibTeX entry for LaTeX users is @Manual{, title = {readr: Read Rectangular Text Data}, year = {2017}, note =...
2017 Jun 17
0
suggestion to fix packageDescription() for Windows users
...ur reply. Yes, it does seem to be specific to the CTYPE > setting to Chinese on Windows. If I set it to English using > Sys.setlocale() there is no problem, then back to Chinese and the > authors disappear: > > Sys.setlocale("LC_ALL","English") > citation("readr") Thanks, that makes the problem reproducible. I'll submit it as a bug report. Maybe someone from Microsoft will fix it. Duncan Murdoch > > #' To cite package ?readr? in publications use: > #' > #' Hadley Wickham, Jim Hester and Romain Francois (2017). readr...
2017 Jun 23
2
suggestion to fix packageDescription() for Windows users
...ic to the CTYPE > setting to Chinese on Windows. If I set it to English using > Sys.setlocale() there is no problem, then back to Chinese and the > authors disappear: > > Sys.setlocale("LC_ALL","English") > citation("readr") > > > Thanks, that makes the problem reproducible. I'll submit it as a > bug report. Maybe someone from Microsoft will fix it. > > Duncan Murdoch > > > #' To cite package ?readr? in publications use: > #' > #&...
2017 Jun 24
0
suggestion to fix packageDescription() for Windows users
The following patch is not the most elegant, but it restores the Authors when "LC_CTYPE" is set to either "Chinese" or "Arabic": > Sys.setlocale("LC_CTYPE", "Chinese") [1] "Chinese (Simplified)_China.936" > citation("readr") To cite package ?readr? in publications use: (2016). readr: Read Tabular Data. R package version 1.0.0. https://CRAN.R-project.org/package=readr A BibTeX entry for LaTeX users is @Manual{, title = {readr: Read Tabular Data}, year = {2016}, note = {R package version 1.0....
2017 Jun 26
3
suggestion to fix packageDescription() for Windows users
...ows users The following patch is not the most elegant, but it restores the Authors when "LC_CTYPE" is set to either "Chinese" or "Arabic": > Sys.setlocale("LC_CTYPE", "Chinese") [1] "Chinese (Simplified)_China.936" > citation("readr") To cite package ?readr? in publications use: (2016). readr: Read Tabular Data. R package version 1.0.0. https://CRAN.R-project.org/package=readr A BibTeX entry for LaTeX users is @Manual{, title = {readr: Read Tabular Data}, year = {2016}, note = {R package version 1.0....
2017 Jun 27
0
suggestion to fix packageDescription() for Windows users
...patch is not the most elegant, but it restores the Authors when "LC_CTYPE" is set to either "Chinese" or "Arabic": >> Sys.setlocale("LC_CTYPE", "Chinese") > [1] "Chinese (Simplified)_China.936" >> citation("readr") > To cite package ?readr? in publications use: > (2016). readr: Read Tabular Data. R package version 1.0.0. > https://CRAN.R-project.org/package=readr > A BibTeX entry for LaTeX users is > @Manual{, > title = {readr: Read Tabular Data}, >...
2017 Jun 17
0
suggestion to fix packageDescription() for Windows users
...thors' names at all, but on Linux there was no > problem (sessionInfos at the bottom): > > On Windows, no author names are returned: I'm not seeing this. You have fairly strange localization settings; see comments below. > > #--------------- > > > citation("readr") > > To cite package ?readr? in publications use: > > (2017). readr: Read Rectangular Text Data. R package version 1.1.1. > https://CRAN.R-project.org/package=readr > > A BibTeX entry for LaTeX users is > > @Manual{, > title = {readr: Read Rectangul...
2018 Feb 14
2
long vectors not supported yet
...ix(el[, 1:2])), attr = weight) : long vectors not supported yet: ../../src/include/Rinlinedfuns.h:138 when passing a 13 GB TransitionLayer object to shortestPath from the package 'gdistance'. The error, albeit in a different context, is discussed here: https://github.com/tidyverse/readr/issues/309 https://github.com/tidyverse/readr/pull/433 However it is not clear to me quite what the fix was and what kind of limit may still exist in subsequent R versions. Is this a general problem/issue with R, or is this something more package-specific which should be addressed on R-sig-Geo?...
2018 Jan 02
0
httr::content without message
Ahoy! That's a message generated by the readr::read_table() function (or it's friends). You can suppress it a number of ways, but this should work as httr::content() will pass through arguments, like col_types = cols(), to the file reader. junk <- httr::content(r1, col_types = cols()) See more here... https://blog.rstudio.com/2016/0...
2018 Jan 02
1
httr::content without message
Thanks to all that replied. I had just looked through the httr code and sure enough for a .csv mime time it calls readr::read_csv(). The httr::content docs suggest not using automatic parsing in a package, rather to determine mime type and parse yourself and Ben's suggestion also works if I do: junk <- readr::read_csv(r1$content, col_types = cols()) Perfect. Using httr rather than putting the url in any...
2018 Feb 14
0
long vectors not supported yet
...: > long vectors not supported yet: ../../src/include/Rinlinedfuns.h:138 > >when passing a 13 GB TransitionLayer object to shortestPath from the >package 'gdistance'. > >The error, albeit in a different context, is discussed here: > > https://github.com/tidyverse/readr/issues/309 > https://github.com/tidyverse/readr/pull/433 > >However it is not clear to me quite what the fix was and what kind of >limit may still exist in subsequent R versions. > >Is this a general problem/issue with R, or is this something more >package-specific which shoul...
2017 Sep 03
2
readLines() segfaults on large file & question on how to work around
Jeroen: Thank you for pointing me to ndjson, which I had not heard of and is exactly my case. My experience: jsonlite::stream_in - segfaults ndjson::stream_in - my fault, I am running Ubuntu 14.04 and it is too old so it won't compile the package corpus::read_ndjson - works!!! Of course it does a different simplification than jsonlite::fromJSON, so I have to change some code, but
2018 Feb 15
1
long vectors not supported yet
...d yet: ../../src/include/Rinlinedfuns.h:138 >> >> when passing a 13 GB TransitionLayer object to shortestPath from the >> package 'gdistance'. >> >> The error, albeit in a different context, is discussed here: >> >> https://github.com/tidyverse/readr/issues/309 >> https://github.com/tidyverse/readr/pull/433 >> >> However it is not clear to me quite what the fix was and what kind of >> limit may still exist in subsequent R versions. >> >> Is this a general problem/issue with R, or is this something more &g...
2024 Apr 16
5
read.csv
...o a somewhat unexpected behaviour of read.csv() which is trivial but worthwhile to note -- my data involves a protein named "1433E" but to save space I drop the quote so it becomes, Gene,SNP,prot,log10p YWHAE,13:62129097_C_T,1433E,7.35 YWHAE,4:72617557_T_TA,1433E,7.73 Both read.cv() and readr::read_csv() consider prot(ein) name as (possibly confused by scientific notation) numeric 1433 which only alerts me when I tried to combine data, all_data <- data.frame() for (protein in proteins[1:7]) { cat(protein,":\n") f <- paste0(protein,".csv") if(file.exis...
2018 Jan 02
4
httr::content without message
Hi All: I am using httr to download files form a service, in this case a .csv file. When I use httr::content on the result, I get a message. Since this will be in a package. I want to suppress the message, but haven't figured out how to do so. The following should reproduce the result: myURL <-
2017 Sep 04
0
readLines() segfaults on large file & question on how to work around
...- paste0(sample(c(letters, LETTERS), 1E6, replace = TRUE), collapse="") con <- file("test.txt", "wt") for (i in seq_len(2500)) { writeLines(l, con, sep ="") } close(con) # Causes segfault: readLines("test.txt") Also the error reported by readr is also reproduced (a more informative error message and checking for integer overflows would be nice). I will report this with readr. library(readr) read_file("test.txt") # Error in read_file_(ds, locale) : negative length vectors are not # allowed -- Jan > sessionInfo()...
2017 Sep 02
1
readLines() segfaults on large file & question on how to work around
Thank you for your suggestion. Unfortunately, while R doesn't segfault calling readr::read_file() on the test file I described, I get the error message: Error in read_file_(ds, locale) : negative length vectors are not allowed Jen On Sat, Sep 2, 2017 at 1:38 PM, Ista Zahn <istazahn at gmail.com> wrote: > As s work-around I suggest readr::read_file. > > --Ista &g...