installr | Functions for installing softwares from within R | Configuration Management library
kandi X-RAY | installr Summary
kandi X-RAY | installr Summary
The installr package offers a set of R functions for the installation and updating of software (currently, only on Windows OS), with a special focus on R itself. This package has two main goals:.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of installr
installr Key Features
installr Examples and Code Snippets
Community Discussions
Trending Discussions on installr
QUESTION
It's the first time I update R so I'm not too sure how it all works. I have updated R (for Windows) from RGUI and from RStudio with the installr package and updated all the packages.
In both cases I got confirmation messages that R has been upgraded to version 4.1.3:
The new directory has been created and everything seems to be as it should.
However, when I open the projects and apps I'm working on in RStudio, I still get the old version:
...ANSWER
Answered 2022-Mar-15 at 18:13In RStudio, go to Tools ... Global Options ... General ... Basic .. R Sessions. It allows you to choose a specific version of R
QUESTION
I'm using R Studios Cloud but I am suddenly experiencing difficulty knitting my markdown in any format (html, pdf & word).
This is the error I'm thrown when I press the knit button:
...ANSWER
Answered 2022-Mar-09 at 01:41Found the solution.
Relaunch your project by clicking on the 3 dots in the upper right corner.
See thread here.
Seems to be a common error happening to a lot of r studio cloud users in the past 24 hours.
QUESTION
Got a new company laptop and tried to install tidyr or installr, but it always fails because of magrittr.
If I want to install this package directly I'm getting the following error code:
...ANSWER
Answered 2021-May-03 at 08:28Installing an archived version from source will work.
QUESTION
Recently, I have updated R using installr
so that I have now two versions (3.6.1 e 4.0.3) installed in my computer running Windows 10, but I only use the 4.0.3 version. For some reasons I do not know, the 'exams' package has not been transferred to the new version so I had to reinstall it, but now 'exams2pdf' does not work anymore and I get the following error message:
LaTeX Error: File `Sweave.sty' not found.
Any help would be very much appreciated.
...ANSWER
Answered 2020-Dec-30 at 15:35I opened the MikTeX Console, selected: Settings > Directories, and then the small + button to add the folder "C:\Program Files\R\R-4.0.3\share\texmf". Now I do not get anymore the error message and it works.
QUESTION
With R 4.0.0 and recently R 4.0.1 being released recently, I would like to know how to upgrade?
Previously I used UpdateR from the installR package.
Will it work just as well upgrading to 4.x?
The documentation for 4.0.0 states that:
Packages need to be (re-)installed under this version (4.0.0) of R
Will updateR re-install everything and if not, how can I get list of packages to install in a reasonable amount of time.
I cannot believe I can't find any 4.x install or update details elsewhere, most importantly are there any specific issues or limitation or code changes required in 4.x from 3.x.
Also I use Rbuild Tools for Rcpp. Do I need to update those tools to 4.0 as well and is there a special way to do so?
...ANSWER
Answered 2020-Jun-12 at 23:24I did this a few weeks ago.
UpdateR didn't migrate the packages as expected, so that I had to do it manually :
- Install R 4.0.x
- Install RTools 4.0, take care to set $Path correctly as instructed. This new version is necessary for R 4.0 to compile from source some packages still in 3.x
- Migrate the packages from R 3.x to R 4.x :
QUESTION
I have Microsoft Visual Studio Professional 2015 installed on my machine, i also have SQL Server 2017 installed.
I am trying to install SQL Server Development Tools for BI projects on my machine,i tried installing 'SSDT for VS2015 17.4' , 'SSDT for VS2015 17.3' and also 'SSDT for VS2015 16.5' and everything failed.
...ANSWER
Answered 2020-Jun-02 at 07:54Please try these steps:
First, please make sure that your Internet connection is ok and your VS2015 has already installed the Sql Server workload.(you can try to check whether you can create a project called Sql Server Database Project
)
Then,
1) Please check all the Windows update and install the latest patches.
2) use .Net Framework Repair Tool to repair the Net Framework's problems.
3) download this repair tool and then run it.
4) clean any caches under %temp%(C:\Users\xxx\AppData\Local\Temp
) and then reboot your PC.
5) when you restart PC, turn off any third party software, firewall, Antivirus software and then run SSDT for VS2015 as Administrator.
Besides, you can also try to create an offline installation package for VS2015.
1) Open CMD using 'Run As Administrator' option.
2) Navigate to installer location using the opened CMD/
3) Type the installer filename followed by /layout
option. Like SSDT-Setup-ENU.exe /layout 'C:\layout'(the created folder)
4) then run the exe in that folder to install it.
In addition, Since your log is not full enough and if your issue still persists, you could use collect log tool to gather the installation logs. find vslogs.zip from %temp% folder. Please upload the file to Onedrive and share the link here.
QUESTION
So I used installR on Rstudio to update R to version 4.0.0, and it copied the files of my packages into the library file in the R, the directory being: C:\Users\Ibrahim\Documents\R\R-4.0.0\library
Whenever I'd call on a package, for example tidytext, it would give me:
...ANSWER
Answered 2020-May-31 at 17:05Some R packages really need recompilation after upgrade of R to a newer version. This could be your case. To reinstall and update these old packages (i.e. packages built under an earlier version of R) you can try to run this code in R console:
QUESTION
I've updated to R 4.0.0
and RStudio version 1.2.5042
.
I'm developing a package and I've regularly used the following workflow:
- Build the package from within RStudio by clicking the "Install & Restart" button (including the
--with-keep.source
R CMD INSTALL option). - Set a breakpoint in the
.R
file of the function I want to debug. - Call the function and wait for the debugger to stop exactly where I set the breakpoint.
This used to work nicely. Now, however, I always get:
Debug location is approximate because the source is not available
This is annyoing because I can still debug, but I'm not in the actual function anymore.
Any hints/ideas why this is?
Edit (11.05.2020)It seems like this is an issue with RStudio and R 4.0.0. Here is why I think so. I used another machine running Windows 10 and did the following steps (in this order; should be reproducible for Windows users). At the outset I had R 3.6.1 and RStudio 1.2.5042 installed (at the time of writing 1.2.5042 was the current version; tried also with the preview version 1.3.957 of RStudio).
Clone the package I'm developing from Github:
...
ANSWER
Answered 2020-May-11 at 22:32I investigated this using your package and discovered that what you're seeing here is a bug fairly deep in the RStudio / R interface, caused by some subtle changes R made in R 4.0 around source references.
The problem happens whenever there's a backslash (\
) in a function's code. When that happens, R is escaping it, which causes RStudio to think that the copy of the function you're looking at is different than the one in the file, which in turn causes it to show you a copy in a code browser instead of opening the file itself.
Since your csem()
function contains a backslash it triggers the issue. I've written this up on our issue tracker here:
QUESTION
I updated R using installr
and asked to copy my library. (Even though I've never had this work, I keep hoping maybe it will someday as the package gets updated.) Opened up RStudio and, as usual, it can't find any of the packages that were in my old library. I next copied all the files from my old library into my new library, and several critical ones still don't work. For example, when I tried to load tidyverse
, the message I receive is: Error: package or namespace load failed for ‘tidyverse’: package ‘lazyeval’ was installed by an R version with different internals; it needs to be reinstalled for use with this R version
.
I tried remove.packages("tidyverse")
and then install.packages("tidyverse", dependencies = TRUE)
, and I still get the same message about the package lazyeval
. I tried installing lazyeval
, but then, when I go through those same steps again to try to use tidyverse
, now it's lubridate
that was installed by an R version with different internals.
How can I avoid this incredibly irritating and time-sucking iterative process of trying to install a package, seeing that the internals are wrong for some dependent package, installing whatever package was the problem, installing the package I actually care about, and then figuring out what other dependencies are problems?
...ANSWER
Answered 2020-Feb-23 at 01:17The tidyverse
package hardly contains anything: its main purpose is to get a bunch of other packages loaded. Removing it and updating it won't help update the other packages. You could do what @phago29 suggested in their comment, but an easier way is just to update everything. Run this command in an R session:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install installr
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page