change.extension | R Documentation |
change the extension of a file
change.extension(file, ext.from, ext.to)
file |
a character giving the file path |
ext.from |
the extension to change from |
ext.to |
the extension to change to |
if the file has the extension given by ext.from, then the extension is changed. Otherwise, the extension given by ext.to is appended to file.
# both of the following gives "test.pdf"
change.extension("test.tex", ".tex", ".pdf")
change.extension("test", ".tex", ".pdf")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.