rcurl

Unable to install Devtools package for R studio mounted on linux redhat server

久未见 提交于 2019-12-09 10:11:54
问题 I'm unable to install the devtools package in R Studio on a redhat linux server. These error messages showed up: ERROR: configuration failed for package ‘RCurl’ * removing ‘/home/xx/R/x86_64-redhat-linux-gnu-library/3.0/RCurl’ Warning in install.packages : installation of package ‘RCurl’ had non-zero exit status ERROR: dependency ‘RCurl’ is not available for package ‘httr’ * removing ‘/home/xx/R/x86_64-redhat-linux-gnu-library/3.0/httr’ Warning in install.packages : installation of package

How to convert splunk curl query into Rcurl [closed]

拟墨画扇 提交于 2019-12-08 14:17:53
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 4 years ago . I want to convert this particular splunk curl request into Rcurl: curl -k -u admin:pass https://localhost:8089/services/search/jobs --get -d search="eventCount>100" 回答1: This provides an idiom via httr you can extrapolate from for other Splunk calls: #' @param search_terms #' @param other

Converting Twitter Stream JSON to R dataframe

为君一笑 提交于 2019-12-08 11:42:49
问题 I have a text file in JSON format that I downloaded using code from this link. It looks something like this: "{\"contributors\":null,\"coordinates\":null,\"in_reply_to_user_id\":null,\"truncated\":false,\"text\":\"'ello miss...?\",\"entities\":{\"hashtags\":[],\"urls\":[],\"user_mentions\":[]},\"place\":null,\"id_str\":\"234702954853199872\",\"favorited\":false,\"geo\":null,\"source\":\"\u003Ca href=\\"http:\/\/www.tweetdeck.com\\" rel=\\"nofollow\\"\u003ETweetDeck\u003C\/a\u003E\",\"retweet

get url table into a `data.frame` R-XML-RCurl

二次信任 提交于 2019-12-08 08:41:18
问题 I'm trying to get the table of an url into a data.frame . In other examples I found the following code worked: library(XML) library(RCurl) theurl <- "https://es.finance.yahoo.com/q/cp?s=BEL20.BR" tables <- readHTMLTable(theurl) As the warning says the table doesn't seem to be XML Warning message: XML content does not seem to be XML: 'https://es.finance.yahoo.com/q/cp?s=BEL20.BR' Alternatively, getURLContent(theurl, ssl.verifypeer = FALSE, useragent = "R") works but don't know how to extract

shared object ‘RCurl.so’ not found

瘦欲@ 提交于 2019-12-08 04:28:23
问题 Data about my system R version 3.2.1 (2015-06-18) (World-Famous Astronaut) Ubuntu 12.04 LTS $ locate RCurl.so : ~/R/i686-pc-linux-gnu-library/2.15/RCurl/libs/RCurl.so ~/R/i686-pc-linux-gnu-library/3.0/RCurl/libs/RCurl.so ~/R/i686-pc-linux-gnu-library/3.1/RCurl/libs/RCurl.so /usr/local/lib/R/site-library/RCurl/libs/RCurl.so $ r -pie '.libPaths()' : [1] "~/R/i686-pc-linux-gnu-library/3.2" [2] "/usr/local/lib/R/site-library" [3] "/usr/lib/R/site-library" [4] "/usr/lib/R/library" $ R CMD ldd /usr

Using twitteR through a proxy server

痞子三分冷 提交于 2019-12-08 02:09:58
问题 I'm trying to download Twitter data using the twitteR package. I keep getting the error message "Error in function (type, msg, asError = TRUE) : couldn't connect to host" I believe this is because I'm doing this on my work computer and I need to pass the details of the proxy server. To test this, I tried an example given in one of the answers to a similar question about Proxy Setting for R. If I enter: library("RCurl") getURL("http://stackoverflow.com") Then I get the same error message as

Reading data via OData: how to specify the authentication scheme via curl/RCurl?

放肆的年华 提交于 2019-12-07 10:14:18
问题 I'd like to read some data via a HTTPS OData connection and the data source requires the Basic authentication scheme. I'm familiar with the usual curl/RCurl options (such as username , userpwd and cainfo ), but I'm not sure on how to pass the authentication scheme information. This is some C# code from a colleague that worked for another application: var bind = new HttpsTransportBindingElement(); bind.AuthenticationScheme = System.Net.AuthenticationSchemes.Basic; So I guess I need to find out

Downloading a file after login using a https URL

孤人 提交于 2019-12-07 07:05:36
问题 I am trying to download an excel file, which I have the link to, but I am required to log in to the page before I can download the file. I have successfully passed the login page with rvest, rcurl and httr, but I am having an extremely difficult time downloading the file after I have logged in. url <- "https://website.com/console/login.do" download_url <- "https://website.com/file.xls" session <- html_session(url) form <- html_form(session)[[1]] filled_form <- set_values(form, userid = user,

R - Error when using getURL from curl after site was changed

戏子无情 提交于 2019-12-06 13:33:51
问题 I have been using getURL from curl (in R) to read from https://fantasy.premierleague.com/drf/bootstrap-static Example code: print(getURL("https://fantasy.premierleague.com/drf/bootstrap-static")) No problem until a few days ago. But now getting the error: Error in function (type, msg, asError = TRUE) : error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version Have upgraded to latest R (3.4.0) and curl package: RCurl_1.95-4.8 I have a workaround (to use GET from httr) but

Using twitteR through a proxy server

旧街凉风 提交于 2019-12-06 09:02:01
I'm trying to download Twitter data using the twitteR package. I keep getting the error message "Error in function (type, msg, asError = TRUE) : couldn't connect to host" I believe this is because I'm doing this on my work computer and I need to pass the details of the proxy server. To test this, I tried an example given in one of the answers to a similar question about Proxy Setting for R . If I enter: library("RCurl") getURL("http://stackoverflow.com") Then I get the same error message as when I try to use twitteR: "Error in function (type, msg, asError = TRUE) : couldn't connect to host"