Skip to content

Commit

Permalink
another bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewphamilton committed Mar 11, 2024
1 parent 7de4e09 commit 0a60eb9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions R/mthd_author.R
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,10 @@ methods::setMethod("author", "VicinityLocalProcessed", function (x, crs_nbr_dbl,
vicinity_raw_r3 <- x@a_VicinityLookup@vicinity_raw_r3
ready4use::assert_single_row_tb(vicinity_raw_r3)
imports_ls <- ingest(x = vicinity_raw_r3, imports_chr = x@imports_chr,
data_type_1L_chr = vicinity_raw_r3$data_type, raw_fls_dir_1L_chr = x@raw_fls_dir_1L_chr,
data_type_1L_chr = vicinity_raw_r3$data_type_chr, raw_fls_dir_1L_chr = x@raw_fls_dir_1L_chr,
processed_fls_dir_1L_chr = x@processed_fls_dir_1L_chr,
write_1L_lgl = x@write_1L_lgl) %>% stats::setNames(x@imports_chr)
if (vicinity_raw_r3$data_type == "Geometry") {
if (vicinity_raw_r3$data_type_chr == "Geometry") {
path_to_seed_sf_1L_chr <- make_paths_to_fls_for_ingest(processed_fls_dir_1L_chr = x@processed_fls_dir_1L_chr,
name_chr = names(imports_ls)[1], data_type_chr = "Geometry")
}
Expand Down
18 changes: 9 additions & 9 deletions data-raw/s4_fns/author.R
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ author_VicinityLocalProcessed <- function(x,#import_data #write_fls_from_sp_imp_
vicinity_raw_r3 <- x@a_VicinityLookup@vicinity_raw_r3
ready4use::assert_single_row_tb(vicinity_raw_r3)
imports_ls <- ingest(x = vicinity_raw_r3,#import_data
imports_chr = x@imports_chr,
data_type_1L_chr = vicinity_raw_r3$data_type,
raw_fls_dir_1L_chr = x@raw_fls_dir_1L_chr,
processed_fls_dir_1L_chr = x@processed_fls_dir_1L_chr,
write_1L_lgl = x@write_1L_lgl) %>%
imports_chr = x@imports_chr,
data_type_1L_chr = vicinity_raw_r3$data_type_chr,#
raw_fls_dir_1L_chr = x@raw_fls_dir_1L_chr,
processed_fls_dir_1L_chr = x@processed_fls_dir_1L_chr,
write_1L_lgl = x@write_1L_lgl) %>%
stats::setNames(x@imports_chr)
if(vicinity_raw_r3$data_type == "Geometry"){
if(vicinity_raw_r3$data_type_chr == "Geometry"){ #
path_to_seed_sf_1L_chr <- make_paths_to_fls_for_ingest(processed_fls_dir_1L_chr = x@processed_fls_dir_1L_chr,
name_chr = names(imports_ls)[1],
data_type_chr = "Geometry")
name_chr = names(imports_ls)[1],
data_type_chr = "Geometry")
}else{
path_to_seed_sf_1L_chr <- x@processed_fls_dir_1L_chr #NA_character_
}
Expand All @@ -39,7 +39,7 @@ author_VicinityLocalProcessed <- function(x,#import_data #write_fls_from_sp_imp_
crs_dbl = crs_nbr_dbl,
overwrite_1L_lgl = x@overwrite_1L_lgl,
what_1L_chr = "processed"
)
)
if(return_r4_1L_lgl)
return_xx <- renewSlot(x,
"path_to_seed_sf_1L_chr",
Expand Down

0 comments on commit 0a60eb9

Please sign in to comment.