Missing or unexported object: ‘polars::csv_reader’
Closed this issue · 4 comments
❯ checking dependencies in R code ... WARNING
Missing or unexported object: ‘polars::csv_reader’
$ grep -F polars::csv_reader R/*.R
R/read.R:#' `polars::csv_reader()`
R/read.R:#' should match columns. See `?polars::csv_reader` for more details.
R/read.R: .dat <- polars::csv_reader(
I think you just need to have polars
installed; doesn't show up when I R CMD check --as-cran
Hmm... do we have different polars installed? Note that polars was archived on CRAN on 2023-07-18 (https://github.com/pola-rs/r-polars). I installed it from R-Universe following instructions on https://github.com/pola-rs/r-polars#install.
I have:
> packageVersion("polars")
[1] '0.8.1.9000'
> library(polars)
> ls(match("package:polars", search()), all.names = TRUE)
[1] ".pr" "as_polars_series" "knit_print.DataFrame"
[4] "pl"
Looking at https://github.com/pola-rs/r-polars/blob/main/NAMESPACE, there's no csv_reader
object exported.
yep - I had an older r-universe installation, before they put all public functions behind the pl
environment.
polars::csv_reader()
is now polars::pl$read_csv()
Had to add attachNamespace("polars")
for polars::pl$read_csv()
to work in rtemis::read()
, don't know if there's a better way, will try later.