quarto_create_project | R Documentation |
This function calls quarto create project <type> <name>
. It creates a new
directory with the project name, inside the requested parent directory, and
adds some starter files that are appropriate to the project type.
quarto_create_project(
name,
type = "default",
dir = ".",
title = name,
no_prompt = FALSE,
quiet = FALSE,
quarto_args = NULL
)
name |
The name of the project and the directory that will be created. Special case
is to use |
type |
The type of project to create. As of Quarto 1.4, it can be one of
|
dir |
The directory in which to create the new Quarto project, i.e. the parent directory. |
title |
The title of the project. By default, it will be the name of the project, same as directory name created.
or "My project" if |
no_prompt |
Do not prompt to approve the creation of the new project folder. |
quiet |
Suppress warning and other messages, from R and also Quarto CLI
(i.e
On Github Actions, it will always be |
quarto_args |
Character vector of other |
This function requires Quarto 1.4 or higher. Use quarto_version()
to see
your current Quarto version.
Quarto documentation on Quarto projects
## Not run:
# Create a new project directory in another directory
quarto_create_project("my-first-quarto-project", dir = "~/tmp")
# Create a new project directory in the current directory
quarto_create_project("my-first-quarto-project")
# Create a new project with a different title
quarto_create_project("my-first-quarto-project", title = "My Quarto Project")
# Create a new project inside the current directory directly
quarto_create_project(".", title = "My Quarto Project")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.