Skip to content

Commit

Permalink
fix: get_data_dir() should return fully-specified path for data direc…
Browse files Browse the repository at this point in the history
…tory
  • Loading branch information
russHyde committed Apr 16, 2024
1 parent 364dffe commit 54d183d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/config.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
#' @return Scalar string. The data-directory for use in the app.

get_data_dir = function() {
Sys.getenv(
path = Sys.getenv(
"APP_DATA_DIR",
system.file("app", "www", "data", package = "tfpbrowser")
)

normalizePath(path)
}

0 comments on commit 54d183d

Please sign in to comment.