add: Create a Markdown (or R Markdown) file to populate your...

Description Usage Arguments Value Examples

Description

Create a Markdown (or R Markdown) file to populate your documentation.

Usage

1
2
3

Arguments

name

Name of the .md (or .Rmd) file to create. If the file already exists, it will return an error.

open

Open or not the files created. Default is TRUE.

Value

Creates a Markdown file in "docs".

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
## Not run: 

library(docsifier)

# Create a test folder and a test package for the example

test_folder <- tempdir()
setwd(test_folder)
devtools::create("dummy")
setwd("dummy")

# Generate the minimal documentation for docsify.js

init_docsify()

# Create a new .md in "/docs"

add_md("test")

# Will output an error because "test.md" already exists

add_md("test")

## End(Not run)

etiennebacher/docsifier documentation built on Feb. 21, 2022, 2:20 p.m.