Giter Site home page Giter Site logo

arf9999 / rtweetxtras Goto Github PK

View Code? Open in Web Editor NEW
22.0 2.0 3.0 19.92 MB

Twitter analysis functions built for use with rtweet package (by mkearney)

License: Creative Commons Zero v1.0 Universal

R 100.00%
twitter rstats-package rstats-twitter rtweet twitter-analysis

rtweetxtras's Issues

cannot install

Hi,

I am getting the following error (on R Studio)

  • installing source package ‘rtweetXtras’ ...
    ** R
    ** byte-compile and prepare package for lazy loading
    Error in assign(x, get(x, envir = backports), envir = pkg) :
    cannot add bindings to a locked environment
    Error : unable to load R code in package ‘rtweetXtras’
    ERROR: lazy loading failed for package ‘rtweetXtras’

Thank you

Errror "Unknown or uninitialised column:"

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

Cannot find the scatter_ts_interactive

Hi again

I really like your package so I tried your update but it does not work for me.
When i ran this code : rtweetXtras::scatter_ts_interactive(mickey, title = "100 tweets about Mickey Mouse")
I get this issue -->Erreur : 'scatter_ts_interactive' is not an object exported from 'namespace:rtweetXtras'

When I ran this one : scatter_ts_interactive(mickey, title = "", print_immediately = TRUE), R does not find the function "scatter_ts_interactive"

Sorry about my warnings but I will show your package for my students and your beautiful data viz !

Error with follower_dot-plot

Hi, I just go this error
follower_dot_plot(rsr_followers, point_colour = "earliest_follow")

Scale for 'colour' is already present. Adding another
scale for 'colour', which will replace the existing
scale.

Error in as.Date.numeric(value) : 'origin' must be supplied

Here is the traceback

stop("'origin' must be supplied")
29.
as.Date.numeric(value)
28.
as.Date(value)
27.
[<-.Date(*tmp*, finite & x < range[1], value = NA_real_)
26.
[<-(*tmp*, finite & x < range[1], value = NA_real_)
25.
f(...)
24.
self$oob(x, range = limits)
23.
f(...)
22.
self$rescaler(x, from = range)
21.
f(..., self = self)
20.
self$rescale(self$oob(x, range = limits), limits)
19.
f(..., self = self)
18.
self$map(df[[j]])
17.
FUN(X[[i]], ...)
16.
lapply(aesthetics, function(j) self$map(df[[j]]))
15.
f(..., self = self)
14.
scale$map_df(df = df)
13.
FUN(X[[i]], ...)
12.
lapply(scales$scales, function(scale) scale$map_df(df = df))
11.
unlist(lapply(scales$scales, function(scale) scale$map_df(df = df)),
recursive = FALSE)
10.
FUN(X[[i]], ...)
9.
lapply(data, scales_map_df, scales = npscales)
8.
ggplot_build.ggplot(x)
7.
ggplot_build(x)
6.
print.ggplot(plot)
5.
print(plot)
4.
print(plot)
3.
withCallingHandlers(expr, warning = function(w) invokeRestart("muffleWarning"))
2.
suppressWarnings(print(plot))
1.
follower_dot_plot(rsr_followers, point_colour = "earliest_follow")

snscrape_search problem

Hi,
I have try to use snscrape_search() but i get the following error,

I use the following code

snscrape_search(
"BTC",
since_date = '2022-01-01',
until_date = '2022-01-02',
n = 100,
file = "temp",
token = NULL,
delete_tempfile = TRUE
)

the error is the following:

Error: 'temp1655840672.35401.txt' does not exist in current working directory ('C:/Users/bahlo/Documents')
Any help please!!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.