build_config_path: Create a configuration file name in the form of...

View source: R/misc.R

build_config_pathR Documentation

Create a configuration file name in the form of /path/to/.hostname-rc

Description

Create a configuration file name in the form of /path/to/.hostname-rc

Usage

build_config_path(hostname = system("hostname", intern = TRUE), path = "~")

Arguments

hostname

character hostname

path

character the directory of the configuration file

Value

the complete configuration file path

Examples

 ## Not run: 
 build_config_path()
 [1] "~/.scgc-clarity-dev-rc"
 build_config_path(hostname = 'foo')
 [1] "~/.foo-rc"
 build_config_path(hostname = 'foo', path = '/stairway/to/heaven')
 [1] "/stairway/to/heaven/.foo-rc"
 build_config_path(hostname = 'foo.bar.org', path = '/stairway/to/heaven')
 [1] "/stairway/to/heaven/.foo-rc"
 
## End(Not run)

BigelowLab/genologicsr documentation built on June 7, 2024, 3:15 a.m.