This package accesses documents from open archives and tweets the latest scientific publications of your team (see it in action: @archeosciences).
You you can install the development version from GitHub with:
# install.packages("remotes")
remotes::install_github("crp2a/twitterbot")
library(twitterbot)
twitterbot currently supports:
get_hal_team()
(team) or get_hal_author()
(personnal).get_rss()
You can schedule a cron job with cronR or use GitHub actions to schedule tweets on a daily basis.
## Set the path of the log file
## This file ensures that no document is tweeted twice
path <- file.path(Sys.getenv("HOME"), "hal.log")
## Get documents from HAL
hal <- get_hal_team(id = "399901", limit = 100)
## Post the last ten publications
post(hal, log = path, select = 1:10)
New publication: “Multi-millennial human impacts and climate change during the Maya early Anthropocene: implications on hydro-sedimentary dynamics and socio-environmental trajectori…” #EnvironmentalStudies #Archaeology #Geography https://doi.org/10.1016/j.quascirev.2022.107458
## Set the path of the log file
## This file ensures that no document is tweeted twice
path <- file.path(Sys.getenv("HOME"), "rss.log")
## Get news items
url <- "https://www.archeosciences-bordeaux.fr/spip.php?page=backend-breves"
rss <- get_rss(feed = url)
## Post the last ten items
post(rss, log = path, select = 1:10)
En direct du labo : Séminaire Chronologies Africaines #Géochronologie #Archéologie #Afrique #JournéeDétude https://www.archeosciences-bordeaux.fr/+Seminaire-Chronologies-Africaines+
Please note that the twitterbot project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.