standard_file: Construct full path to standard Examples files

Description Usage Arguments Details Value

View source: R/files.R

Description

The Examples in BUGS are named in a standard manner. For a model called "EXAMPLE", there will be the following files:

Usage

1
standard_file(type, model, examples_dir)

Arguments

type

A character string. One of "model", "data", "inits" or "inits1"

model

A character string. The name of one of the Examples, as returned by all_models_in_dir for example.

examples_dir

A character vector (length 1), containing the path to the Examples directory in the MultiBUGS directory

Details

1. EXAMPLE.txt - this is the manual page that describes the model, and links to other pages 2. EXAMPLEmodel.txt - this just contains the model 3. EXAMPLEdata.txt - this just contains the data 4. EXAMPLEinits.txt - this contains the first set of inits 5. EXAMPLEinits1.txt - this contains a second set of inits

This function will create the full path to each of these from the components

Value

A character string with the full path to the corresponding file


MultiBUGS/multibugstests documentation built on Feb. 24, 2020, 2:06 p.m.