Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -151,11 +151,15 @@ export(sbf_upload_flobs_to_db)
export(sbf_write_datas_to_xlsx)
import(chk)
import(readwritesqlite)
importFrom(dttr2,dtt_default_tz)
importFrom(dttr2,dtt_sys_date_time)
importFrom(dttr2,
dtt_default_tz,
dtt_sys_date_time
)
importFrom(fs,path_split)
importFrom(stats,setNames)
importFrom(tibble,as_tibble)
importFrom(tibble,tibble)
importFrom(tibble,
as_tibble,
tibble
)
importFrom(tools,file_ext)
importFrom(yesno,yesno)
4 changes: 2 additions & 2 deletions tests/testthat/test-save-load.R
Original file line number Diff line number Diff line change
Expand Up @@ -2809,14 +2809,14 @@ test_that("sbf_convert_meta converts legacy .rda to .yaml and deletes .rda", {
file.remove(yaml_file)
saveRDS(meta, file.path(sbf_get_main(), "tables", "x.rda"))

converted <- sbf_convert_meta(ask = FALSE)
suppressMessages(converted <- sbf_convert_meta(ask = FALSE))
expect_identical(converted, yaml_file)
expect_true(file.exists(yaml_file))
expect_false(file.exists(file.path(sbf_get_main(), "tables", "x.rda")))
expect_identical(yaml::read_yaml(yaml_file), meta)

# nothing left to convert
expect_identical(sbf_convert_meta(ask = FALSE), character(0))
suppressMessages(expect_identical(sbf_convert_meta(ask = FALSE), character(0)))
})

test_that("notes argument is saved to metadata", {
Expand Down
Loading