Description Usage Details Value Author(s)
This function detects via username whether the script is run from a server or locally with the server system mounted.
1 | run_loc()
|
This function basically returns a string with "~/server" if the user (as detected by Sys.info) is "malte" or "maltethodberg". This is useful when constructing file paths, since the same code will still get correct files if mounted via sshfs.
Character vector
Malte Thodberg
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.