Skip to content

Commit

Permalink
Add the importFrom option to resolve error with .data
Browse files Browse the repository at this point in the history
Load provided data with utils::data to avoid error with infolder definiton
  • Loading branch information
MarkusMuck committed Jul 17, 2024
1 parent 133e77b commit d5442cd
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions R/prepare_input_regions.R
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,11 @@
#'
#' @export
#'
#' @importFrom rlang .data
#'
#' @examples
#' infolder <- here::here()
#'
#' # Load a tibble with path to region files and required meta information
#' sample_sheet <- readr::read_tsv(
#' paste0(infolder, "/lists/synthetic_sample_sheet.tsv"),
#' show_col_types = FALSE
#' )
#' sample_sheet
#' utils::data(syn_sample_sheet)
#' sample_sheet <- syn_sample_sheet
#'
#' data_prepared <- prepare_input_regions(
#' data = sample_sheet,
Expand All @@ -127,6 +123,8 @@
#'
#' # Or a pre-loaded tibble with genomic regions and named columns.
#'
#'
#'
#' control <- readr::read_tsv(
#' paste0(infolder, "/lists/synthetic_data_C1.bed"),
#' show_col_types = FALSE,
Expand Down

0 comments on commit d5442cd

Please sign in to comment.