From 4e9c528cc0726b93607c4a7229f7c939b5da3a67 Mon Sep 17 00:00:00 2001 From: Pieter Huybrechts <48065851+PietrH@users.noreply.github.com> Date: Mon, 16 Dec 2024 10:28:00 +0100 Subject: [PATCH 1/2] Add call to devtools to install package before testing --- .github/workflows/testing.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/testing.yaml b/.github/workflows/testing.yaml index 838db4f..bbdaae4 100644 --- a/.github/workflows/testing.yaml +++ b/.github/workflows/testing.yaml @@ -53,5 +53,6 @@ jobs: - name: Run tests run: | + devtools::install(quick = TRUE) source("tests/test_dwc_occurrence.R") shell: Rscript {0} From d174b3154e32f7daf025f0172aa9de36fed8994d Mon Sep 17 00:00:00 2001 From: Pieter Huybrechts <48065851+PietrH@users.noreply.github.com> Date: Mon, 16 Dec 2024 10:49:18 +0100 Subject: [PATCH 2/2] load library before testing --- .github/workflows/testing.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/testing.yaml b/.github/workflows/testing.yaml index bbdaae4..01a98cd 100644 --- a/.github/workflows/testing.yaml +++ b/.github/workflows/testing.yaml @@ -54,5 +54,6 @@ jobs: - name: Run tests run: | devtools::install(quick = TRUE) + library(rato.occurrences) source("tests/test_dwc_occurrence.R") shell: Rscript {0}