Last active
March 3, 2021 18:12
-
-
Save ikashnitsky/32e9aa2a971c6d2682ea8d6af5eb5cde to your computer and use it in GitHub Desktop.
a small function to localize paths in R
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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