Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
today-is-a-good-day opened this issue Feb 28, 2019 · 1 comment

Comments

@today-is-a-good-day
Copy link

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
Copy link

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants