knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  #out.width = "100%",
  fig.path = "man/figures/README-"
)

promedreadr

Build Status Version DOI R build status

The goal of promedreadr is to provide a simple tool for collecting information from https://pro.medicin.dk, a key reference on medicines marketed in Denmark.

Note that the package is not yet "production ready", especially it doesn't yet honour robots.txt (improvement is underway and will be up shortly.)

Just because you can doesn't mean you should

Please use this package thoughtfully as web-scraping can lead to e.g. copyright infringement. If in doubt, please contact the team behind medicin.dk.

Features

Example

library(promedreadr)

atc_codes <- c(Quetiapine = "N05AH04",
               Lithium = "N05AN01")

product_urls <- extract_product_urls(atc_codes)
all_ade_tables <- fetch_ade_tables(product_urls)
combined_ade_tables <- reconcile_ade_tables(all_ade_tables)

combined_ade_tables

Installation

promedreadr isn't yet on CRAN, but you can install it easily directly from GitHub with:

# install.packages("devtools") # if not already installed
remotes::install_github("epiben/promedreadr")

Contributing

We use the GitHub issue tracker for all bugs/issues/enhancements

License

promedreadr is licensed under the MIT licence.

Development and status

promedreadr is developed in RStudio and maturing under active development.

Acknowledgements

The package maintainer received funding from Innovation Fund Denmark (5153-00002B) and the Novo Nordisk Foundation (NNF14CC0001).



epiben/promedreadr documentation built on March 19, 2022, 2:02 p.m.