whisker_path: whisker_path

Description Usage Arguments Details Note See Also Examples

View source: R/whisker_path.R

Description

Combines base::file.path() and except arguments are run through whisker_render first,

Usage

1
2
3
whisker_path(..., data = parent.frame(), fsep = .Platform$file.sep)

whisker.path(..., data = parent.frame(), fsep = .Platform$file.sep)

Arguments

...

character; defining a path

data

named list or environment with variables that will be used during rendering

fsep

character; the path separator to use

Details

whisker.path is an alias for whisker_path.

Note

Whisker variables cannot contain '.' by specification, therefore the template cannot use names with '.'

See Also

base::file.path()
base::whisker_render()

Examples

1
2
3
4
  dir <- "~/tmp"
  file_name <- "myfile"
  whisker_path( "{{dir}}", "{{file_name}}.txt" )
  

decisionpatterns/whisker.tools documentation built on July 1, 2020, 4:18 p.m.