technical:recipes:r-in-rlibs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
technical:recipes:r-in-rlibs [2020-09-05 12:27] – [Install the R Packages] anitatechnical:recipes:r-in-rlibs [2020-09-05 12:51] (current) – [VALET Package for R Packages] anita
Line 196: Line 196:
 ==== VALET Package for R Packages ==== ==== VALET Package for R Packages ====
  
-Last step is to create a VALET package to load the correct version of R and your newly installed R packages.  The easiest way to do this is to copy the VALET package for the version of R you used for the installation, add your R_LIBS and load the dependent packages.  For this recipe, we will call the VALET package ''spatial-r.vpkg_yaml'' +Last step is to create a VALET package to load the correct version of R and your newly installed R packages.  The easiest way to do this is to copy the VALET package for the version of R you used for the installation, add your R_LIBS and load the dependent packages.  For this recipe, we will call the VALET package ''spatial-r.vpkg_yaml'' and it should be put in the workgroup ''sw'' directory in ''valet'' so it will be found when using your workgroup.
  
 <code bash> <code bash>
-more spatial-r.vpkg_yaml+[(it_css:traine)@login01 valet]pwd 
 +/work/it_css/sw/valet 
 +[(it_css:traine)@login01 valet]$ cat spatial-r.vpkg_yaml
 spatial-r: spatial-r:
   description:       The Comprehensive R Archive Network   description:       The Comprehensive R Archive Network
Line 230: Line 232:
           value:        /work/it_css/sw/r/add-ons/r3.5.1/spatial-09052020/default           value:        /work/it_css/sw/r/add-ons/r3.5.1/spatial-09052020/default
 </code> </code>
 +
 +==== Testing R packages ====
 +
 +Now that you have installed your R packages, let's test by using VALET to setup our new environment by first clearing it and then using our new VALET package
 +
 +<code bash>
 +[(it_css:traine)@login01 ~]$ vpkg_rollback all
 +[(it_css:traine)@login01 ~]$ vpkg_require spatial-r
 +
 +</code>
 +
 +
  • technical/recipes/r-in-rlibs.1599323269.txt.gz
  • Last modified: 2020-09-05 12:27
  • by anita