disc_conf: Project-level settings

Description Usage Arguments Details Examples

View source: R/disc_conf.R

Description

Read and write project-level settings

Usage

1
2
3
4
5
6
disc_conf(..., deploy.dir = NULL, verbose = FALSE)

dconf(..., deploy.dir = NULL, verbose = FALSE)

## S3 method for class 'disc_conf'
print(x, ...)

Arguments

...

named arguments with settings to set

deploy.dir

path to the directory containing deployments (and associated options). By default "deployments" in the current directory.

verbose

when TRUE, options are shown after being read

Details

Settings are read, in order, from the defaults, then the configuration file in the deployments directory and finally from the arguments provided in .... Then those settings are set with the function options to be accessible from any other function in discr. Finally, the non-default settings are stored in the file "disc.conf" in the deployments directory.

Examples

1
2
3
4
5
disc_conf()
# increase java memory to 2G
disc_conf(java_memory=2048)
# change diameter of arena to 40 cm (large DISC)
disc_conf(diameter=40)

jiho/discr documentation built on May 19, 2019, 9:30 a.m.