Add a call to
at the top of your R script or in the first chunk of your rmarkdown document.
This ensures that the project root is set up correctly:
subsequent calls to
here() will refer to the implied project root.
If the current working directory is outside of the project
where the script or report is intended to run, it will fail
with a descriptive message.
Must be empty, reserved for future use.
Relying on the project root determined with a project file,
the default for versions prior to 1.0.0,
only weakly protects against running a script from an arbitrary directory
outside the intended project.
i_am() function offers a stronger way to define the project root:
it will ensure that the project root actually contains a file in that location,
optionally checking for file contents that uniquely identify the file
This function will fail if the script or report is moved within the project.
i_am() call to reflect the new location.
If you use the
nonce argument for extra safety, be sure to change it
when you save an existing script or report under a new name.
This function is called for its side effects.
1 2 3 4 5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.