rtweet package: auth_setup_default() does not work - r

when I run search_tweets function, I got:
Error in default_cached_auth():
! No default authentication found. Please call auth_setup_default()
Run rlang::last_error() to see where the error occurred.
So I run auth_setup_default(), and I got:
Error in httr::init_oauth1.0(endpoint, app, permission = permission, is_interactive = is_interactive, :
Bad Request (HTTP 400).
This happened just after I upgraded R and R studio. How can I fix it?

Related

How to get rid of this warning message

When I just open the Rstudio and press entre on the Console, it always give me the warning message
>
Warning message:
In .recacheSubclasses(def#className, def, env) :
undefined subclass "numericVector" of class "Mnumeric"; definition not updated
>
How to get rid of this warning message?
Thank you!
I previously ran boot::boot() function using multicore processing, and after that when I start Rstudio and run the first command, the warning message always appears.
Try these steps:
Update R to the newest version [click here]
Re-install the boot package of whatever packages that face this warning. I suggest the following code for that:
remove.packages('boot')
install.packages('boot', dependencies=T)
library(boot)
Restart your R or Rstudio and try to use your function again. If it bothers you again, you can ignore it using options(warn=-1).
Best of Luck.

Mlflow not running on machine

Please I am trying to run mlflow code in R after having installed it. However, after loading the library with library(mlflow) and I run mlflow_log_params("foo",42) I get the error message below printed in my console:
Error in rethrow_call(c_processx_exec, command, c(command, args), pty, :
Command 'C:/Users/IFEANYI/AppData/Local/r-miniconda/envs/r-mlflow-1.19.0/mlflow' not found #win/processx.c:982 (processx_exec)
I also get the same error message when I run mlflow_ui(). Please was there something I ought to have done during installation failure of which is affecting its functionality? Do I need to install and load the processx library in order for mlflow to run on my Windows10 machine? I really hope I can get advice to help me because I want to use mlflow in my machine learning projects. Thanks in advance of your generous help.
The error should disappear when setting MLFLOW_BIN system variable (Windows) to mlflow cli executable : "....conda\envs\r-mlflow-1.24.0\Scripts\mlflow.exe".
If it works please mark the problem as resolved.
Unfortunately, you will get next error "Error in wait_for(function() mlflow_rest("experiments", "list", client = client)" for which I cannot find the solution

RStudio v1.1.456 Rpubs upload error, no login prompt

Hi I couldn't find any useful information in regards to this one.
When I try to publish to Rpubs on Rstudio v1.1.456, instead of login prompt I get this error message below.
[Edited] Rstudio v1.1.456, R v3.5.1
Upload Error Occurred Error in if (result$status == 201) succeeded <-
TRUE : missing value where TRUE/FALSE needed Calls: In
addition: Warning message: In http(protocol, "api.rpubs.com", port,
method, path, headers, : NAs introduced by coercion Execution
halted
I've already addded this line
options(rpubs.upload.method = "internal")
to both global and working directory Rprofile
Apparently, there was an issue in the most recent version of rsconnect (0.8.12).
devtools::install_github("rstudio/rsconnect", ref = "bugfix/multi-status-header")
Installing the patch solves it.

gtrendsR error HTTP 410

I am new to use a package, gtrendsR, running in R 3.4.1, windows 10.
I succeeded in gconnect, but i get the following error message for any types of query passing to gtrends like below.
library(gtrendsR)
gconnect(usr=my_user_name,psw=my_password)
google.trends = gtrends(c("NHL"), geo="US",start_date="2017-01-01")
Error: Not enough search volume. Please change your search terms.
In addition: Warning message:
In request_GET(x, url, ...) : Gone (HTTP 410).
Anybody has some ideas to solve the problems?

bigrquery: Error with Google Big Query R interface

I'm using bigrquery R package to fetch the data. But i'm getting the following error. Let me know if anyone knows how to fix this error.
"Waiting for authentication in browser...
Authentication complete.
Loading required package: rjson
Error: Invalid access credentials have been reset. Please try again.
In addition: Warning messages:
1: In mapCurlOptNames(names(.els), asNames = TRUE) :
Unrecognized CURL options: token.error
2: In mapCurlOptNames(names(.els), asNames = TRUE) :
Unrecognized CURL options: token.error"

Resources