Skip to content

Set ignore files #1

Description

@TinasheMTapera

bakepipe currently reads all R scripts:

✗ R 4.5.1> run()
+ script_tests_testthat_test_register_inputs_r dispatched
✔ script_tests_testthat_test_register_inputs_r completed [0ms, 1.04 kB]
+ script_r_utils_pipe_r dispatched
✔ script_r_utils_pipe_r completed [0ms, 363 B]
+
n_holylabs_cgolden_lab_lab_frontier_works_prospectors_prospectormahery_data_inputs_01_gold_mine_madagascar_cohort_data_zip_mahery_darwin_formatching_alluniquefoods_to_nutritional_equivalents2025feb1_xlsx
dispatched
✔ n_holylabs_cgolden_lab_lab_frontier_works_prospectors_prospectormahery_data_inputs_01_gold_mine_madagascar_cohort_data_zip_mahery_darwin_formatching_alluniquefoods_to_nutritional_equivalents2025feb1_xlsx completed [0ms, 514.71 kB]
+ script_pipeline_04_mah_hh_consumption_r dispatched
✔ script_pipeline_04_mah_hh_consumption_r completed [0ms, 20.25 kB]
+
n_holylabs_cgolden_lab_lab_frontier_works_prospectors_prospectormahery_data_inputs_01_gold_mine_madagascar_cohort_data_zip_fish_enc_17feb2025_csv
dispatched
✔ n_holylabs_cgolden_lab_lab_frontier_works_prospectors_prospectormahery_data_inputs_01_gold_mine_madagascar_cohort_data_zip_fish_enc_17feb2025_csv completed [0ms, 227.22 kB]
+
n_holylabs_cgolden_lab_lab_frontier_works_prospectors_prospectormahery_data_inputs_01_gold_mine_madagascar_cohort_data_zip_mah_hh_dietary_intake_csv
dispatched
✔ n_holylabs_cgolden_lab_lab_frontier_works_prospectors_prospectormahery_data_inputs_01_gold_mine_madagascar_cohort_data_zip_mah_hh_dietary_intake_csv completed [0ms, 84.03 MB]
+ script_pipeline_02_mah_hh_consumption_r dispatched
✔ script_pipeline_02_mah_hh_consumption_r completed [0ms, 20.25 kB]
+ script_r_prospectormahery_package_r dispatched
✔ script_r_prospectormahery_package_r completed [0ms, 93 B]
+ script_pipeline_01_mah_hh_consumption_r dispatched
✔ script_pipeline_01_mah_hh_consumption_r completed [0ms, 22.18 kB]
+ script_pipeline_03_mah_hh_consumption_r dispatched
✔ script_pipeline_03_mah_hh_consumption_r completed [0ms, 20.25 kB]
+ script_tests_testthat_r dispatched
✔ script_tests_testthat_r completed [1ms, 76 B]
+ script_sandbox_load_data_r dispatched
✔ script_sandbox_load_data_r completed [0ms, 2.06 kB]
+ script_rv_scripts_activate_r dispatched
✔ script_rv_scripts_activate_r completed [0ms, 2.39 kB]
+ script_pipeline_mah_hh_consumption_r dispatched
✔ script_pipeline_mah_hh_consumption_r completed [1ms, 20.00 kB]
+ script_rv_scripts_rvr_r dispatched
✔ script_rv_scripts_rvr_r completed [0ms, 861 B]
+
n_holylabs_cgolden_lab_lab_frontier_works_prospectors_prospectormahery_data_inputs_01_gold_mine_madagascar_cohort_data_zip_dar_hh_weekly_per_month_grams_categs_long_csv
dispatched
✔ n_holylabs_cgolden_lab_lab_frontier_works_prospectors_prospectormahery_data_inputs_01_gold_mine_madagascar_cohort_data_zip_dar_hh_weekly_per_month_grams_categs_long_csv completed [0ms, 6.92 MB]
+
n_holylabs_cgolden_lab_lab_frontier_works_prospectors_prospectormahery_data_inputs_01_gold_mine_madagascar_cohort_data_zip_mahery_metadata_xlsx
dispatched
✔ n_holylabs_cgolden_lab_lab_frontier_works_prospectors_prospectormahery_data_inputs_01_gold_mine_madagascar_cohort_data_zip_mahery_metadata_xlsx completed [1ms, 144.30 kB]
+ script_r_register_inputs_r dispatched
✔ script_r_register_inputs_r completed [0ms, 1.03 kB]
+ output_tests_testthat_test_register_inputs_r dispatched
✖ output_tests_testthat_test_register_inputs_r errored
✖ errored pipeline [2.1s, 18 completed, 0 skipped]
Error:
! Error in tar_make():
  ! ! in callr subprocess.
Caused by error in `test_that("register_inputs lists only matching files from input zip", …`:
! could not find function "test_that"
  See https://books.ropensci.org/targets/debugging.html

It should be able to ignore certain files or run from a different root other than the proj root

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions