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.
Related
I am currently trying to download a couple of packages via BiocManagerBiocManager::install("gplots")
But this error message shows up:
Error in unpackPkgZip(foundpkgs[okp, 2L], foundpkgs[okp, 1L], lib, libs_only, :
ERROR: failed to lock directory ‘C:\Users\Linap\AppData\Local\R\win-library\4.2’ for modifying
Try removing ‘C:\Users\Linap\AppData\Local\R\win-library\4.2/00LOCK’
Why does it say that and how do I fix the problem?
Thanks in advance!
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.
Hi I am currently run R code with version 4.1.0 on ubuntu(WSL) right now. I try to install some R packages manually because my internet is too slow, but I cannot get permission, the warning messages suggest the probable reason "permission denied". Here is the error and warning messages.
Warning in dir.create(path, showWarnings = TRUE, recursive = TRUE, ...) :
cannot create dir 'Rhdf5lib_1.14.2/Rhdf5lib', reason 'Permission denied'
Error in mydir.create(name) :
failed to create directory ‘Rhdf5lib_1.14.2/Rhdf5lib’
I really hope someone can help me with this problem, thanks a lot!
Try to start your R session with sudo R. Other possible option is to specify a lib argument like install.packages("SomePackage", lib = "/home/user/R/...")
I try the following command
export PATH=$PATH: path/to/your/R
and run R directly,this works for me.
I am trying to source a script from my github repo containing functions I use often.
So I have that line at the beginning of my script:
source("https://github.com/jogaudard/common/blob/master/fun-fluxes.R")
In RStudio it returns (same with R in the terminal)
Error in source("https://github.com/jogaudard/common/blob/master/fun-fluxes.R") :
https://github.com/jogaudard/common/blob/master/fun-fluxes.R:6:1: unexpected '<'
5:
6: <
^
In an online R editor I got
Error in file(filename, "r", encoding = encoding) :
cannot open the connection to 'https://github.com/jogaudard/common/blob/master/fun-fluxes.R'
Calls: source -> file
In addition: Warning message:
In file(filename, "r", encoding = encoding) :
URL 'https://github.com/jogaudard/common/blob/master/fun-fluxes.R': status was 'Couldn't resolve host name'
Execution halted
I tried with other scripts. I get the same error with anything that is online. source() is working fine with scripts in local (both in the same directory or somewhere else).
It happened since I installed a package that messed a bit with curl. So I thought that might be the issue. But when I tried from another computer I got the same error.
Both computers have R version 3.6.3 on Ubuntu 18.04.5 LTS
I am honestly lost. Cannot find any similar issues anywhere.
You are sourcing a file with html markup and R considers that markup (correctly) to be syntax errors. Use source("https://raw.githubusercontent.com/jogaudard/common/master/fun-fluxes.R") to source the "raw" file.
Your issue with the online R services is a red herring. If you need someone to look into that, you should provide a URL for the service.
I'm trying to publish an RMarkdown document to my RPubs account, but I get the next error when clicking on "Publish":
Error in file(con, "r") : cannot open the connection
In addition: Warning message:
In file(con, "r") :
cannot open file 'C:/Users/.../File.Rmd': No such file or directory
It also pops up a window saying the next two warnings:
First pop up: "Could not Publish - Error ocurred while executing method"
Second pop up: "Could not Publish - (TypeError): null is not an object evaluating 'b.g.')
My R version is 3.4.2, RStudio version is 1.1.383, knitr version is 1.17.
I have also checked is the working directory contains the files I'm using at the script, and all seems properly set.
This error only happens when I click on Publish. If I try to knit to HTML or to PDF it works. I have tried to restart and reinstall also both R and RStudio but the error persists.
Has anyone had the same error and knows how to solve it?
Thank you very much!
Is the file saved? Are you in the correct directory?
Please check getwd().
I managed to solve it. The problem was that the path of the working directory contained an accent. I changed the path to another folder without accents and it worked.