diff --git a/DESCRIPTION b/DESCRIPTION index 50bf5a7..7426ee4 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -12,7 +12,7 @@ URL: https://gesistsa.github.io/rtoot/, https://github.com/gesistsa/rtoot/ BugReports: https://github.com/gesistsa/rtoot/issues Encoding: UTF-8 Roxygen: list(markdown = TRUE) -RoxygenNote: 7.3.1 +RoxygenNote: 7.3.2 Depends: R (>= 3.6) Imports: diff --git a/R/utils.R b/R/utils.R index 54aa2d0..88350f5 100644 --- a/R/utils.R +++ b/R/utils.R @@ -24,7 +24,7 @@ print.rtoot_bearer <- function(x, ...) { #' rtoot(endpoint = "api/v1/notifications", params = list(limit = 8)) #' rtoot(endpoint = "api/v1/followed_tags") #' ## reimplement `get_timeline_public` -#' rtoot(endpoint = "api/v1/timelines/public", instance = "emacs.ch", local = TRUE, anonymous = TRUE) +#' rtoot(endpoint = "api/v1/timelines/public", instance = "mastodon.social", local = TRUE, anonymous = TRUE) #' } rtoot <- function(endpoint, ..., params = list(), token = NULL, instance = NULL, anonymous = FALSE) { diff --git a/man/rtoot.Rd b/man/rtoot.Rd index a24c69b..9527ebb 100644 --- a/man/rtoot.Rd +++ b/man/rtoot.Rd @@ -42,7 +42,7 @@ rtoot(endpoint = "api/v1/notifications", limit = 8) rtoot(endpoint = "api/v1/notifications", params = list(limit = 8)) rtoot(endpoint = "api/v1/followed_tags") ## reimplement `get_timeline_public` -rtoot(endpoint = "api/v1/timelines/public", instance = "emacs.ch", local = TRUE, anonymous = TRUE) +rtoot(endpoint = "api/v1/timelines/public", instance = "mastodon.social", local = TRUE, anonymous = TRUE) } } \references{ diff --git a/methodshub.md b/methodshub.md index 1d61f93..5d6b68a 100644 --- a/methodshub.md +++ b/methodshub.md @@ -20,6 +20,7 @@ the following URL: . ## Science Usecase(s) + Although not using this package, the data from the Mastodon API has been @@ -42,12 +43,15 @@ install.packages("rtoot") ``` + + ## Input Data + No applicable. @@ -55,6 +59,7 @@ No applicable. ## Sample Input and Output Data + As a data collection software, this tool does not have any “sample @@ -67,6 +72,7 @@ from the Mastodon API. ## How to Use + Please refer to the [“Introduction to @@ -81,39 +87,39 @@ on However, it is also possible to use some of functions with authentication. For example, it is possible to obtain the public -timeline of a Mastodon instance, e.g. emacs.ch. +timeline of a Mastodon instance, e.g. sciences.social. ``` r library(rtoot) -get_timeline_public(instance = "emacs.ch") +get_timeline_public(instance = "sciences.social") ``` # A tibble: 20 × 29 id uri created_at content visibility sensitive spoiler_text - 1 11264208… http… 2024-06-19 07:23:24 "

Wh… public FALSE "" - 2 11264208… http… 2024-06-19 07:23:19 "

L'… public FALSE "" - 3 11264208… http… 2024-06-19 07:23:05 "

Wo… public FALSE "" - 5 11264208… http… 2024-06-19 07:22:59 "

Ja… public FALSE "" - 6 11264208… http… 2024-06-19 07:22:54 "

Al… public FALSE "" - 7 11264208… http… 2024-06-19 07:04:28 "

Ru… public FALSE "" - 8 11264208… http… 2024-06-19 07:22:35 "

Re… public FALSE "" - 9 11264208… http… 2024-06-19 07:22:27 "

🎶… public FALSE "" - 10 11264208… http… 2024-06-19 07:22:23 "

Ne… public FALSE "" - 11 11264208… http… 2024-06-19 07:22:19 "

I … public FALSE "" - 12 11264207… http… 2024-06-19 07:22:11 "

Gi… public FALSE "" - 15 11264207… http… 2024-06-19 07:22:00 "

\"… public FALSE "" - 16 11264207… http… 2024-06-19 07:21:58 "

Fe… public FALSE "" - 17 11264207… http… 2024-06-19 07:21:48 "Wow i… public FALSE "" - 18 11264207… http… 2024-06-19 07:21:49 "

Sy… public FALSE "" - 19 11264207… http… 2024-06-19 07:21:29 "To… public FALSE "" + 2 11383222… http… 2025-01-15 11:51:55 "

“O… public FALSE "" + 3 11383222… http… 2025-01-15 11:51:47 "

de… public FALSE "" + 5 11383222… http… 2025-01-15 11:34:33 "

In… public FALSE "" + 6 11383222… http… 2025-01-15 11:51:20 "

On… public FALSE "" + 7 11383222… http… 2025-01-15 11:51:32 "

To… public FALSE "" + 8 11383222… http… 2025-01-15 11:51:29 "

Ge… public FALSE "" + 9 11383222… http… 2025-01-15 11:36:25 "

Ma… public FALSE "" + 10 11383222… http… 2025-01-15 06:14:00 "

Bi… public FALSE "" + 11 11383222… http… 2025-01-15 11:51:16 "

De… public FALSE "" + 12 11383222… http… 2025-01-15 11:51:20 "

Ju… public FALSE "" + 13 11383222… http… 2025-01-15 05:52:00 "

Al… public FALSE "" + 14 11383222… http… 2025-01-15 11:51:12 "

St… public FALSE "" + 15 11383222… http… 2025-01-15 11:51:13 "

Sp… public FALSE "" + 16 11383222… http… 2025-01-15 11:51:10 "

Hi… public FALSE "" + 17 11383222… http… 2025-01-15 11:51:10 "

El… public FALSE "" + 18 11383222… http… 2025-01-15 11:51:08 "

Ho… public FALSE "" + 20 11383222… http… 2025-01-15 11:51:05 "

Th… public FALSE "" # ℹ 22 more variables: reblogs_count , favourites_count , - # replies_count , url , in_reply_to_id , - # in_reply_to_account_id , language , text , + # replies_count , url , in_reply_to_id , + # in_reply_to_account_id , language , text , # application >, poll >, card >, account , # reblog >, media_attachments >, mentions >, # tags >, emojis >, favourited , reblogged , @@ -133,9 +139,12 @@ Issue Tracker: 1. Schoch, D., & Chan, C. H. (2023). Software presentation: Rtoot: Collecting and analyzing Mastodon data. Mobile Media & Communication, 11(3), 575-578. - https://doi.org/10.1177/20501579231176678 + + + + diff --git a/methodshub.qmd b/methodshub.qmd index 4149597..cdd4bf1 100644 --- a/methodshub.qmd +++ b/methodshub.qmd @@ -69,11 +69,11 @@ Please refer to the ["Introduction to rtoot"](https://gesistsa.github.io/rtoot/a In general, one should first conduct the authentication to obtain an access token. This can be done with the provided function `auth_setup()`. For more information, please refer to the documentation on [authentication](https://gesistsa.github.io/rtoot/articles/auth.html). -However, it is also possible to use some of functions with authentication. For example, it is possible to obtain the public timeline of a Mastodon instance, e.g. emacs.ch. +However, it is also possible to use some of functions with authentication. For example, it is possible to obtain the public timeline of a Mastodon instance, e.g. sciences.social. ```{r} library(rtoot) -get_timeline_public(instance = "emacs.ch") +get_timeline_public(instance = "sciences.social") ``` Other functions, e.g. `get_timeline_hashtag()`, `get_account_statuses()` require authentication. @@ -86,7 +86,7 @@ Issue Tracker: [https://github.com/gesistsa/rtoot/issues](https://github.com/ges ## Publication -1. Schoch, D., & Chan, C. H. (2023). Software presentation: Rtoot: Collecting and analyzing Mastodon data. Mobile Media & Communication, 11(3), 575-578. https://doi.org/10.1177/20501579231176678 +1. Schoch, D., & Chan, C. H. (2023). Software presentation: Rtoot: Collecting and analyzing Mastodon data. Mobile Media & Communication, 11(3), 575-578.