I tried to download infromation from Google trends to object in R. Therea are several packages for it but I decided to use Gtrends. I met with unexpected problem and there is no information about it.
library(gtrendsR)
> google.trends = gtrends(c("blu-ray"), gprop = "web", time = "all")
Error in curl::curl_fetch_memory(url) :
schannel: failed to receive handshake, SSL/TLS connection failed
I guess there are some problems with connection but I dont know how to solve it. Any ideas? Thanks a lot in advance.
Version of R: 3.5.0.
Version of package: 1.4.1
Related
I wrote a script for downloading and analyzing 13F filing from a select number of fund managers using the great package edgarWebR in R. Unfortunately the script stopped working after my update to version 1.1.0 of edgarWebR. I get the following error message whilst running this part of the script:
map(filings_incl_href$href, filing_details)
filings_incl_href$href contains the hrefs of all the fund managers 13F-filings, e.g. the first one is: https://www.sec.gov/Archives/edgar/data/1540531/000154053121000004/0001540531-21-000004-index.htm
Here's the error message:
No encoding supplied: defaulting to UTF-8.
Error in check_result(res) :
EDGAR request blocked from Undeclared Automated Tool.
Please visit https://www.sec.gov/developer for best practices.
See https://mwaldstein.github.io/edgarWebR/index.html#ethical-use--fair-access for your responsibilities
Consider also setting the environment variable 'EDGARWEBR_USER_AGENT
Not sure what is causing this. Any help would be greatly appreciated.
Good afternoon. Recently I've experienced a problem with downloading data from Bloomberg information system into RStudio via "Rblpapi" package. In order to get this package on my PC I executed the following commands:
install.packages("Rblpapi")
library(Rblpapi)
This code was proceeded succesfully. Further, in order to establish the connection between my PC and Blooberg I did the following:
blpConnect()
Then I received the error message:
25MAR2021_12:27:10.598 4484:7384 ERROR blpapi_platformtransporttcp.cpp:671 blpapi.session.transporttcp.{4}.localhost:8194 Connection failed
25MAR2021_12:27:10.598 4484:7384 WARN blpapi_platformcontroller.cpp:371 blpapi.session.platformcontroller.{4} Platform: 0 failed 1 consecutive connect attempts, stopped trying to reconnect.
Error in blpConnect_Impl(host, port, appName) :Failed to start session.
Therefore, I couldn`t establish the connection between my PC and Bloomberg.
Could you, please, tell me, how this problem can be solved?
Thank you for your effort.
I am using Cassandra CQL- system in DBeaver database tool. I want to connect this cassandra to R to read data. Unfortunately the connection takes more time (i waited for more than 2 hours) with RCassandra package. but it does not seem to get connected at all and still loading. Does anyone has any idea on this?
the code as follows:
library(RCassandra)
rc <- RC.connect(host ="********", port = 9042)
RC.login(rc, username = "*****", password = "******")
after this step RC.login, it is still loading for more than 2 hours.
I have also tried using RJDBC package like posted here : How to read data from Cassandra with R?.
library(RJDBC)
drv <- JDBC("org.apache.cassandra.cql.jdbc.CassandraDriver",
list.files("C:/Program Files/DBeaver/jre/lib",
pattern="jar$",full.names=T))
But this throws error
Error in .jfindClass(as.character(driverClass)[1]) : class not found
None of the answers are working for me from the above link.I am using latest R version 3.4.0 (2017-04-21) and New version of DBeaver : 4.0.4.
For your first approach, which I am less familiar with, should you not have a line that sets the use of the connection?
such as:
library(RCassandra)
c <- RC.connect(host ="52.0.15.195", port = 9042)
RC.login(c, username = "*****", password = "******")
RC.use(c, "some_db")
Did you check logs that you are not getting some silent error while connecting?
For your second approach, your R program is not seeing a driver in a classpath for Java (JMV).
See this entry for help how to fix it.
Rencently I find a Palmer Drought Severity Index (PDSI) calculation package written by cszang from GIthub. According to the website https://github.com/cszang/pdsi, the install is very easy:
install.packages("devtools")
library(devtools)
install_github("cszang/pdsi")
However, when I install it, an error occurs like this:
Error in curl::curl_fetch_disk(url, x$path, handle = handle) : Couldn't resolve host name
Does anyone know about this issue? Thanks a lot.
Github is currently down, probably from the DDoS attack currently affecting a bunch of sites including Twitter, Spotify, and more
You can also use scPDSI library in R for calculation of Palmer Drought Severity Index.
Following the steps as outlined below:
install Java APIv3 from the Bloomberg terminal (by typing WAPI into the command bar). Once installed connect it to R using :install.packages("Rbbg", repos = "http://r.findata.org") and conn <- blpConnect(log.level = "finest"). Finally, to extract share price information you use bdp(conn,securities,function)
I get an error when trying to connect that gives me the following message:
Error in .jnew("org/findata/blpwrapper/Connection", java.log.level) :
org.findata.blpwrapper.WrapperException: Session not started because: CONNECTION_FAILURE
Any advice how to resolve this would be very appreciated.
Please try migrating to Rblpapi. This is more modern equivalent and can be found on CRAN (install.packages("Rblpapi")) or github (https://github.com/Rblp/Rblpapi).