Displaying 20 results from an estimated 1100 matches similar to: "Dependencies of Imports not attached?"
2010 Nov 14
1
RCurl and cookies in POST requests
Hello.
I know that it's usually possible to write cookies to a cookie
file by removing the curl handle and doing a gc() call. I can do
this with getURL(), but I just can't obtain the same results with
postForm().
If I use:
curlHandle <- getCurlHandle(cookiefile=FILE, cookiejar=FILE)
and then do:
getURL(http://example.com/script.cgi, curl=curlHandle)
rm(curlHandle)
gc()
it's
2012 Sep 19
1
scraping with session cookies
Hi, I am starting coding in r and one of the things that i want to do is to
scrape some data from the web.
The problem that I am having is that I cannot get passed the disclaimer
page (which produces a session cookie). I have been able to collect some
ideas and combine them in the code below but I dont get passed the
disclaimer page.
I am trying to agree the disclaimer with the postForm and write
2012 Jun 07
1
How to set cookies in RCurl
Hi,
I am trying to access a website and read its content. The website is a
restricted access website that I access through a proxy server (which
therefore requires me to enable cookies). I have problems in allowing Rcurl
to receive and send cookies.
The following lines give me:
library(RCurl)
library(XML)
url <- "http://www.theurl.com"
content <- readHTMLTable(url)
content
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
2009 Sep 17
1
RCurl and Google Scholar's EndNote references
Hi!
I've performed a Google Scholar Search using a query, let's say "Frank
Harrell", and parsed the links to the EndNote references from the resulting
HTML code. Now I'd like to download all the references automatically. For
this, I have tried to use RCurl, but I can't seem to get it working: I
always get error code "403 Forbidden" from the web server.
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/
2004 Oct 30
1
Destructive str(...)?
I have encountered a strange behavior of the str function - it seems to
modify the object that is displayed. Probably I'm using something
unsupported (objects consisting just of an external reference), but
still I'm curious as of why this happens. I create (in C code)
EXTPTRSXP and associate a class to it via SET_CLASS. Such objects works
fine until it's passed to str as the
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
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 <-
2012 Dec 05
1
request
Dear Dr. bernhard
cc. r-help
Thank you very much for deverlopping rneos package. I read the document of
rneos.
however, due to my inability, i could not figure-out how to connect with
neos server from R environment.
let me explain the steps, i took. my laptop is using wireless of my
laboratory. to connect the internet, i need proxy address and specific port
(that i have mentioned in protocols in
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 in their default .Rprofile.
2013 Aug 25
2
RCurl cookiejar
R-helpers,
When I use cURL in the Terminal:
curl --cookie-jar cookie.txt --url "http://corpusdelespanol.org/x.asp" --user-agent "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:16.0) Gecko/20100101 Firefox/23.0" --location --include
a cookie file "cookie.txt" is saved to my working directory. However, when I try what I think is the equivalent command R with RCurl:
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 supported on this platform.
2010 Nov 22
1
RCurl : All connection are used ?
Hi everybody,
I got a problem with the ftpUpload function from the RCurl package. My goal is to Upload a lot of files from a local directory to a web server.
1st try :
for (i in 1:length(file)){
ftpUpload(what=files[i],to=files[i])
}
At i=11 I get : (my server has only 10 available open connections available) :
Erreur dans curlPerform(url = to, upload = TRUE, readfunction =
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 <-
2010 Sep 16
2
FTP Download
Hi,
I have problems downloading complete folders via ftp with R. Single files
work fine.
I tried Rcurl, but it does not work.
This is my code:
url =
"ftp://disc2.nascom.nasa.gov/data/TRMM/Gridded/Derived_Products/3B42_V6/Daily/2009/"
filenames = getURL(url, ftp.use.epsv = FALSE, ftplistonly = TRUE, crlf =
TRUE)
filenames = paste(url, strsplit(filenames, "\r*\n")[[1]], sep =
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]]
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
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
2018 Jul 05
2
Segfault on ubuntu 18.04
I am running R 3.5.1 on ubuntu 18.04, installed via apt. When I run R
from the bash prompt, I get (reinstalling r-base doesn't help)
> devtools::install_github("goranbrostrom/eha", build_vignettes = TRUE)
*** caught segfault ***
address 0x68456, cause 'memory not mapped'
Traceback:
1: dyn.load(file, DLLpath = DLLpath, ...)
2: library.dynam(lib, package,