Learn R Programming

rdwd (version 1.9.3)

readDWD.pdf: open pdf data

Description

open pdf file. This leads to less failures in the new meta=TRUE

Usage

readDWD.pdf(file, quiet = rdwdquiet(), ...)

Value

berryFunctions::openFile() output

Arguments

file

Name of file on harddrive, like e.g. monthly_kl_historical_DESCRIPTION_obsgermany_climate_monthly_kl_historical_en.pdf

quiet

Ignored. DEFAULT: FALSE through rdwdquiet()

...

Further arguments passed to berryFunctions::openFile() and from there to system2()

system in <code>selectDWD()</code>.<br>

Intended to be called via readDWD().

Author

Berry Boessenkool, berry-b@gmx.de, May 2022.

See Also

readDWD()

Examples

Run this code
if (FALSE)  # Excluded from CRAN checks, but run in localtests
link <- selectDWD(res="hourly", var="solar", per="r", meta=TRUE)
if(!any(endsWith(link,"pdf"))) stop("no pdf file here anymore") 
# hourly/sun no longer has a pdf file anymore 2023-09
link <- link[endsWith(link,"pdf")][1]
file <- dataDWD(link, read=FALSE)
readDWD(file) # opens in OS default PDF viewer

# for regular res/var combinations, use per=" " (since 1.8.29 2025-05-20)
link <- selectDWD(res="daily", var="kl", per=" ", meta=TRUE)
if(!any(endsWith(link,"pdf"))) stop("no pdf file here anymore") 

Run the code above in your browser using DataLab