rcurl

TLS v1.1 / TLS v1.2 support in RCurl

↘锁芯ラ 提交于 2019-12-18 07:24:04
问题 ETA: Per https://github.com/hiratake55/RForcecom/issues/42, it looks like the author of the rforcecom package has updated rforcecom to use httr instead of RCurl (as of today, to be uploaded to CRAN tomorrow, 7/1/16), so my particular issue will be solved at that point. However, the general case (implementing TLS 1.1 / 1.2 in RCurl) may still be worth pursuing for other packages. Or everyone may just switch to the more recent curl package instead of RCurl. Background: I've been using the

Using R to download SAS file from ftp-server

别说谁变了你拦得住时间么 提交于 2019-12-18 07:05:38
问题 I am attempting to download some files onto my local from an ftp-server. I have had success using the following method to move .txt and .csv files from the server but not the .sas7bdat files that I need. protocol <- "sftp" server <- "ServerName" userpwd <- "User:Pass" tsfrFilename <- "/filepath/file.sas7bdat" ouptFilename <- "out.sas7bdat" # Run # ## Download Data url <- paste0(protocol, "://", server, tsfrFilename) data <- getURL(url = url, userpwd=userpwd) ## Create File fconn <- file

devtools::install_github fails with CA cert error

ぃ、小莉子 提交于 2019-12-17 16:30:57
问题 When I try to call install_github, I get the following error (not just for this package, but for all github packages): > install_github('ramnathv/slidify') Downloading github repo ramnathv/slidify@master Error in curl::curl_fetch_memory(url, handle = handle) : Problem with the SSL CA cert (path? access rights?) But if I use RCurl directly to access github with ssl, I don't get any problem: > x <- getBinaryURL( url='https://github.com/ramnathv/slidify/archive/master.zip', followlocation=1L )

devtools::install_github() - Ignore SSL cert verification failure

我怕爱的太早我们不能终老 提交于 2019-12-17 15:40:06
问题 I'm trying to get devtools::install_github() working behind my corporate proxy on Windows 7. So far I've had to do the following: > library(httr) > library(devtools) > set_config(use_proxy("123.123.123.123",8080)) > devtools::install_github("rstudio/ggvis") Installing github repo ggvis/master from rstudio Downloading master.zip from https://github.com/rstudio/ggvis/archive/master.zip Error in function (type, msg, asError = TRUE) : SSL certificate problem, verify that the CA cert is OK.

“Non Zero Exit Status” R 3.0.1 'XML' and 'RCurl'

会有一股神秘感。 提交于 2019-12-17 15:15:10
问题 I am having a bit of trouble installing XML and RCurl on my Ubuntu machine 13.10. I performed all sudo update and upgrades today. I am trying to use rattle for R. I am unable to install 'XML' which is required for the use of rattle. This is pretty much the same question that was asked right here just a year later and a different OS. Here are the error messages that I am getting back: > install.packages("RCurl") Installing package into ‘/home/steven/R/x86_64-pc-linux-gnu-library/3.0’ (as ‘lib’

Download files with specific extension from a website [closed]

岁酱吖の 提交于 2019-12-14 03:38:07
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed last year . How can I download the content of a webpage and find all files with specific extension listed on it. And then download all of them. For example, I would like to download all netcdf files (with extension *.nc4) from the following webpage: https://data.giss.nasa.gov/impacts/agmipcf

Getting htmlParse to work with Hebrew?

余生长醉 提交于 2019-12-13 16:19:12
问题 I wish to be able to have htmlParse work well with Hebrew, but it keeps to scramble the Hebrew text in pages I feed into it. For example: # why can't I parse the Hebrew correctly? library(RCurl) library(XML) u = "http://humus101.com/?p=2737" a = getURL(u) a # Here - the hebrew is fine. a2 <- htmlParse(a) a2 # Here it is a mess... None of these seem to fix it: htmlParse(a, encoding = "utf-8") htmlParse(a, encoding = "iso8859-8") This is my locale: > Sys.getlocale() [1] "LC_COLLATE=Hebrew

installation of package ‘RCurl’ had non-zero exit status

依然范特西╮ 提交于 2019-12-13 13:59:33
问题 I am trying to install RCurl on OS X 10.12.6 but get the following error: Error: package or namespace load failed for ‘RCurl’ in dyn.load(file, DLLpath = DLLpath, ...): unable to load shared object '/Users/nick/Library/R/3.4/library/RCurl/libs/RCurl.so': dlopen(/Users/nick/Library/R/3.4/library/RCurl/libs/RCurl.so, 6): Library not loaded: @rpath/libcurl.4.dylib Referenced from: /Users/nick/Library/R/3.4/library/RCurl/libs/RCurl.so Reason: image not found Error: loading failed Execution halted

Overcoming “Error: unexpected input” in RCurl

烂漫一生 提交于 2019-12-13 06:39:29
问题 I am trying and failing to use RCurl to automate the process of fetching a spreadsheet from a web site, China Labour Bulletin's Strike Map. Here is the URL for the spreadsheet with the options set as I'd like them: http://strikemap.clb.org.hk/strikes/api.v4/export?FromYear=2011&FromMonth=1&ToYear=2015&ToMonth=6&_lang=en Here is the code I'm using: library(RCurl) temp <- tempfile() temp <- getForm("http://strikemap.clb.org.hk/strikes/api.v4/export", FromYear="2011", FromMonth="1", ToYear="2015

RCurl getURLContent detect content type through final redirect

萝らか妹 提交于 2019-12-13 04:46:59
问题 This is a followup question to RCurl getURL with loop - link to a PDF kills looping : I have the following getURL command: require(RCurl) #set a bunch of options for curl options(RCurlOptions = list(cainfo = system.file("CurlSSL", "cacert.pem", package = "RCurl"))) agent="Firefox/23.0" curl = getCurlHandle() curlSetOpt( cookiejar = 'cookies.txt' , useragent = agent, followlocation = TRUE , autoreferer = TRUE , httpauth = 1L, # "basic" http authorization version -- this seems to make a