Description Usage Arguments Value
This function odg_draft
works analogously to
rmarkdown::draft
, but for ODG graphics files.
The template can either be specified with an explicit
path or in connection with the parameter package where
the latter assumes that package is installed and contains
a directory rmarkdown/templates/<template_name>
.
In both options the template-directory must contain a file
called template.yaml with meta information about the template
and a subdirectory skeleton with all the files that
are to be copied to the directory where the target file
is expected to be. When the parameter create_dir
is
specified either as function parameter or as meta-information
a separate directory for the target file is created. In case
it is needed, the appropriate file extension is pasted to the
name of the target file. In this specific case the extension
we are using here is .odg. The list of files in the
skeleton subdirectory of the template directory is copied
to the path where the target file is supposed to be.
The copying of the files can be specified with an
option that indicates whether existing files should be
overwritten. The last step consists of renaming the
skeleton-file to the basename given in the file
parameter.
1 2 |
file |
name of the and path to the new document |
template |
name of the template |
package |
package where template can be found |
create_dir |
whether or not to create a new directory for this document |
pbOverwrite |
should existing files be overwritten |
file name of the and path to the new document
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.