Skip to contents

Render complete pubmedDashboard dashboard

Usage

render_dashboard(
  file_name = "dashboard",
  title = "title",
  author = "author",
  pubmed_query_string = "",
  journal = NULL,
  year_low = 2023,
  year_high = 2023,
  month_low = "01",
  month_high = 12,
  day_low = "01",
  day_high = 31,
  data_folder = "data",
  batch_size = 5000,
  api_key = NULL,
  verbose = TRUE,
  query_pubmed = FALSE,
  tab_continent = TRUE,
  tab_continent_year = TRUE,
  tab_continent_journal = TRUE,
  tab_country = TRUE,
  tab_country_journal = TRUE,
  tab_psychology = FALSE,
  tab_economics = FALSE,
  tab_general = FALSE,
  tab_figure1 = FALSE,
  tab_missing = TRUE
)

Arguments

file_name

Desired file name.

title

Desired dashboard title.

author

Desired displayed dashboard author.

pubmed_query_string

The PubMed query string.

journal

The list of desired journals.

year_low

The year the data should start.

year_high

The year the data should end.

month_low

The year the data should start.

month_high

The year the data should end.

day_low

The year the data should start.

day_high

The year the data should end.

data_folder

Where to save the data.

batch_size

The download batch size.

api_key

The api key for faster processing (optional).

verbose

Whether to include progress messages.

query_pubmed

Whether to query pubmed. This must be set to TRUE explicitely to avoid long operations. When the data is already downloaded and available in the data folder, this step is unnecessary.

tab_continent

Whether to render the "Continent" tab.

tab_continent_year

Whether to render the "Continent by year" tab.

tab_continent_journal

Whether to render the "Continent by journal" tab.

tab_country

Whether to render the "Country" tab.

tab_country_journal

Whether to render the "Country by journal" tab.

tab_psychology

Whether to render the "Psychology" tab.

tab_economics

Whether to render the "Economics" tab.

tab_general

Whether to render the "General" tab.

tab_figure1

Whether to render the "Figure 1" tab.

tab_missing

Whether to render the "Missing" tab.

Examples

# \dontshow{
.old_wd <- setwd(tempdir())
# }
if (FALSE) {
render_dashboard(
  file_name = "my_dashboard",
  title = "Wonderful Dashboard",
  author = "Rémi Thériault",
  pubmed_query_string = "passion [Title/Abstract]",
  journal = c("Journal of Personality and Social Psychology", "Health Psychology"),
  year_low = 2023,
  year_high = 2023,
  query_pubmed = TRUE,
  tab_figure1 = TRUE
)
}
# \dontshow{
unlink("easyPubMed_data_01.txt")
setwd(.old_wd)
# }