Skip to content

Instantly share code, notes, and snippets.

@ikashnitsky
Last active March 3, 2021 18:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ikashnitsky/32e9aa2a971c6d2682ea8d6af5eb5cde to your computer and use it in GitHub Desktop.
Save ikashnitsky/32e9aa2a971c6d2682ea8d6af5eb5cde to your computer and use it in GitHub Desktop.
a small function to localize paths in R
lp <- function(path) {
require(here)
require(magrittr)
require(glue)
wd <- here::here()
glue(paste0("{wd}/", path))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment