diff --git a/.github/workflows/r.yml b/.github/workflows/r.yml new file mode 100644 index 0000000..cd0d0bb --- /dev/null +++ b/.github/workflows/r.yml @@ -0,0 +1,40 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. +# +# See https://github.com/r-lib/actions/tree/master/examples#readme for +# additional example workflows available for the R community. + +name: R + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +permissions: + contents: read + +jobs: + build: + runs-on: macos-latest + strategy: + matrix: + r-version: ['4.1.0', '4.2.0', '4.3.0'] + + steps: + - uses: actions/checkout@v3 + - name: Set up R ${{ matrix.r-version }} + uses: r-lib/actions/setup-r@f57f1301a053485946083d7a45022b278929a78a + with: + r-version: ${{ matrix.r-version }} + - name: Install dependencies + run: | + install.packages(c("remotes", "rcmdcheck")) + remotes::install_deps(dependencies = TRUE) + shell: Rscript {0} + - name: Check + run: rcmdcheck::rcmdcheck(args = "--no-manual", error_on = "error") + shell: Rscript {0} diff --git a/LICENSE b/LICENSE index cdf8e23..25365a7 100644 --- a/LICENSE +++ b/LICENSE @@ -1,2 +1,2 @@ YEAR: 2024 -COPYRIGHT HOLDER: HexAeroR authors +COPYRIGHT HOLDER: EUROCONTROL - Aviation Intelligence Unit diff --git a/README.md b/README.md index 1a60caa..4012e2b 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ HexAeroR is a EUROCONTROL R package designed for aviation professionals and data You can install the development version of HexAeroR from [GitHub](https://github.com/) with: -``` r +```r # install.packages("devtools") devtools::install_github("euctrl-pru/HexAeroR") ``` @@ -26,7 +26,7 @@ devtools::install_github("euctrl-pru/HexAeroR") This is a basic example which shows you how to solve a common problem: -``` r +```r library(HexAeroR) ## basic example code ``` @@ -34,7 +34,7 @@ library(HexAeroR) This will prompt you to download the geospatial metadata from Zenodo necessary to run the package. It will only cache once. The parquet datasets are available here: . -``` python +```r # Load trajectory data df <- load_dataset(name = "trajectories.parquet", datatype = "test_data") @@ -50,7 +50,7 @@ list(scored_rwy_detections_df, rwy_detections_df) <- identify_runways(df) ### Visualizing Methodology -``` r +```r # Load approach hex dataset for an airport (e.g., EGLL) egll <- load_dataset(name = "EGLL.parquet", datatype = "runway_hex")