1 Prerequisites and installation - Steph-Fulda/PLMScoRe GitHub Wiki
To run PLMScoRe you need to download and install:
- R: R is a free software environment for statistical computing and graphics. It compiles and runs on a wide variety of UNIX platforms, Windows and MacOS.
- you may want to add RStudio to that, which is an integrated development environment (IDE) for R. It includes a console, syntax-highlighting editor that supports direct code execution, as well as tools for plotting, history, debugging and workspace management.
Once you have installed R (and possibly RStudio) you need to install PLMScoRe.
####Fail-safe method There is an elegant method (see below) and one that (hopefully) works no matter what:
- In this repository, navigate to the code window, and download the zip file to you local drive.
- Open RStudio, locate the
packages
window (most likely one of the windows in the lower panes), clickinstall
and in the subsequent window, in the fieldInstall from
choosePackage Archive File (zip, tar.gz)
. Locate the downloaded zip file, confirm everything and PLMScoRe will be installed. - If you are using R, select
Packages
and thenInstall packages from local zip files
, locate the downloaded zip file, confirm, voilà. - Do not forget to load it:
library(PLMScoRe)
####Elegant method
In R/RStudio make sure you have installed and loaded devtools
. (if you want to know more about installing and loading, see video, hint: install.packages("devtools")
library(devtools)
). Then:
install_github("Steph-Fulda/PLMScoRe")
If it works, you will see something like this:
Downloading GitHub repo Steph-Fulda/PLMScoRe@master
from URL https://api.github.com/repos/Steph-Fulda/PLMScoRe/zipball/master
Installing PLMScoRe
"C:/PROGRA~1/R/R-33~1.2/bin/x64/R" --no-site-file --no-environ \
--no-save --no-restore --quiet CMD INSTALL \
"C:/Users/Utente/AppData/Local/Temp/Rtmp0EqyRA/devtools3a81f6620bc/Steph-Fulda-PLMScoRe-b29bbeb" \
--library="c:/R packages" --install-tests
* installing *source* package 'PLMScoRe' ...
** R
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
*** arch - i386
*** arch - x64
* DONE (PLMScoRe)
Success!! Now you only have to load the package:
library(PLMScoRe)
Problems that sometimes have been known to occur are somewhere in the notorious and ever changing landscape of windows user permissions which may affect the ability to decompress tar files and can easily cost you hours to figure out. So if that does not work right away, do not waste time, use the fail-safe method described above.
If you have already exported a REMLogic event txt file you are now ready to start with PLMScoRe