...
Simply Right click in the empty white space, create new folder, right click the folder and re-name this "4.1.3" and then select the Library folder. Cut and Paste into the 4.1.3 folder, or alternatively drag and drop (as above).
Launching RStudio
Specifying the version of R within RStudio.
Should you wish to change the version of R being used by RStudio, you will need to hold . Ensure that if your library is setup for 4.1.3, you set R to 4.1.3 with either of the following methods, else pick the relevant option to your library.
Change R within RStudio
- Go to Tools > Global options
- Click 'Change...' under R version
- Click the 'Choose a specific version of R' option
- Select '[64-bit] C:/Program Files/R/R-4.1.3'
- Click Okay
- Click Apply
Change R on launch of RStudio
Hold the CTRL key and double click the RStudio launcher, as shown below:
...
Doing this will change the folder in which RStudio loads your library, as shown above, if you select 4.31.3, the library path will be P:\%USERNAME%\AppData\Roaming\R\4.31.3\Library
Additional steps/notes:
I have an IM004 error.
This is due to an environment variable not being set. You may check this within R by entering the following into the Console:
Sys.getenv("DB2CODEPAGE")
If this is coming back blank then you need to make sure it's being set:
Sys.setenv("DB2CODEPAGE" = 1208)
or run "DEM Environment Refresh", found on the desktop.
How can I tell which version of R I am using?
...