-
Notifications
You must be signed in to change notification settings - Fork 2
Installing the SMRD package #2
Description
Note: These install procedures bypass a few steps from the standard package installation process. If you run into problems, let me know by posting a comment below.
1. Install the SMRD package dependencies
Running the following at the R console to install the packages and their dependencies. Note this may take a while to get all of the packages installed, so run this when you have a spare minute.
install.packages(c('graphics',
'stats',
'nlme',
'lattice',
'grid',
'survival',
'plot3D',
'FSA',
'DT',
'xtable',
'pacman',
'teachingApps'))
2. Install SMRD
Typically, when you install a package using install.packages R downloads files and compiles the raw code on your machine. However, I can't yet make the raw code available due to an existing MOU I've signed with Dr Meeker. Once the we've finished re-writing the code that was initial written under a contract we can publish the package and restore balance to the force 🙏.
For now, the version(s) of the SMRD package contained in this repo have already been compiled and can be installed by pasting the entire directory into your library. However, before doing this note the following:
- This version was built on my machine and has therefore been compiled for Windows. If you're using a different OS I need to get with you to install the package on your machine in person.
- If the name of the SMRD directory includes a version number i.e.
SMRD_3.5.0make sure to delete the_3.5.0part. - R recently released version 3.5.0 which contains several significant changes under the hood. While it probably goes without saying paste the directory that corresponds to the version of R that you're using.
With those out of the way, let's get back to installing the SMRD package. The location of your library where SMRD should be pasted can be found by running .libPaths()[1] in the console. Further, you can access your library location using:
browseURL(.libPaths()[1])
Once it has been pasted, check for any problems by loading the package using
library(SMRD)
In this case no news is good news. With the package installed you should note that several vignettes are available that show how to implement the code for each chapter in the Meeker and Escobar text. You can access these vignettes by running vignette('echapterX') replacing X with the desired chapter number. You'll notice that some of these vignettes are more complete that others.