redivis / meta

Tracking meta issues and general development.
6 stars 1 forks source link

Repeated output of warnings in redivis-r package #242

Open gregobad opened 3 months ago

gregobad commented 3 months ago

I'm using the Redivis R package to load and work with a dataset from a Redivis project in an interactive R session. It works as expected, except that on every line of output (whether or not the line uses one of the redivis-r functions) R prepends the warning

‘num_rows’ is not a valid field or method name for reference class “Dataset”

This does not affect the operation of the script but is annoying as it makes the REPL output unreadable.

Steps to reproduce

  1. Open R session.
  2. Import dataset bang_articles:eesj:v1_2 owned by user gjmartin, using the programmatic import steps shown in the redivis web interface.
  3. Submit any other command in R.

Screenshots image

imathews commented 3 months ago

@gregobad thank for reporting this. I'm having some trouble recreating... could you confirm that this is using the latest version of redivis-r (0.7.4)? You can run packageVersion("redivis") to confirm.

gregobad commented 3 months ago

Yes, I have 0.7.4. Here is the output of sessionInfo():

sessionInfo() R version 4.4.1 (2024-06-14) Platform: x86_64-pc-linux-gnu Running under: Ubuntu 22.04.4 LTS

Matrix products: default BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.10.0 LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.10.0

locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8 LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C

time zone: America/Los_Angeles tzcode source: system (glibc)

attached base packages: [1] stats graphics grDevices utils datasets methods base

other attached packages: [1] redivis_0.7.4 glue_1.7.0 ggthemes_5.1.0 data.table_1.15.4 [5] lubridate_1.9.3 forcats_1.0.0 stringr_1.5.1 dplyr_1.1.4
[9] purrr_1.0.2 readr_2.1.5 tidyr_1.3.1 tibble_3.2.1
[13] ggplot2_3.5.1 tidyverse_2.0.0

loaded via a namespace (and not attached): [1] gtable_0.3.5 jsonlite_1.8.8 compiler_4.4.1 tidyselect_1.2.1 [5] scales_1.3.0 R6_2.5.1 generics_0.1.3 munsell_0.5.1
[9] pillar_1.9.0 tzdb_0.4.0 rlang_1.1.4 utf8_1.2.4
[13] stringi_1.8.4 timechange_0.3.0 cli_3.6.3 withr_3.0.0
[17] magrittr_2.0.3 grid_4.4.1 hms_1.1.3 lifecycle_1.0.4 [21] vctrs_0.6.5 fansi_1.0.6 colorspace_2.1-0 tools_4.4.1
[25] pkgconfig_2.0.3