rcurl

Troubleshooting SPARQL rCurl queries in R

旧城冷巷雨未停 提交于 2021-02-20 02:35:27
问题 I'm doing a sparql query against an authenticated endpoint in R using the SPARQL library. The same query/endpoint/user works using the rrdf package. Unfortuantely, once I get the query working, I need to process the data in R and update the graph with the answers, which rrdf can't do. Setting up a few variables first, the below query works using rrdf: sparql.remote(myEndpoint,myQuery,'rowvar',myUsername,myUserpwd) Using SPARQL, this does not work: SPARQL(myEndpoint,myQuery,curl_args=c(

Using R SOAP (SSOAP) to retrieve data / scrape

我与影子孤独终老i 提交于 2021-02-18 03:20:34
问题 On the B-cycle page(www.bcycle.com/whowantsitmore.aspx) I am trying to scrape locations and values of votes. The URL http://mapservices.bcycle.com/bcycleservice.asmx is a SOAP service. Based on the documentation I believe I am doing it correctly but I get an error due to parsing the input parameters. Even calling a function without parameters also creates errors. # working with SOAP #install.packages("SSOAP", repos="http://www.omegahat.org/R", dependencies = T, type = "source") library(SSOAP)

Using R SOAP (SSOAP) to retrieve data / scrape

邮差的信 提交于 2021-02-18 03:19:23
问题 On the B-cycle page(www.bcycle.com/whowantsitmore.aspx) I am trying to scrape locations and values of votes. The URL http://mapservices.bcycle.com/bcycleservice.asmx is a SOAP service. Based on the documentation I believe I am doing it correctly but I get an error due to parsing the input parameters. Even calling a function without parameters also creates errors. # working with SOAP #install.packages("SSOAP", repos="http://www.omegahat.org/R", dependencies = T, type = "source") library(SSOAP)

How to convert SOAP request curl to RCurl

蹲街弑〆低调 提交于 2021-02-09 00:26:34
问题 How should I convert this one liner: curl -d @request.xml -o response.xml http://www.sample.com/soap It is accessing request xml which looks like this: <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:req="http://sample.com/"> <soap:Body> <req:getEvents> <start>2014-12-12T00:00:00+0100</start> <end>2014-12-13T00:00:00+0100</end> <type>TYPE</type> </req:getEvents> </soap:Body> </soap:Envelope> The response is written into

How to convert SOAP request curl to RCurl

不想你离开。 提交于 2021-02-09 00:21:51
问题 How should I convert this one liner: curl -d @request.xml -o response.xml http://www.sample.com/soap It is accessing request xml which looks like this: <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:req="http://sample.com/"> <soap:Body> <req:getEvents> <start>2014-12-12T00:00:00+0100</start> <end>2014-12-13T00:00:00+0100</end> <type>TYPE</type> </req:getEvents> </soap:Body> </soap:Envelope> The response is written into

Can I save my R output (.jpeg) to an FTP server?

夙愿已清 提交于 2020-08-08 13:51:08
问题 (optional read) Greater Objective: PowerBI Web doesn't support a few R packages when published on the internet. It throws the below error ("Missing R Package"). Hence, I am working towards saving the output from R as an image (.jpeg) to a remote location ( such as FTP ) or cloud storage (secure and open source) and then import it to PowerBI. This workaround might resolve the package conflict ( hoping ). Specific Objective *: The below code illustrates a trivial way of saving an R output(.jpeg

How do I resolve this RCurl error: “SSL certificate problem: certificate has expired”?

依然范特西╮ 提交于 2020-07-09 08:58:11
问题 I'm just trying to get a simple URL response below and I get the following error. The website is valid and I've been able to pull from it thousands of times in the past. jsonString <- getURL(full_url) Error in function (type, msg, asError = TRUE) : SSL certificate problem: certificate has expired Any ideas? I am running R 4.0.0 (I upgraded to see if that would fix the issue) and have the most up to date RCurl package. 回答1: I have been facing the same problem from the past few weeks. So if you

How do I resolve this RCurl error: “SSL certificate problem: certificate has expired”?

£可爱£侵袭症+ 提交于 2020-07-09 08:57:28
问题 I'm just trying to get a simple URL response below and I get the following error. The website is valid and I've been able to pull from it thousands of times in the past. jsonString <- getURL(full_url) Error in function (type, msg, asError = TRUE) : SSL certificate problem: certificate has expired Any ideas? I am running R 4.0.0 (I upgraded to see if that would fix the issue) and have the most up to date RCurl package. 回答1: I have been facing the same problem from the past few weeks. So if you

How to update RCurl and curl to the version on the host machine?

China☆狼群 提交于 2020-05-10 06:29:10
问题 Initially I was trying to use devtools::install_github("EdwinTh/padr") where I got the following error: Error in curl::new_handle() : An unknown option was passed in to libcurl After some time I found out that devtools uses curl/RCurl which wraps the current version of curl on the host machine. The host(Ubuntu 14.04.5 LTS) machine version of curl is: 1$ curl -V curl 7.61.0 (x86_64-pc-linux-gnu) libcurl/7.61.0 OpenSSL/1.0.1f zlib/1.2.8 libssh2/1.8.0 librtmp/2.3 where curl is located in: 12$