Allow the user to set and examine the parameter used by the package plantuml

getPlantumlOption(x, default = NULL)

plantumlOptions(...)

Arguments

x

a character string holding an option name.

default

if the specified option is not set in the options list, this value is returned. This facilitates retrieving an option and checking whether it is set and setting it separately if not.

...

named value to be set in the form of name = value

Value

  • getPlantumlOption(): the value of the option

  • plantumlOptions(): the old value of the plantuml options

Examples

getPlantumlOption("jar_name")
#> [1] "/Users/rainerkrug/Library/Caches/org.R-project.R/R/plantuml/jar/plantuml.jar"

plantumlOptions(jar_name = "something useless!")

getPlantumlOption("jar_name")
#> [1] "something useless!"