Silence warnings

knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>"
)

The GDPuc.warn option

You can silence all warnings thrown by convertGDP by setting the option GDPuc.warn = FALSE. This will affect all calls to convertGDP in the active R-session.

options(GDPuc.warn = FALSE)

The replace_NAs argument

One warning thrown by convertGDP comes from the addition of NAs in the return object due to missing conversion factors. If NAs are explicitly desired set replace_NAs = NA. This will silence the warning.



Try the GDPuc package in your browser

Any scripts or data that you put into this service are public.

GDPuc documentation built on Sept. 11, 2024, 6:17 p.m.