Skip to content

Instantly share code, notes, and snippets.

@KaiAragaki
Created July 20, 2022 19:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save KaiAragaki/1ebfc00359a023be4ecf9995b97c81a4 to your computer and use it in GitHub Desktop.
Save KaiAragaki/1ebfc00359a023be4ecf9995b97c81a4 to your computer and use it in GitHub Desktop.
Get number of Rosalind Users
library(rvest)
library(stringr)
read_html("https://rosalind.info/statistics/countries/") |>
html_elements(".span3") |>
html_text(trim = T) |>
stringr::str_extract("[:digit:]*$") |>
as.numeric() |>
sum()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment