search for: httr

Displaying 20 results from an estimated 48 matches for "httr".

Did you mean: attr
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 <- 'https://...
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())...
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/08/05/readr-1-0-0/ <https://blog.rstudio.com/2016/08/05/readr-1-0-0/> Cheers, Ben > On Jan 2, 2018, a...
2015 Jul 09
4
R CMD build failure
I have a local library 'dart' that imports "httr". It has routines that access central patient data such as birth date, so it is heavily used locally but of no interest to anyone else. The httr library (and 300 others) are in a shared directory, referenced by everyone in the biostatistics group via adding this location to the .libPaths...
2018 Oct 23
2
Suggestion: Make CRAN source URLs immutable
Hello, I hope the is the right list to send this suggestion to. I was wondering if it might be possible to have CRAN store the most current version of a package's source tarball at a location that does not change. As an example, the source tarball for `httr` is stored at https://cran.r-project.org/src/contrib/httr_1.3.1.tar.gz. However, once the next version of `httr` is released, the URL for version 1.3.1 of `httr` will change to https://cran.r-project.org/src/contrib/Archive/httr_1.3.1.tar.gz. The implications of this are that if I want to write a...
2013 May 08
1
Dependencies of Imports not attached?
Encountered an error in scripting, which can be reproduced using Rscript as follows: $ Rscript -e "library(httr); handle('http://cran.r-project.org')" Error in getCurlHandle(cookiefile = cookie_path, .defaults = list()) : could not find function "getClass" Calls: handle -> getCurlHandle or by starting R without the methods package attached: $ R_DEFAULT_PACKAGES=base R [snip] &g...
2018 Oct 24
0
Suggestion: Make CRAN source URLs immutable
>>>>> Kurt Wheeler writes: Try e.g. https://cran.r-project.org/package=httr&version=1.3.1 https://cran.r-project.org/package=httr&version=1.3.0 -k > Hello, I hope the is the right list to send this suggestion to. > I was wondering if it might be possible to have CRAN store the most current > version of a package's source tarball at a location that do...
2016 Feb 27
1
Unable to Install Packages from Binaries on Windows for R 3.2.3
Removing 'type=binary' worked for me. install.packages( 'httr', repos = "https://cran.rstudio.com/" ) But I get an error when I select binary as type --- install.packages( 'httr', type = 'binary', repos = "https://cran.rstudio.com/" ) Error in install.packages : type 'binary' is not support...
2016 Feb 27
3
Unable to Install Packages from Binaries on Windows for R 3.2.3
Installing packages from binaries on Windows seems broken, when using mirrors that are up to date with CRAN install.packages( 'httr', type = 'binary', repos = "https://cran.rstudio.com/" ) Changing repos to the Kansas CRAN mirror installs the package as expected, but that could be because the KS mirror has not yet synced. Someone pointed out that the PACKAGES.gz file at https://cran.r-project.org/bin...
2015 Jul 09
0
R CMD build failure
What field is httr in the DESCRIPTION? Hadley On Thu, Jul 9, 2015 at 10:26 AM, Therneau, Terry M., Ph.D. <therneau at mayo.edu> wrote: > I have a local library 'dart' that imports "httr". It has routines that > access central patient data such as birth date, so it is heavily used >...
2018 Jan 24
2
Issue with concatenation of URL losing
Thank you for your help in advance. I am trying to pull some data back from a web service library(httr) sample2 <- GET("https://elevation.mapzen.com/height?json={\"range\":false,\"shape\":[{\"lat\":40.7,\"lon\":-76.5}]}&api_key=mycode") result2 <- content(sample2) height <- result2$height[[1]] I would like to put by own latitude and lo...
2018 Jul 05
2
Segfault on ubuntu 18.04
...ers[[1L]]) 6: tryCatchList(expr, classes, parentenv, handlers) 7: tryCatch(loadNamespace(name), error = function(e) stop(e)) 8: getNamespace(ns) 9: asNamespace(ns) 10: getExportedValue(pkg, name) 11: curl::new_handle 12: handle(name) 13: handle_find(url) 14: handle_url(handle, url, ...) 15: httr::GET(url, path = path, httr::write_disk(path = tmp), auth) 16: remote_package_name.github_remote(remote) 17: remote_package_name(remote) 18: install_remote(..., quiet = quiet) 19: doTryCatch(return(expr), name, parentenv, handler) 20: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 21: tryCatch...
2018 Nov 03
1
Suggestion: Make CRAN source URLs immutable
On Sat, 3 Nov 2018 at 11:54, Joris Meys <jorismeys at gmail.com> wrote: > > FWIW, you can get the URL and extract the link with extension from there. Archived packages are always tarballs, so that makes the following possible: > > url <- "https://cran.r-project.org/package=httr&version=1.3.0" > > library(RCurl) > > pkgurl <- gsub(".*(https://cran.+\\.tar.gz).*", > "\\1", > getURL(url)) > > install.packages(pkgurl, type = "source", repos = NULL) The proper way to do this would...
2018 Jan 24
0
Issue with concatenation of URL losing
...ght?json={"range":false,"shape":[{"lat":10,"lon":20}]}&api_key=mycode ######## On Wed, 24 Jan 2018, Oliver Morris wrote: > Thank you for your help in advance. > > > I am trying to pull some data back from a web service > > > library(httr) > sample2 <- GET("https://elevation.mapzen.com/height?json={\"range\":false,\"shape\":[{\"lat\":40.7,\"lon\":-76.5}]}&api_key=mycode") > result2 <- content(sample2) > height <- result2$height[[1]] > > > I would like t...
2017 Jun 05
2
API REE
Hola, Estoy intentando descargar datos de la API de ESIOS, de REE, pero estoy teniendo problemas al introducir el token. Estoy usando httr, rCurl y jsonlite. Alguien ha podido descargar los datos? Cómo lo ha hecho? Gracias, Javier [[alternative HTML version deleted]]
2024 Feb 01
1
Need help testing a problem
...-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. Hello, Tested with R 4.3.2 running on Windows 11. 1. You mention package http but there is no package http on CRAN, did you mean package httr? 2. I wrote a script rhelp.R, ran it on a command window and here is what I got on the command window output. C:\Users\ruipb\Documents>R -q -f rhelp.R > rhelp_out.txt * WARNING: failed to open cookie file "" * Found bundle for host: 0x21cb7410670 [serially] * Can not multiplex,...
2017 Aug 25
2
getOption() versus Sys.getenv
...quot;). This can be placed in an .Rprofile or at the top of script. They are called like this getOption("var"). Environmental variables are set in the .Renviron file like this: "var" = "A" and called like this: Sys.getenv("var"). I've seen mention in the httr package documentation that credentials for APIs should be stored in this way. So my question is how does one decide which path is most appropriate? For example I am working on a package that has to query a database in almost every function call. I want to provide users an ability to skip having to...
2017 Aug 18
2
R Issues with packages
...--install-tests Installation failed: Command failed (65535) I then try installing all dependencies using this code install.packages(c("devtools","rstudioapi","shiny","miniUI","data.table","stringr","DT","XML","httr","tcltk","RCurl","Hmisc","readxl","RSelenium"), dependencies=TRUE, repos=c("http://rstudio.org/_packages", "http://cran.rstudio.com")) That returns this Warning in install.packages : package ?tcltk? is not available (for...
2017 Aug 17
2
How to install Tidyverse on Ubuntu 17.04? Getting gcc errors for -fstack-protector-strong and -Wdate-time
...4-pc-linux-gnu-library/3.4? (as ?lib? is unspecified) also installing the dependencies ?colorspace?, ?munsell?, ?plyr?, ?psych?, ?reshape2?, ?bindrcpp?, ?Rcpp?, ?digest?, ?scales?, ?curl?, ?openssl?, ?cellranger?, ?stringi?, ?selectr?, ?tidyselect?, ?broom?, ?dplyr?, ?forcats?, ?ggplot2?, ?haven?, ?httr?, ?jsonlite?, ?lubridate?, ?modelr?, ?purrr?, ?readr?, ?readxl?, ?stringr?, ?tibble?, ?rvest?, ?tidyr?, ?xml2? trying URL 'https://cran.rstudio.com/src/contrib/colorspace_1.3-2.tar.gz' Content type 'application/x-gzip' length 293433 bytes (286 KB) ==================================...
2018 Jul 05
0
Segfault on ubuntu 18.04
...atch(loadNamespace(name), error = function(e) stop(e)) >> 8: getNamespace(ns) >> 9: asNamespace(ns) >> 10: getExportedValue(pkg, name) >> 11: curl::new_handle >> 12: handle(name) >> 13: handle_find(url) >> 14: handle_url(handle, url, ...) >> 15: httr::GET(url, path = path, httr::write_disk(path = tmp), auth) >> 16: remote_package_name.github_remote(remote) >> 17: remote_package_name(remote) >> 18: install_remote(..., quiet = quiet) >> 19: doTryCatch(return(expr), name, parentenv, handler) >> 20: tryCatchOne(expr, n...