diff --git a/R/get.R b/R/get.R index 05761e93..078aacd3 100644 --- a/R/get.R +++ b/R/get.R @@ -37,7 +37,7 @@ get_project_id <- function() { #' Looks in the [options()] for `fastreg.project_rawdata_dir` and #' `fastreg.project_workdata_dir` first, and if not found, constructs a path #' based on the project ID using `get_project_id()`. The constructed path is -#' `E://rawdata/` for raw data and `E://workdata/` for n +#' `E:/rawdata//` for raw data and `E:/workdata//` for n #' work data. #' #' @returns A path object. @@ -58,7 +58,7 @@ get_project_rawdata_dir <- function() { ) } - glue::glue("E:/{id}/rawdata/") |> + glue::glue("E:/rawdata/{id}/") |> fs::path() } @@ -79,6 +79,6 @@ get_project_workdata_dir <- function() { ) ) } - glue::glue("E:/{id}/workdata/") |> + glue::glue("E:/workdata/{id}/") |> fs::path() } diff --git a/R/read.R b/R/read.R index e2604e68..d5ded8ed 100644 --- a/R/read.R +++ b/R/read.R @@ -3,7 +3,7 @@ #' This function uses the options `fastreg.project_rawdata_dir` and #' `fastreg.project_workdata_dir` when set in [options()] or will try to guess #' the path by using the project ID and the base directories -#' `E://rawdata/` and `E://workdata/`. It only reads +#' `E:/rawdata//` and `E:/workdata//`. It only reads #' Parquet datasets (those that are partitioned with the pattern `year=`). If #' this function doesn't work, use [read_parquet_dataset()] or #' [read_parquet_file()] instead. diff --git a/man/read_register.Rd b/man/read_register.Rd index 35756239..c96c91e3 100644 --- a/man/read_register.Rd +++ b/man/read_register.Rd @@ -17,7 +17,7 @@ A DuckDB table. This function uses the options \code{fastreg.project_rawdata_dir} and \code{fastreg.project_workdata_dir} when set in \code{\link[=options]{options()}} or will try to guess the path by using the project ID and the base directories -\verb{E://rawdata/} and \verb{E://workdata/}. It only reads +\verb{E:/rawdata//} and \verb{E:/workdata//}. It only reads Parquet datasets (those that are partitioned with the pattern \verb{year=}). If this function doesn't work, use \code{\link[=read_parquet_dataset]{read_parquet_dataset()}} or \code{\link[=read_parquet_file]{read_parquet_file()}} instead.