Install hts package in R studio 1..463 - r

I am trying to install a time series package in R studio (hts), however, I am getting an error:
"Error in install.packages : cannot open file 'C:/Users/Salam/Documents/R/win-library/3.5/file39b01ea77002/glue/DESCRIPTION': Permission denied"
I tried turning off the firewall, the user that I am using has a full control on the folder, I also removed the check from the option "read only", running R as an administrator.
anyone has an idea?
Thanks.

Related

unable to install R packages - unknown input format

I have a work laptop that has recently forced a migration to microsoft OneDrive and all kinds of things have been squirrely since then, so I'll preface that MAYBE that has something to do with it. I'm running R 3.6.3 in RStudio.
Suddenly today though when I try to install a package I get a very weird error message I've never encountered before
install.packages("tidyquant")
warning in install.packages :
unable to access index for repository http://cran.rstudio.com/src/contrib:
Found continuation line starting ' <!DOCTYPE html> ...' at begin of record.
Error in install.packages : unknown input format
I tried some troubleshooting steps found elsewhere including
uncheck the global option for require secure download
delete the .Rhistory file and run update.packages()
when I run update.packages() I get
Error in readRDS(dest) : unknown input format
Any advice on how to proceed would be most appreciated.

I cannot connect to shinyapps.io Publishing Account in R Studio. I see an error

I am not able to connect to my Publishing account on R studio.
I go to the path Tools -> Global Options -> Publishing -> Connect
I choose ShinyApps.io and I paste the command that I copied from shinyapps.io dashboard (command from STEP 2 – AUTHORIZE ACCOUNT)
I click on Connect Account but I see this error
I tried connecting from R Studio Console using rsconnect::setAccountInfo(name, token, secret) and I got the below error.
"Error in rbind(info, getNamespaceInfo(env, "S3methods")) :
number of columns of matrices must match (see arg 2)"
I tried connecting by disabling Firewall. It did not work.
I have tried looking online for other troubleshooting steps but I could not understand what the actual issue is.
Can you please help me?
I am using R studio Version 1.3.959 and R version 3.5.2
Check the error when you click connect.
It shows:
Error in the library.dynam(lib, package, package.lib):
DLL ‘openssl’ not found: maybe not installed for this architecture?
This error follows the instruction i.e install the given package. In my case 'OpenSSL' was missing so I installed it and it worked.

lazy-load database '../R/NymbulCredentials.rdb' is corrupt

I am trying to install a package from GitHub in support of deploying an app to shinyapps.io. If I download the package onto my machine, then it installs without issue. However, if I execute the command (in RStudio):
devtools::install_github(repo="rlmoore0/NMDeploy", subdir="NymbulCredentials")
then I get an error message: Error in (function (n) :
lazy-load database '../R/NymbulCredentials.rdb' is corrupt
This GitHub repo is public, so anyone can try running this command from within R/RStudio with devtools installed. I am on a Windows box running R 3.6.3, Win10.
Any suggestions?
I have looked at questions from other people with similar problems and based on the responses to them, I have tried:
Closing and restarting R/RStudio
Executing the command devtools::unload("NymbulCredentials")
Executing the command unloadNamespace("NymbulCredentials")
Removing the installation library the package is being installed to as referenced by .libPaths() and trying a fresh directory as the installation location.
The error still persists.

Warning in install.packages lib is not writeable in R studio

Extremely frustrated that I am not able to install the following package:
install.packages('tseries')
after I run this command I get the following message:
Would you like to use a personal library instead?
I click "yes"
Then it attempts to download a bunch of things from R URLs.
Then I get the following error where it mentions
Warning in install packages: lib = "My path" is not writable
I have read multiple things that mentioned that I need to set myself as administrator with full control/access.
I have done so and allowed full control to my personal account.
I then restart R and try to install the tseries package again but I get the same exact errors as mentioned above.
System windows 10
R version 3.6

MicroSoft R open Package install issue

I'm getting this error when trying to install or load packages on MRO..
Warning: unable to access index for repository
https://mran.revolutionanalytics.com/snapshot/2016-11-01/src/contrib:
cannot open URL
'https://mran.revolutionanalytics.com/snapshot/2016-11-01/src/contrib/PACKAGES'
Does anyone know what to do..?
Paul.

Resources