Description Usage Arguments Details Value Author(s) Examples
This function retrieves the path of a style file by looking in various places of the system
1 | getStyleFile(name = "default", extension = "css")
|
name |
name of the stylesheet, without extension |
extension |
extension of the stylesheet (e.g. css) |
The function looks for a file called name.extension in the following places:
the current working directory (see getwd
), the user directory
used by highlight (~/.R/highlight), the stylesheet directory
of the installed package.
The first file found is returned. If no file is found, the function returns NULL.
Romain Francois <romain@r-enthusiasts.com>
1 2 3 4 5 6 | ## Not run:
getwd()
file.path(Sys.getenv("HOME"), ".R", "highlight" )
system.file("stylesheet", package = "highlight")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.