tar_jags_example_file {jagstargets}R Documentation

Write an example JAGS model file.

Description

Overwrites the file at path with a built-in example JAGS model file.

Usage

tar_jags_example_file(path = tempfile(pattern = "", fileext = ".jags"))

Arguments

path

Character of length 1, file path to write the model file.

Value

NULL (invisibly).

Examples

path <- tempfile(pattern = "", fileext = ".jags")
tar_jags_example_file(path = path)
writeLines(readLines(path))

[Package jagstargets version 1.2.0 Index]