How do I install packages? - r

After i tried to install a package in R i can't install packages anymore, it's somehow blocked. I get this box with the question if i want to create a personal library etc. and if i press yes the same box comes again and again, if i press no then comes a box that says unable to install packages. I've tried several solutions but nothing has worked. Any ideas? I'm really desperate cause I can't go further with my studying for the university. Thanks in advance!
I've tried uninstalling and reinstalling R and Rstudio, closing Firewalls and Antiviruses, opening Rstudio as administrator. Maybe i've done somthings the wrong way, so any tips from zero point would be helpful. Thanks

I had used R-studio for exploratory Data analysis a few months back. I also faced the same issue, some times R-studio refuses to install packages, so what I did was uninstall the IDE and install it again, it starts from the beginning and loads up with default configuration. Once installed I used the command
install.packages('tidyverse')
Here's the link to official R-studio IDE documentation :
https://support.posit.co/hc/en-us/articles/200554786-Problem-Installing-Packages-in-the-RStudio-IDE
The above solution worked for me.

Related

Installing Julia Packages via GitHub

To preface this question I am coming from the perspective of an absolute beginner, trying to learn Julia. I was recommended to try the SciML tutorial and in trying to install it have fallen at the first hurdle.
So far I have:
Installed Julia
Installed Anaconda
Installed Jupyter Notebook
Added "git" through the Anaconda console
Added "IJulia"
From here I have been able to open Jupyter through Anaconda and access Julia 1.7.3 within it. Following this I attempted to follow the instructions on the SciML website for getting started with the tutorial, which is to enter this code:
using Pkg
pkg"add https://github.com/SciML/SciMLTutorials.jl"
using SciMLTutorials
SciMLTutorials.open_notebooks()
However, the second line is throwing this error
invalid git HEAD (reference 'refs/heads/master' not found)
I have also tried installing the package through the Julia console, but recieve the same error.
I am at a loss of how to proceed - I can't find anything in the documentation that suggests why this may be or how to proceed - since I am so new to this I suspect I may have missed a step in my installation process, but can't figure out where that may be.

Unable to install all kinds of packages except one in RStudio - I can't install the packages I want

I started a course and I managed to download RStudio and to install the package the teacher asked. However, I'm unable to install anything else. I've tried several tips from other asks I saw, but the problem seems to be where it's being installed and not much of a question of CRAN. Here's what happened:
>Error in install.packages : cannot open file 'C:/Users/Anabe/OneDrive/Documentos/R/win-library/4.1/file2910537661eb/stringfish/icelandic_words_500_utf8.txt': Permission denied
I managed to run R as administrator and two packages that weren't being installed before were installed. I do hope everything is going to work now. Thank you so much for your help. I can't wait to learn more R :)

Can't install a package with an error: "Currently it is not possible to install binary packages from a remote repository as root"

I was unable to install a R package through GUI R.app on macOS, using a package installer GUI. In the past, I was able to install it without any problems.
The problem is when I tried to install a package, an error Currently it is not possible to install binary packages from a remote repository as root. occurred. I might not be good at the system-level knowledge, so want to use GUI as I have used it. But what is preventing the GUI from working any longer? Maybe from Yosemite it is no longer working?
And finally, is it still possible to use GUI package installer in this situation?
UPDATE
Hmmm... It seems that after updating to 3.3.1 (I used 3.3), the problem has gone away. I can install packages both at User Level and System Level without any problems. I don't know why, but someone can clarify it in case I would face the same problem in the future?

Keep getting errors when trying to knit a PDF using R Markdown

cross-post from /r/RStudio
Hello everybody,
So I've attempted to troubleshoot this issue for about 4 hours last night with no luck. I've looked through all the similar issues in the RStudio community and attempted all the suggested "fixes", but still haven't been able to get this darn thing to work.
Here is link to view the error I am getting:
http://www.r-fiddle.org/#/fiddle?id=ofOOEmKH
I'm aware that it says a latex package is missing, but I can assure you it is not. I made sure to reinstall it using the MIKTEX package manager and it's working just fine.
I also attempted to install the latest version of RMarkdown from github using the devtools package.
I also attempted to install R onto a directory without any spaces in the directory name -- nothing.
Can somebody please help me out here!
For those of you who are having similar issues. I fully uninstalled MIKTEX and reinstalled a complete version of proTeXt (which is basically a full install of MIKTEX plus a LaTeX IDE called TeXstudio) and it fully fixed my issue.
I am now able to compile PDFs through RMarkdown without any issue.
Cheers!

Have RStudio run on RRO by default

I installed the beta version of R Open from:
http://mran.revolutionanalytics.com/documents/rro/installation/
It also installs the usual R GUI and I couldn't not find documentation on the MRAN site to switch to RStudio. Anyone has found a way to have RStudio run on RRO?
Thanks Jason. This is the right move.

Resources