add_pkg_file | R Documentation |
Automatically generate a file containing functions and related code for R package development.
add_pkg_file(
desc_file,
pkg_name = NULL,
pkg_description = NULL,
author_name = NULL,
author_email = NULL,
github_url = NULL,
output_dir = NULL,
use_figlet = TRUE,
figlet_font = "Slant",
colors = c("red", "yellow", "green", "magenta", "cyan", "yellow", "green", "white",
"magenta", "cyan"),
unicode = TRUE,
verbose = TRUE
)
desc_file |
The DESCRIPTION file.
Must be provided, it will be used to extract package information.
Using |
pkg_name |
Character string, the name of the package. Default is NULL, which will be read from DESCRIPTION file. |
pkg_description |
Character string, short description of the package. Default is NULL, which will be read from DESCRIPTION file. |
author_name |
Character string, name of the package author. Default is NULL, which will be read from DESCRIPTION file. |
author_email |
Character string, email of the package author. Default is NULL, which will be read from DESCRIPTION file. |
github_url |
Character string, GitHub URL of the package. Default is NULL, which will be read from DESCRIPTION file or constructed based on package name. |
output_dir |
Character string, directory where to save the package file. Default is NULL, you should specify it, such as 'R/'. |
use_figlet |
Logical, whether to use figlet for ASCII art generation. Default is TRUE. |
figlet_font |
Character string, figlet font to use. Default is "Slant". |
colors |
Character vector, colors to use for the logo elements. |
unicode |
Logical, whether to use Unicode symbols. Default is TRUE. |
verbose |
Logical, whether to print progress messages. Default is TRUE. |
Creates a file in specified output directory
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.