Movatterモバイル変換


[0]ホーム

URL:


Skip to contents

Create a package for a Shiny App using{golem}

Source:R/create_golem.R
create_golem.Rd

Create a package for a Shiny App using{golem}

Usage

create_golem(path,  check_name=TRUE,  open=TRUE,  overwrite=FALSE,  package_name=basename(normalizePath(path, mustWork=FALSE)),  without_comments=FALSE,  project_hook=golem::project_hook,  with_git=FALSE,...)

Arguments

path

Name of the folder to create the package in.This will also be used as the package name.

check_name

Should we check that the package name iscorrect according to CRAN requirements.

open

Boolean. Open the created project?

overwrite

Boolean. Should the already existing project be deleted and replaced?

package_name

Package name to use. By default,{golem} usesbasename(path). Ifpath == '.' &package_name isnot explicitly set, thenbasename(getwd()) will be used.

without_comments

Boolean. Start project without{golem} comments

project_hook

A function executed as a hook after projectcreation. Can be used to change the default{golem} structure.to override the files and content. This function is executed justafter the project is created.

with_git

Boolean. Initialize git repository

...

Arguments passed to theproject_hook() function.

Value

The path, invisibly.

Note

For compatibility issue, this function turnsoptions(shiny.autoload.r)toFALSE. See https://github.com/ThinkR-open/golem/issues/468 for more background.


[8]ページ先頭

©2009-2025 Movatter.jp