8.2 Create a {golem}
- Install libraries (if required)
- File -> New Project -> Select “Package for shiny app Using golem”
Alternative, see code snippet below. Replace path/to/package
with your known namespace.
library(here)
library(golem)
# Creating a golem project from the command line
::create_golem(path = "~/Documents/GitHub/bookclub-epgs/golex") golem
You can view your new project directory structure using:
# This is what a default {golem} project looks like
# Listing the files from the `golex` project using {fs}
::dir_tree("golex") fs
NOTE: If you get and output with
fs::dir_tree("golex")
your package is working properly