arf9999 / rtweetxtras Goto Github PK
View Code? Open in Web Editor NEWTwitter analysis functions built for use with rtweet package (by mkearney)
License: Creative Commons Zero v1.0 Universal
Twitter analysis functions built for use with rtweet package (by mkearney)
License: Creative Commons Zero v1.0 Universal
Hi,
I am getting the following error (on R Studio)
Thank you
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
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 !
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")
Hi,
I have try to use snscrape_search() but i get the following error,
snscrape_search(
"BTC",
since_date = '2022-01-01',
until_date = '2022-01-02',
n = 100,
file = "temp",
token = NULL,
delete_tempfile = TRUE
)
Error: 'temp1655840672.35401.txt' does not exist in current working directory ('C:/Users/bahlo/Documents')
Any help please!!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.