knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
Tools for Working with R-universe and its APIs.
You can install the development version of universe from r-universe:
install.packages("universe", repos = "https://ropensci.r-universe.dev")
Or the development version of universe from GitHub with:
# install.packages("pak") pak::pak("ropensci/universe")
Documentation is available on https://docs.ropensci.org/universe.
Use runiverse::add()
to opt-in to a package repository (this will modify your options('repos')
list).
# Install a package from r-universe universe::add("ropensci") install.packages("magick")
For more details see the documentation for runiverse::add().
library(universe) universe_ls("jeroen")
universe_all_packages("jeroen", limit = 1) |> str(max.level = 2)
universe_one_package("jeroen", package = "curl") |> str(max.level = 1)
universe_search("ropensci", query = 'needs:httr2', limit = 1) |> str(max.level = 2)
global_search(query = '"weather data"', limit = 1) |> str(max.level = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.