Skip to content

Commit

Permalink
fix write error if R user dir for appc does not exist
Browse files Browse the repository at this point in the history
  • Loading branch information
cole-brokamp committed Feb 2, 2024
1 parent adb1d09 commit 0eb411e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/helper.R
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
.onLoad <- function(...) {
dir.create(tools::R_user_dir("appc", "data"), recursive = TRUE, showWarnings=FALSE)
}

#' Get the geography of the 2020 contiguous United States
#' @return s2_geography object
#' @export
Expand Down

0 comments on commit 0eb411e

Please sign in to comment.