Learn R Programming

pksensi (version 1.1.6)

mcsim_install: Install GNU MCSim

Description

Download the latest or specific version of GNU MCSim from the official website (https://www.gnu.org/software/mcsim/) and install it to the system directory.

Usage

mcsim_install(version = "6.1.0", directory = NULL, mxstep = 5000)

mcsim_version()

Arguments

version

a character of version number.

directory

a character to assign the installed directory.

mxstep

a numeric value to assign the maximum number of (internally defined) steps allowed during one call to the solver.

Functions

  • mcsim_version: Return the version number.

Details

This function aims to help users install GNU MCSim more easily. However, if you can not install it through this function. The additional way is to follow the instruction and install it manually: https://www.gnu.org/software/mcsim/mcsim.html#Installation

The default mxstp is setting to 5000. The user can increase mxstp to avoid possible error return. If you meet any error when conduct sensitivity analysis, you can this function to reinstall GNU MCSim and set the higher mxstp. The default installed directory is under /home/username (Linux), /Users/username (MacOS), and C:/Users/ (windows). To install GNU MCSim in Windows, be sure to install Rtools first.

References

Bois, F. Y., & Maszle, D. R. (1997). MCSim: a Monte Carlo simulation program. Journal of Statistical Software, 2(9): 1<U+2013>60.

https://www.gnu.org/software/mcsim/

Examples

Run this code
# NOT RUN {
mcsim_install(version = 6.1.0, mxstep = 10000)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab