mkearney / rreddit

𝐫⟋ Get Reddit data
https://github.com/mkearney/rreddit
Other
50 stars 6 forks source link

Error: 'as_tbl' is not an exported object from 'namespace:tbltools' when running the example #2

Open today-is-a-good-day opened 5 years ago

today-is-a-good-day commented 5 years ago

I downloaded the package and run the following example from the readme:

library(rreddit) d <- get_r_reddit("dataisbeautiful", n = 10000)

which gives me Error: 'as_tbl' is not an exported object from 'namespace:tbltools'. Am I missing something?

Here's the output of sessionInfo():

R version 3.5.2 (2018-12-20) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 18.04.2 LTS

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

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

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

other attached packages: [1] rreddit_0.0.1 tbltools_0.1.0

loaded via a namespace (and not attached): [1] compiler_3.5.2 magrittr_1.5 tools_3.5.2 curl_3.3 yaml_2.2.0 jsonlite_1.6

b05102139 commented 5 years ago

Hey, so I had the same problem, and managed to solve this by changing the source code: trace("get_r_reddit", edit = TRUE) Change the line with "as_tbl" to "as_tbl_data" and it should run fine!