Skip to content

pmetar

Processing METAR Weather Reports

v0.7.1 · Jun 13, 2026 · GPL (>= 3)

Description

Allows to download current and historical METAR weather reports extract and parse basic parameters and present main weather information. Current reports are downloaded from Aviation Weather Center <https://aviationweather.gov/data/metar/> and historical reports from Iowa Environmental Mesonet web page of Iowa State University ASOS-AWOS-METAR <http://mesonet.agron.iastate.edu/AWOS/>.

Downloads

CRAN

496

Last 30 days

8130th

1.7K

Last 90 days

6.5K

Last year

Trend: -6.8% (30d vs prior 30d)

r2u CRAN

3

Last 30 days

29

Last 90 days

137

Last year

Trend: -70% (30d vs prior 30d)

autoCRAN

4

Last 7 days

13

Last 30 days

1

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 18, 2026
ERROR 11 OK · 0 NOTE · 0 WARNING · 2 ERROR · 0 FAILURE Jun 11, 2026
ERROR r-devel-linux-x86_64-debian-gcc

re-building of vignette outputs

Error(s) in re-building vignettes:
  ...
--- re-building ‘pmetar.Rmd’ using rmarkdown

Quitting from pmetar.Rmd:40-44 [get a METAR report with ICAO code]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_er
...[truncated]...
ng vignette 'pmetar.Rmd' failed with diagnostics:
httr2_failure: Error during request performing!
--- failed re-building ‘pmetar.Rmd’

SUMMARY: processing the following file failed:
  ‘pmetar.Rmd’

Error: Vignette re-building failed.
Execution halted
ERROR r-patched-linux-x86_64

examples

Running examples in ‘pmetar-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: metar_get
> ### Title: Get a current METAR report for an airport.
> ### Aliases: metar_get
> 
> ### ** 
...[truncated]...
from the file downloaded from
http://ourairports.com/data/airports.csv
created by David Megginson
Getting information from Aviation Weather Center aviationweather.gov/data/metar/
Error: httr2_failure: Error during request performing!
Execution halted
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 9, 2026
ERROR 11 OK · 0 NOTE · 0 WARNING · 2 ERROR · 0 FAILURE Jun 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

whether package can be installed

Installation failed.
See ‘/home/hornik/tmp/R.check/r-devel-gcc/Work/PKGS/pmetar.Rcheck/00install.out’ for details.
ERROR r-devel-windows-x86_64

examples

Running examples in 'pmetar-Ex.R' failed
The error most likely occurred in:

> ### Name: metar_get
> ### Title: Get a current METAR report for an airport.
> ### Aliases: metar_get
> 
> ### ** Examples
> 
> metar_get("EPWA")
Getting airport informaito
...[truncated]...
from the file downloaded from
http://ourairports.com/data/airports.csv
created by David Megginson
Getting information from Aviation Weather Center aviationweather.gov/data/metar/
Error: httr2_failure: Error during request performing!
Execution halted
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 29, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE May 28, 2026
ERROR r-devel-linux-x86_64-debian-gcc

re-building of vignette outputs

Error(s) in re-building vignettes:
  ...
--- re-building ‘pmetar.Rmd’ using rmarkdown

Quitting from pmetar.Rmd:40-44 [get a METAR report with ICAO code]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_er
...[truncated]...
ng vignette 'pmetar.Rmd' failed with diagnostics:
httr2_failure: Error during request performing!
--- failed re-building ‘pmetar.Rmd’

SUMMARY: processing the following file failed:
  ‘pmetar.Rmd’

Error: Vignette re-building failed.
Execution halted
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 20, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE May 15, 2026
ERROR r-release-windows-x86_64

examples

Running examples in 'pmetar-Ex.R' failed
The error most likely occurred in:

> ### Name: metar_get
> ### Title: Get a current METAR report for an airport.
> ### Aliases: metar_get
> 
> ### ** Examples
> 
> metar_get("EPWA")
Getting airport informaito
...[truncated]...
from the file downloaded from
http://ourairports.com/data/airports.csv
created by David Megginson
Getting information from Aviation Weather Center aviationweather.gov/data/metar/
Error: httr2_failure: Error during request performing!
Execution halted
OK 12 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 26, 2026
ERROR 11 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 25, 2026
ERROR r-devel-linux-x86_64-debian-gcc

examples

Running examples in ‘pmetar-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: metar_get
> ### Title: Get a current METAR report for an airport.
> ### Aliases: metar_get
> 
> ### ** 
...[truncated]...
from the file downloaded from
http://ourairports.com/data/airports.csv
created by David Megginson
Getting information from Aviation Weather Center aviationweather.gov/data/metar/
Error: httr2_failure: Error during request performing!
Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 20, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 18, 2026
ERROR r-release-windows-x86_64

examples

Running examples in 'pmetar-Ex.R' failed
The error most likely occurred in:

> ### Name: metar_get
> ### Title: Get a current METAR report for an airport.
> ### Aliases: metar_get
> 
> ### ** Examples
> 
> metar_get("EPWA")
Getting airport informaito
...[truncated]...
from the file downloaded from
http://ourairports.com/data/airports.csv
created by David Megginson
Getting information from Aviation Weather Center aviationweather.gov/data/metar/
Error: httr2_failure: Error during request performing!
Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 16, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 15, 2026
ERROR r-devel-linux-x86_64-debian-gcc

examples

Running examples in ‘pmetar-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: metar_get
> ### Title: Get a current METAR report for an airport.
> ### Aliases: metar_get
> 
> ### ** 
...[truncated]...
from the file downloaded from
http://ourairports.com/data/airports.csv
created by David Megginson
Getting information from Aviation Weather Center aviationweather.gov/data/metar/
Error: httr2_failure: Error during request performing!
Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 4, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 3, 2026
ERROR r-devel-linux-x86_64-debian-gcc

examples

Running examples in ‘pmetar-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: metar_get
> ### Title: Get a current METAR report for an airport.
> ### Aliases: metar_get
> 
> ### ** 
...[truncated]...
from the file downloaded from
http://ourairports.com/data/airports.csv
created by David Megginson
Getting information from Aviation Weather Center aviationweather.gov/data/metar/
Error: httr2_failure: Error during request performing!
Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 2, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 31, 2026
ERROR r-devel-windows-x86_64

examples

Running examples in 'pmetar-Ex.R' failed
The error most likely occurred in:

> ### Name: metar_get
> ### Title: Get a current METAR report for an airport.
> ### Aliases: metar_get
> 
> ### ** Examples
> 
> metar_get("EPWA")
Getting airport informaito
...[truncated]...
from the file downloaded from
http://ourairports.com/data/airports.csv
created by David Megginson
Getting information from Aviation Weather Center aviationweather.gov/data/metar/
Error: httr2_failure: Error during request performing!
Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

5,057

Files

83

Compiled share

0%

Has compiled src

No

Language breakdown

R 2,197 (43.4%)Tests 1,555 (30.7%)Docs 867 (17.1%)Vignettes 438 (8.7%)

API

Exported functions

22

Internal functions

0

Testing & CI

Has tests

Yes

Test-to-code ratio

0.71

testthat edition

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

95.5%

\dontrun example ratio

4.5%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

No

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

0%

Unsafe pattern score

0

Dep constraint coverage

0%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

4.1

System requirements

C++ standard

License

GPL (>= 3)

License flags

SPDX valid, OSI approved

History

Versions

12

First release

2020-09-09

Latest release

2026-06-14

Avg cadence

171 days

Cold removal rate

Dep drift

4

LOC over versions

v0.2.7.0: 3,187 LOCv0.3.0: 3,610 LOCv0.3.1: 3,595 LOCv0.3.2: 3,660 LOCv0.3.3: 3,666 LOCv0.4.0: 4,518 LOCv0.4.1: 4,727 LOCv0.5.0: 4,749 LOCv0.5.1: 4,751 LOCv0.6.0: 4,983 LOCv0.7.0: 5,006 LOCv0.7.1: 5,057 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Dependency Network

Dependencies Reverse dependencies curl dplyr httr2 lubridate magrittr RCurl tidyr stringr pmetar

Version History

13 tracked
updated 0.7.1 ← 0.7.0 diff Jun 14, 2026
new 0.7.0 Mar 10, 2026
updated 0.7.0 ← 0.6.0 diff Jan 14, 2026
updated 0.6.0 ← 0.5.1 diff Sep 14, 2025
updated 0.5.1 ← 0.5.0 diff Mar 1, 2025
updated 0.5.0 ← 0.4.1 diff Oct 24, 2023
updated 0.4.1 ← 0.4.0 diff May 6, 2023
updated 0.4.0 ← 0.3.3 diff Sep 3, 2022
updated 0.3.3 ← 0.3.2 diff Mar 7, 2022
updated 0.3.2 ← 0.3.1 diff Nov 4, 2021
updated 0.3.1 ← 0.3.0 diff Mar 3, 2021
updated 0.3.0 ← 0.2.7.0 diff Jan 12, 2021
new 0.2.7.0 Sep 8, 2020