run_loc: Detect whether the script is run locally or on server

Description Usage Details Value Author(s)

Description

This function detects via username whether the script is run from a server or locally with the server system mounted.

Usage

1

Details

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.

Value

Character vector

Author(s)

Malte Thodberg


MalteThodberg/coRe documentation built on May 8, 2019, 3:25 p.m.