Test whether the rstan package and
Mac OS X Developer Tools are installed properly on your laptop.
This involves the R script rstanTest.R.
Start an R session, ensuring that
rstanTest.R is in the current working
directory of your R session and
then issue the command:
source("rstanTest.R")
The script may take close to a minute to run if there are no errors.
Ignore all warning messages printed to the screen.
If the script runs without errors and produces a figure
that looks like the one here
then this
indicates that you have installed the rstan package correctly
and the Mac OS X Developer Tools
If the source("rstanTest.R") command failed then you will need
to install XCode from the
Mac OS X App Store.
To do this, make sure that your laptop has
an Internet connection and then click on the magnifying glass
symbol in the top right-hand corner of your screen. Type
the words App Store in the search box.
Select App Store from the
drop-down menu.
This gives a new window with another magnifying glass symbol and search box in the top right-hand corner.
Type Xcode into this search box and hit Enter.
An icon for Xcode Developer Tools should appear.
Then click on the GET button
of the icon and select INSTALL APP.
Once the Mac OS X Developer Tools have been installed,
try the
source("rstanTest.R")
test again.