Description Usage Arguments Details Value Examples
This function hard codes some of the common extensions that we deal with.
1 | remove_extension(fname)
|
fname |
A character string of the filename, with the extension present. |
If none of the known extensions knit.md, utf8.md, R or Rmd are found, then the last period onwards are removed. See the examples.
If no extensions are found, the original filename is returned.
A character string, with the extension removed.
1 2 3 4 | remove_extension("test.Rmd")
remove_extension("test.knit.md")
remove_extension("test.r.txt")
remove_extension("test_no_extension")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.