This function extracts the Stan Code from a Package and then copies it to your user cache locally.

copy_models(pkgname = "staninside", local_location = NULL)

Arguments

pkgname

a string, the name of the package

local_location

a file path representing the desired location of the local copy. If "default" is provided, the function will use the user cache directory for the package.

Value

file path of newly created files

Examples

local_location <- tempdir()
copy_models(pkgname = "staninside", local_location = local_location)
#>  All models have been copied to your specified location