How to install and manage multiple versions of R - r

I am working on a machine that has older version of R. I don't have root access on the machine, and the sys admin is on a vacation.
So the question I have is, how can I install and manage (the packages, especially) the latest version of R? Obviously I need to download the R package and install it, but a few detailed instructions from the community will help.
R noob here. Help will be greatly appreciated. Thanks

Related

Seeking assistance to install several old R packages on PC running 64-bit, Windows 10

I am reaching out for help, I have a project that needs old versions (plural) of R.
Can anyone assist me to install several versions of R to run on R Studio? An example of the old version of R is at https://cran.r-project.org/bin/windows/contrib/3.3/
A nifty R script would be very handy.
MANY THANKS in advance.

Deploying shiny app to shinyapp.io with a package not on CRAN or Github

I am trying to deploy my shiny app but it is failing because RDCOMClient is not on CRAN or Github. Well to clarify a version of RDCOMClient is on Github at here but this version does not appear to work with my version of R. I downloaded the binary of the package from here and my app works fine locally.
Possible solutions I have seen or thought of are
Somehow take the binaries from the non-github address and put them on my own github then load the library from my own Github account to have my app deploy properly.
Rollback my version of R to be compatible with the RDCOMClient found at omegahat's github
Find a different library than RDCOMClient to work in its place.
Option #1 - I am unsure of how to put the binaries on Github since R looks for a specific folder/file structure when it pulls in packages from Github.
Option #2 - This seems pretty straight-forward but I worry that some of the other packages or code may not work with an earlier version. Also if someone could link to how to rollback your version of R it would be much appreciated.
Option #3 - I am using RDCOMClient to connect to Outlook and launch a draft email. If someone knows of another package that does something similar to this then this would be a viable solution.
I am of course open to other solutions to this problem and anything that could help would be much appreciated.

how to clone an RStudio environment on a different machine

i've been getting up to speed using R of late, and am wondering what the most efficient way is to clone an RStudio environment, especially the package installations, from one machine to another. i'd like to be able to switch from my desktop machine to my laptop, but i am adding packages very frequently to the desktop as i work and would like a simple way to make sure the same packages get installed on the laptop.
any help much appreciated
ps. not everything i'm installing is from CRAN...some are packages taken from github
If you have more than a couple of machine to maintain with the same R configuration, I think you should consider setting up your own local R repository.
And I will just redirect you to another SO question here:
Creating a local R package repository
You can also find the most useful information in the R manual.
Once this is done, you just have to update the local R repository and the packages will be updated on all machines, Windows or Unix
You can just copy and paste the folders in the R libraries between machines. As long as it is the same operating system on both machines there should not be any problem. If you want it to be automatically synchronised then place the R libraries into something like dropbox so that adding or updating a package will automatically appear on either machine with the next sync.

Cross-compiling R packages with Fortran shared library

I am developing an R package that relies on some Fortran subroutines. I write my code under Linux, but to be able to collaborate with my colleagues who work with Windows, I would like to be able to compile a Windows version of my package.
How to compile an R package for Windows under Linux? I have been looking into this issue on the web and found many suggestions and possible solutions, but no clear advice on how to do this with recent versions of R. It looks like cross-compiling was supported in previous versions of R, but not anymore today.
I am able to compile my Fortran subroutine for Windows under Linux using MinGW, but I am not sure about the next steps to create a package that can be installed on Windows. Does anyone have experience with this?
Any help would be much appreciated, thank you!

Building Revolution R Enterprise from the RevoEnt-10817.enterprise.tar.gz file?

How to build Revolution R Enterprise from the RevoEnt-10817.enterprise.tar.gz file
downloaded from Revolution Analytics website ?
My system is Windows 7. I have already installed R 2.15 and Rstudio.
Will it overwrite the original R installation ?
Can anybody guide me towards some step-by-step document/material ?
I could not quickly find a description on the RevoR website that describes how to install this source package. Like #agstudy suggested, you could post on their support forums and see if they can help you. It looks like you need to build R from source if you want to use the version of RevoR you downloaded, which requires you to install some additional tools. Probably those tools are the same as the ones you need to install for normal R, and can be found here.
But why do you need RevoR? Normal R is equally powerful, and you have already installed R and Rstudio, so you're good to go.

Resources