Skip to content

Installing the SMRD package  #2

@Auburngrads

Description

@Auburngrads

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:

  1. 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.
  2. If the name of the SMRD directory includes a version number i.e. SMRD_3.5.0 make sure to delete the _3.5.0 part.
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions