Learn R Programming

golem (version 0.1)

add_js_file: Create Files

Description

These functions create files inside the inst/app folder.

Usage

add_js_file(name, pkg = get_golem_wd(), dir = "inst/app/www",
  open = TRUE, dir_create = TRUE)

add_js_handler(name, pkg = get_golem_wd(), dir = "inst/app/www", open = TRUE, dir_create = TRUE)

add_css_file(name, pkg = get_golem_wd(), dir = "inst/app/www", open = TRUE, dir_create = TRUE)

add_ui_server_files(pkg = get_golem_wd(), dir = "inst/app", dir_create = TRUE)

Arguments

name

The name of the module

pkg

Path to the root of the package. Default is ".".

dir

Path to the dir of the file

open

Should the file be opened?

dir_create

Creates the directory if it doesn't exist, default is TRUE.