Skip to content

Commit

Permalink
Add detection of withr, regenerate documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
collioud committed Sep 23, 2024
1 parent e4b0061 commit c961d26
Show file tree
Hide file tree
Showing 15 changed files with 55 additions and 20 deletions.
2 changes: 2 additions & 0 deletions man/DataFrame_class.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions man/DataFrame_to_data_frame.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions man/DataFrame_to_list.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion man/IO_read_csv.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/IO_read_parquet.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion man/IO_scan_csv.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/IO_scan_parquet.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions man/LazyFrame_class.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions man/S3_as.data.frame.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions man/S3_as.vector.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 12 additions & 2 deletions man/S3_as_nanoarrow_array_stream.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/S3_infer_nanoarrow_schema.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions man/Series_class.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions man/Series_to_r.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 11 additions & 10 deletions tests/testthat/test-csv-read.R
Original file line number Diff line number Diff line change
Expand Up @@ -199,14 +199,15 @@ test_that("cache url tempfile", {
})

test_that("scan_csv can include file path", {
temp_file_1 = withr::local_tempfile()
temp_file_2 = withr::local_tempfile()
pl$DataFrame(mtcars)$write_csv(temp_file_1)
pl$DataFrame(mtcars)$write_csv(temp_file_2)

expect_identical(
pl$scan_csv(c(temp_file_1, temp_file_2), include_file_paths = "file_paths")$collect()$unique("file_paths") |>
dim(),
c(2L, 12L)
)
skip_if_not_installed("withr")
temp_file_1 = withr::local_tempfile()
temp_file_2 = withr::local_tempfile()
pl$DataFrame(mtcars)$write_csv(temp_file_1)
pl$DataFrame(mtcars)$write_csv(temp_file_2)

expect_identical(
pl$scan_csv(c(temp_file_1, temp_file_2), include_file_paths = "file_paths")$collect()$unique("file_paths") |>
dim(),
c(2L, 12L)
)
})

0 comments on commit c961d26

Please sign in to comment.