get_golem_wd
allows to print the current golem working directory, and set_golem_wd
to change it.In order to work, the functions creating files need a golem.wd
. This working directory is set by set_golem_options
or the first time you create a file. It default to "."
, the current directory.
Changes in the name of the args in set_golem_options
: pkg_path
is now golem_wd
, pkg_name
is now golem_name
, pkg_version
is now golem_version
installed.packages()
function is no longer used.get_golem_options()
. #See https://rtask.thinkr.fr/blog/shinyapp-runapp-shinyappdir-difference/
ui.R
and server.R
to exist by default. Removed. Can be recreated with add_ui_server_files()
add_shinyserver_file
& add_shinyappsio_file
, #40add_ui_server_files()
creates an ui & server.R files.dir_create = FALSE
open = FALSE
, #75create_golem()
now switch to the newly created projectuse_git()
is not listed in dev/01_start.R
add_rconnect_file()
to add_rstudioconnect_file()
create_shiny_template()
to create_golem()
js()
to activate_js()
use_recommended_dep()
to use_recommended_deps()
invoke_js()
allows to call JS functions from the server side. #52The dev files are now splitted in three - start / dev / deploy
Every function that adds a file now check if the file already exists, and ask the user if they want to overwrite it (#15)
Every module is now named mod_x_ui / mod_x_server, for consistency.
You can now create package with “illegal” names, using the command line golem::create_shiny_template()
. #18
add_browser_button()
is now named browser_button()
, so that all the add_*
function are only reserved for function adding files to the golem
.
add_*_files
now check if the folder exists, if not suggests to create it. #36
You now have a browser_dev()
function that behaves like warning_dev
and friends. #46
Added set_golem_options()
to add local options used internally by {golem} && added it to the 01_start.R
. #49
Added add_dockerfile()
to create a Dockerfile from a DESCRIPTION.
Added add_dockerfile_shinyproxy()
to create a Dockerfile from a DESCRIPTION, to be used in Shiny Proxy.
Added add_dockerfile_heroku()
to create a Dockerfile from a DESCRIPTION, to be used with Heroku.
add_css_file()
, add_js_file()
and add_js_handler()
create a CSS, JS, and JS with Shiny custom handler files.
use_utils_prod
is now included in golem so you don’t have to explicitely include the functions.Last round of functions, and some documentation cleanup.
Moved from {shinytemplate} to {golem}
Added a NEWS.md
file to track changes to the package.