8.2 Create a {golem}

  1. Install libraries (if required)
  2. 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
golem::create_golem(path = "~/Documents/GitHub/bookclub-epgs/golex")

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}
fs::dir_tree("golex")

NOTE: If you get and output with fs::dir_tree("golex") your package is working properly