Skip to content

Commit c5e7523

Browse files
author
Ciencia de Datos • GECI
committed
♻️ Refactor
1 parent 2094af1 commit c5e7523

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

R/cli.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ plot_individual_kernels <- function(options) {
109109
write_trips_summary <- function(options) {
110110
config_content <- read_config(options[["config-path"]])
111111
readr::read_csv(options[["data-path"]], show_col_types = FALSE) |>
112-
get_summary_of_trips(config_content) |>
112+
xxget_summary_of_trips(config_content) |>
113113
readr::write_csv(options[["output-path"]])
114114
}
115115

tests/testthat/test_cli.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ describe("plot map of individuals KDE", {
5555
describe("Write trips summary", {
5656
it("write_trips_cummary", {
5757
output_path <- "/workdir/tests/trips_summary.csv"
58-
options <- list("data-path" = gps_path, "config-path" = config_path, "output-path" = output_path)
58+
trips_path <- "/workdir/tests/data/trips.csv"
59+
options <- list("data-path" = trips_path, "config-path" = config_path, "output-path" = output_path)
5960
testtools::if_exist_remove(output_path)
6061
write_trips_summary(options)
6162
expect_true(testtools::exist_output_file(output_path))

0 commit comments

Comments
 (0)