Create a complete example for markdown o bookdown documents

create_rticles(
  path = NULL,
  type = c("markdown", "bookdown"),
  name = "manuscript",
  project = TRUE,
  server = c("local", "web")
)

Arguments

path

Directory for create the files.

type

Document type (default = "markdown").

name

Name of the main document (default = "manuscript").

project

Create a R project (default = TRUE). See details.

server

How create the dependencies (default = "local").

Source

https://github.com/flavjack/rticles

Value

folder and files

Details

Create all the files in the path directory. It is recommended use ".Rproj". After create the project Open the ".Rprj" file. Compile the document and you will see the example. If you already have a folder and select such as "bookdown" is necessary change the main (.rmd) file to index.rmd.