Add a pseudo-module, one which maintains the namespace of it's parent module
Usage
add_pseudo_module(
name,
path = "R",
export = FALSE,
ph_name = sprintf("pmod_%s", name),
ph_ui = sprintf("pmod_%s_ui", name),
ph_server = sprintf("pmod_%s_server", name),
open = TRUE
)
Arguments
- name
chr
name of the module
- path
chr
directory in which to create it
- export
lgl
whether it should be exported in the package
- ph_name
chr
The name of file
- ph_ui
chr
The name of the module ui function
- ph_server
chr
The name of the module server function
Value
file
The new file opens