| Title: | Index of openwashdata R Data Packages |
|---|---|
| Description: | Index metapackage for the openwashdata R data packages. Ships a harvested catalog of every package in the openwashdata GitHub organisation, with its datasets and variables, as internal data behind accessor and search functions, and installs any listed package from the openwashdata R-universe. The catalog is refreshed by a weekly harvest. |
| Authors: | Lars Schöbitz [aut, cre] (ORCID: <https://orcid.org/0000-0003-2196-5015>), Global Health Engineering, ETH Zurich [cph] |
| Maintainer: | Lars Schöbitz <[email protected]> |
| License: | CC BY 4.0 |
| Version: | 0.1.0 |
| Built: | 2026-10-09 10:27:24 UTC |
| Source: | https://github.com/openwashdata/owdata |
Dataset detail is harvested for published packages only; an
unpublished package appears in owd_packages() but not here.
owd_datasets(pkg = NULL)owd_datasets(pkg = NULL)
pkg |
Optional character vector of package names to keep. NULL (the default) returns all rows. |
A tibble with one row per dataset, with columns pkg_name,
dataset_name, title, description, n_rows, n_vars,
n_vars_dictionary, csv_url and xlsx_url.
owd_datasets() owd_datasets(pkg = "washmalawi")owd_datasets() owd_datasets(pkg = "washmalawi")
A thin wrapper around utils::install.packages() that points at
https://openwashdata.r-universe.dev (with CRAN as fallback for
dependencies).
owd_install(pkg = NULL, ...)owd_install(pkg = NULL, ...)
pkg |
Character vector of package names to install. NULL (the default) installs every published package after an interactive confirmation showing the count; in non-interactive sessions NULL is an error, so scripts must name packages explicitly. |
... |
Passed on to |
Invisibly, the character vector of package names requested.
## Not run: owd_install("washmalawi") owd_install() ## End(Not run)## Not run: owd_install("washmalawi") owd_install() ## End(Not run)
Returns the harvested package table. Every detected package is listed,
whether or not it has been published; use published to restrict the
result.
owd_packages(published = NULL)owd_packages(published = NULL)
published |
Optional logical. |
A package counts as published when its CITATION.cff carries a Zenodo
DOI. There are no version tiers, so a version number says nothing
about whether a package is published.
A tibble with one row per package and these columns:
pkg_name, title, description, version (leading v stripped),
published, reviewed (NA until the pkgreview check is wired),
maintainer, maintainer_orcid, authors, license, date,
keywords, spatial_coverage, temporal_coverage, doi,
cff_version, url_github, url_docs, n_datasets,
latest_release, default_branch, created_at, last_commit,
topics, has_dictionary, has_extdata, and the tooling
provenance columns washr_version, brand_ref,
pkgreview_standard, has_r_cmd_check, has_pkgdown_workflow
and has_jsonld.
owd_packages() owd_packages(published = TRUE)owd_packages() owd_packages(published = TRUE)
Runs a case-insensitive regular expression over package, dataset and
variable metadata, so owd_search("groundwater") answers "which
package has data about groundwater". The search runs against a
prebuilt flat index, so it is a single vectorized match regardless of
catalog size.
owd_search( query, fields = c("title", "description", "variable_name", "dataset_name") )owd_search( query, fields = c("title", "description", "variable_name", "dataset_name") )
query |
A single regular expression (case-insensitive). Plain words work as-is. |
fields |
Character vector of fields to search. Any of "title", "description", "variable_name", "dataset_name", "pkg_name". The default covers titles, descriptions, variable names and dataset names. |
A tibble of hits with columns pkg_name, match_type ("package", "dataset" or "variable"), dataset_name, field and text (the matched text). Zero rows when nothing matches.
owd_search("sanitation") owd_search("water", fields = "variable_name")owd_search("sanitation") owd_search("water", fields = "variable_name")
The cross-package variable dictionary, harvested from each package's
data-raw/dictionary.csv. Published packages only, as in
owd_datasets().
owd_variables(pkg = NULL, dataset = NULL)owd_variables(pkg = NULL, dataset = NULL)
pkg |
Optional character vector of package names to keep. |
dataset |
Optional character vector of dataset names to keep. |
A tibble with one row per documented variable, with columns
pkg_name, dataset_name, variable_name, variable_type (first
class only) and description.
owd_variables(pkg = "washmalawi") head(owd_variables())owd_variables(pkg = "washmalawi") head(owd_variables())