Description Usage Arguments Details Value Author(s) Examples
This function creates a new subdirectory inside the current directory, which will contain a ready-to-use RMarkdown file to be rendered in the given format.
1 2 | create.doc(dirname = "new-doc", format = "html_clean", report = FALSE,
makefile = TRUE)
|
dirname |
name of the directory to create |
format |
R Markdown format to use |
report |
indicates if the new document is living in the |
makefile |
indicates if a 'Makefile' for HTML and PDF rendering should be created in the document folder |
For now on, the available formats are "html_clean", "html_docco".
If report
is TRUE, then a small snippet of code is added at the
beginning of the Rmd file. This code allows to switch to the ProjectTemplate
project root before running load.project
when using the included Makefile.
No value is returned.
Julien Barnier <julien.barnier@ens-lyon.fr>
This function is heavily inspired and copied from the create.project function
of the ProjectTemplate
package.
1 2 3 4 | ## Not run:
create.doc("MyDocument", format="html_clean")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.