diff --git a/man/nanoarrow.Rd b/man/nanoarrow.Rd index 7af2018a2..3ecaf02a4 100644 --- a/man/nanoarrow.Rd +++ b/man/nanoarrow.Rd @@ -16,13 +16,13 @@ \alias{as_record_batch_reader.DataFrame} \title{polars to nanoarrow and arrow} \usage{ -as_nanoarrow_array_stream.DataFrame(x, ..., schema = NULL) +\method{as_nanoarrow_array_stream}{DataFrame}(x, ..., schema = NULL) -infer_nanoarrow_schema.DataFrame(x, ...) +\method{infer_nanoarrow_schema}{DataFrame}(x, ...) -as_arrow_table.DataFrame(x, ...) +\method{as_arrow_table}{DataFrame}(x, ...) -as_record_batch_reader.DataFrame(x, ..., schema = NULL) +\method{as_record_batch_reader}{DataFrame}(x, ..., schema = NULL) } \arguments{ \item{x}{a polars DataFrame} diff --git a/src/rust/src/utils/mod.rs b/src/rust/src/utils/mod.rs index ec0794f4b..9b2a02470 100644 --- a/src/rust/src/utils/mod.rs +++ b/src/rust/src/utils/mod.rs @@ -551,7 +551,7 @@ pub fn robj_to_rchoice(robj: extendr_api::Robj) -> RResult { match opt_str { // NA_CHARACTER not allowed as first element return error Ok(Some(rstr)) if rstr.is_na() => { - Err(RPolarsErr::new().notachoice("NA_character is not allowed".into())) + Err(RPolarsErr::new().notachoice("NA_character_ is not allowed".into())) } // At least one string, return first string diff --git a/tests/testthat/test-robj_to_rchoice.R b/tests/testthat/test-robj_to_rchoice.R index 5bfc4c106..e7d87b340 100644 --- a/tests/testthat/test-robj_to_rchoice.R +++ b/tests/testthat/test-robj_to_rchoice.R @@ -8,7 +8,7 @@ test_that("robj_to_rchoice", { # NA chr not allowed as first element ctx = test_robj_to_rchoice(NA_character_)$err$contexts() - expect_identical(ctx$NotAChoice, "NA_character is not allowed") + expect_identical(ctx$NotAChoice, "NA_character_ is not allowed") # empty chr vec not allowed as first element ctx = test_robj_to_rchoice(character())$err$contexts()