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

Errror "Unknown or uninitialised column:" #6

Open
pokemaster974 opened this issue Oct 2, 2022 · 2 comments
Open

Errror "Unknown or uninitialised column:" #6

pokemaster974 opened this issue Oct 2, 2022 · 2 comments

Comments

@pokemaster974
Copy link

pokemaster974 commented Oct 2, 2022

I got errors when I try examples listed in your readme.

I have R 4.2.1 and rtweet 1.0.2, so I need rtweetXtras from your master branch and not legacy branch.

When I check the rtweetXtras' version, I got this :

Package: rtweetXtras
Title: Extra Analysis Functions for rtweet package
Version: 0.4.1.0000

I don't know if it's the last or not (I've installed it via remotes::install_github("arf9999/rtweetXtras")

My error is "Unknown or uninitialised column:"
Here is a log of the errors :

> df <- rtweet::get_timeline("jack", n=100)
> rtweetXtras::hashtagcloud(df, n=200)
Attachement du package : ‘dplyr’
Les objets suivants sont masqués depuis ‘package:stats’:
    filter, lag
Les objets suivants sont masqués depuis ‘package:base’:
    intersect, setdiff, setequal, union
Package version: 3.2.3
Unicode version: 13.0
ICU version: 69.1
Parallel computing: 8 of 8 threads used.
See https://quanteda.io for tutorials and examples.
Error in `dplyr::filter()`:
! Problem while computing `..1 = !is.na(rtweet_timeline_df$hashtags)`.
✖ Input `..1` must be of size 100 or 1, not size 0.
Run `�]8;;rstudio:run:rlang::last_error()rlang::last_error()�]8;;` to see where the error occurred.
Message d'avis :
Unknown or uninitialised column: `hashtags`.
> df1 <- rtweet::search_tweets("rstats",lang = "en", n=2000)                                                                                                                                                                                                                                                     
> rtweetXtras::profilecloud(df1, 100)
Error in `dplyr::filter()`:
! Problem while computing `..1 = !is.na(rtweet_timeline_df$description)`.
✖ Input `..1` must be of size 1977 or 1, not size 0.
Run `�]8;;rstudio:run:rlang::last_error()rlang::last_error()�]8;;` to see where the error occurred.
Message d'avis :
Unknown or uninitialised column: `description`.
> colnames(df)
 [1] "created_at"                    "id"                            "id_str"                        "full_text"                     "truncated"                     "display_text_range"            "entities"                      "source"                        "in_reply_to_status_id"        
[10] "in_reply_to_status_id_str"     "in_reply_to_user_id"           "in_reply_to_user_id_str"       "in_reply_to_screen_name"       "geo"                           "coordinates"                   "place"                         "contributors"                  "retweeted_status"             
[19] "is_quote_status"               "retweet_count"                 "favorite_count"                "favorited"                     "retweeted"                     "lang"                          "possibly_sensitive"            "quoted_status_id"              "quoted_status_id_str"         
[28] "quoted_status_permalink"       "quoted_status"                 "text"                          "favorited_by"                  "scopes"                        "display_text_width"            "quote_count"                   "timestamp_ms"                  "reply_count"                  
[37] "filter_level"                  "metadata"                      "query"                         "withheld_scope"                "withheld_copyright"            "withheld_in_countries"         "possibly_sensitive_appealable"
> colnames(df1)
 [1] "created_at"                    "id"                            "id_str"                        "full_text"                     "truncated"                     "display_text_range"            "entities"                      "metadata"                      "source"                       
[10] "in_reply_to_status_id"         "in_reply_to_status_id_str"     "in_reply_to_user_id"           "in_reply_to_user_id_str"       "in_reply_to_screen_name"       "geo"                           "coordinates"                   "place"                         "contributors"                 
[19] "is_quote_status"               "retweet_count"                 "favorite_count"                "favorited"                     "retweeted"                     "lang"                          "possibly_sensitive"            "retweeted_status"              "quoted_status_id"             
[28] "quoted_status_id_str"          "quoted_status"                 "text"                          "favorited_by"                  "scopes"                        "display_text_width"            "quoted_status_permalink"       "quote_count"                   "timestamp_ms"                 
[37] "reply_count"                   "filter_level"                  "query"                         "withheld_scope"                "withheld_copyright"            "withheld_in_countries"         "possibly_sensitive_appealable"

Regards

@Arf9999
Copy link
Owner

Arf9999 commented Oct 2, 2022 via email

@pokemaster974
Copy link
Author

Thanks for your reply, maybe it's my fault that I've misunderstood the readme, especially this part :

NB: This branch is now in development mode for the upcoming {rtweet version 1.0}. For compatibility with rtweet 0.7, please rather use the legacy version branch. Things will break here.

I don't know if you want to close my issue, I let open but it's up to you. Regards.

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