Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge dev to main for new release #77

Merged
merged 61 commits into from
May 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
6b5d801
Updates to tests
rogerssam Nov 29, 2023
0890986
Refactoring install_asreml
rogerssam Nov 29, 2023
6deedfa
Finished version comparison functions
rogerssam Nov 30, 2023
8e6233c
Updated documentation
rogerssam Nov 30, 2023
b6021af
Adding HSD Output
rogerssam Dec 1, 2023
4edf1e4
Updating asking password for macOS
Dec 1, 2023
f4755f2
Updating dependencies
rogerssam Dec 1, 2023
82a95a5
Fixed typo
rogerssam Dec 1, 2023
96add76
Updating documentation and tests
rogerssam Dec 8, 2023
1483775
Updating github actions workflow
rogerssam Feb 1, 2024
ad59fb1
Fix typo
rogerssam Feb 1, 2024
fba51a1
Starting to work on buffer plots
rogerssam Feb 1, 2024
2a1111c
Merge branch 'dev' of https://github.com/biometryhub/biometryassist i…
rogerssam Feb 1, 2024
64f4fc7
Working on buffer plots
rogerssam Feb 6, 2024
16fbb52
Some progress on buffer plots, not finished
rogerssam Feb 21, 2024
f68fafd
Handling blocks with buffers
rogerssam Feb 26, 2024
81621ff
looking into dsum variogram
snstats Feb 28, 2024
c3955cb
fixing position of files in folder
snstats Feb 28, 2024
cacb806
Creating buffers from partial data frames
rogerssam Feb 28, 2024
8e59d2a
Merge branch 'dev' of https://github.com/biometryhub/biometryassist i…
rogerssam Feb 28, 2024
1acb8f6
Updated some things
rogerssam Mar 28, 2024
3082be3
Testing mobile updates
rogerssam Apr 28, 2024
8cd45df
Updating tests
rogerssam May 21, 2024
2ad5102
Removing mockery
rogerssam May 21, 2024
234d146
Import missing function
rogerssam May 21, 2024
777001d
Import missing functions
rogerssam May 21, 2024
2ce229c
Enabling arbitrary variables for plotting designs
rogerssam May 21, 2024
d86812c
Summary plot function
rogerssam May 21, 2024
479baa0
Updating tests
rogerssam May 21, 2024
f9692e3
Adding tests for arbitrary column names in autoplot.design
rogerssam May 22, 2024
8a681c0
Removing dead code
rogerssam May 22, 2024
136b614
Adding new imported functions to NAMESPACE
rogerssam May 22, 2024
bbf5b7d
Updating tests
rogerssam May 22, 2024
dd8157f
Streamlining GHA file
rogerssam May 22, 2024
34a1785
Using RSPM
rogerssam May 22, 2024
6771ca9
Trick pak trying to install asreml
rogerssam May 22, 2024
ae87e6e
Fixing utility_functions test
rogerssam May 22, 2024
a63f427
No need to provide these as they are the default
rogerssam May 22, 2024
f14cf33
Merge branch 'dev' of https://github.com/biometryhub/biometryassist i…
rogerssam May 22, 2024
5483ab6
Adding tests for summary_graph
rogerssam May 22, 2024
45f627b
Let's just get Pandoc because asreml causes that to fail
rogerssam May 22, 2024
6703b94
Updating test coverage checks
rogerssam May 22, 2024
9d11cbd
Use checkout v4
rogerssam May 22, 2024
7d2e6d9
Ignore asreml
rogerssam May 22, 2024
dd3cd6a
Add Pandoc here too to let tests work on GHA
rogerssam May 22, 2024
1a77c2d
Adding tests for buffers
rogerssam May 22, 2024
c9c5e98
Some updates to NEWS
rogerssam May 23, 2024
ab8debe
Trying to get test coverage working
rogerssam May 23, 2024
d95089b
Bump version number
rogerssam May 28, 2024
637d08b
Updates to summary_graph
rogerssam May 30, 2024
1d954d4
Adding heatmap function
rogerssam May 30, 2024
29e934e
Updating NAMESPACE
rogerssam May 30, 2024
df3827a
Heatmap finished
rogerssam May 31, 2024
238dea0
Updating documentation and added some NSE to summary_graph
rogerssam May 31, 2024
dce85fa
Fixing up newer version checks
rogerssam May 31, 2024
abd8da6
Unloading Namespace seems to help
rogerssam May 31, 2024
136267b
Fix NEWS version
rogerssam May 31, 2024
799d7bb
CRAN submission for v1.2.0
rogerssam May 31, 2024
ebce045
Resubmission excluding excess files
rogerssam May 31, 2024
bec2ef0
Resubmission for v1.2.0
rogerssam May 31, 2024
dc9577d
Merge branch 'main' into dev
rogerssam May 31, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ todo.md
variogram_2d.R
^.*pdf$
^.*csv$
^.*xls$
^.*xlsx$
^.*docx$
check_rhub.R
cran-comments.md
Expand All @@ -25,3 +27,4 @@ sommer_vs_asreml.R
Data2020.Rdata
^CRAN-SUBMISSION$
.RDataTmp
summary_graph
92 changes: 42 additions & 50 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,71 +24,63 @@ jobs:
- {os: windows-latest, r: 'release'}
- {os: windows-latest, r: 'oldrel'}
# - {os: windows-latest, r: '4.0'}
- {os: ubuntu-22.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/jammy/latest"}
- {os: ubuntu-22.04, r: 'oldrel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/jammy/latest"}
- {os: ubuntu-22.04, r: 'release', rspm: "https://p3m.dev/cran/__linux__/jammy/latest"}
- {os: ubuntu-22.04, r: 'oldrel', rspm: "https://p3m.dev/cran/__linux__/jammy/latest"}


env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
RSPM: ${{ matrix.config.rspm }}
# RSPM: ${{ matrix.config.rspm }}
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
vsni_LICENSE: ${{ secrets.vsni_LICENSE }}
# vsni_LICENSE: ${{ secrets.vsni_LICENSE }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Create and populate .Renviron file
run: echo vsni_LICENSE="vsni_LICENSE" >> ~/.Renviron
# - name: Create and populate .Renviron file
# run: echo vsni_LICENSE="vsni_LICENSE" >> ~/.Renviron


- name: Install data.table dependencies
if: runner.os == 'Linux'
run: sudo -s apt-get install zlib1g-dev pkg-config
# - name: Install data.table dependencies
# if: runner.os == 'Linux'
# run: sudo -s apt-get install zlib1g-dev pkg-config

- uses: r-lib/actions/setup-pandoc@v2

- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}

- uses: r-lib/actions/setup-pandoc@v2

- name: Query dependencies
run: |
install.packages('remotes')
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
shell: Rscript {0}

- name: Cache R packages
if: runner.os != 'Windows'
uses: actions/cache@v3
use-public-rspm: true

# - name: Query dependencies
# run: |
# install.packages('remotes')
# saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
# shell: Rscript {0}

# - name: Cache R packages
# if: runner.os != 'Windows'
# uses: actions/cache@v3
# with:
# path: ${{ env.R_LIBS_USER }}
# key: ${{ runner.os }}-r-${{ matrix.config.r }}-1-${{ hashFiles('.github/depends.Rds') }}
# restore-keys: ${{ runner.os }}-r-${{ matrix.config.r }}-1-

# - name: Install system dependencies
# if: runner.os == 'Linux'
# env:
# RHUB_PLATFORM: linux-x86_64-ubuntu-gcc
# run: |
# Rscript -e "remotes::install_github('r-hub/sysreqs')"
# sysreqs=$(Rscript -e "cat(sysreqs::sysreq_commands('DESCRIPTION'))")
# sudo -s eval "$sysreqs"

- uses: r-lib/actions/setup-r-dependencies@v2
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-r-${{ matrix.config.r }}-1-${{ hashFiles('.github/depends.Rds') }}
restore-keys: ${{ runner.os }}-r-${{ matrix.config.r }}-1-

- name: Install system dependencies
if: runner.os == 'Linux'
env:
RHUB_PLATFORM: linux-x86_64-ubuntu-gcc
run: |
Rscript -e "remotes::install_github('r-hub/sysreqs')"
sysreqs=$(Rscript -e "cat(sysreqs::sysreq_commands('DESCRIPTION'))")
sudo -s eval "$sysreqs"

- name: Install dependencies
run: |
remotes::install_deps(dependencies = TRUE)
remotes::install_cran("rcmdcheck")
shell: Rscript {0}
extra-packages: any::rcmdcheck, asreml=?ignore-before-r=5.0.0
needs: check

- name: Check
env:
_R_CHECK_CRAN_INCOMING_: false
run: rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran"), error_on = "warning", check_dir = "check")
shell: Rscript {0}

- name: Upload check results
if: failure()
uses: actions/upload-artifact@master
uses: r-lib/actions/check-r-package@v2
with:
name: ${{ runner.os }}-r${{ matrix.config.r }}-results
path: check
upload-snapshots: true
53 changes: 23 additions & 30 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,44 +6,37 @@ name: pkgdown

jobs:
pkgdown:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
# Only restrict concurrency for non-PR jobs
concurrency:
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
env:
RSPM: https://packagemanager.rstudio.com/cran/__linux__/jammy/latest
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write

steps:
- uses: actions/checkout@v3

- uses: r-lib/actions/setup-r@v2
id: install-r
- uses: actions/checkout@v4

- uses: r-lib/actions/setup-pandoc@v2

- name: Query dependencies
run: |
install.packages('remotes')
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
shell: Rscript {0}
- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- name: Cache R packages
uses: actions/cache@v3
- uses: r-lib/actions/setup-r-dependencies@v2
with:
path: ${{ env.R_LIBS_USER }}
key: ubuntu-22.04-${{ steps.install-r.outputs.installed-r-version }}-1-${{ hashFiles('.github/r-depends.rds') }}
restore-keys: ubuntu-22.04-${{ steps.install-r.outputs.installed-r-version }}-1-

- name: Install dependencies
run: |
install.packages("remotes")
remotes::install_deps(dependencies = TRUE)
remotes::install_dev("pkgdown")
shell: Rscript {0}
extra-packages: any::pkgdown, local::.
needs: website

- name: Install package
run: R CMD INSTALL .
- name: Build site
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
shell: Rscript {0}

- name: Build and deploy pkgdown site
run: |
git config --local user.name "$GITHUB_ACTOR"
git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com"
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)'
- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/github-pages-deploy-action@v4.5.0
with:
clean: false
branch: gh-pages
folder: docs
81 changes: 42 additions & 39 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,53 +16,28 @@ name: test-coverage

jobs:
test-coverage:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
env:
RSPM: "https://packagemanager.rstudio.com/cran/__linux__/jammy/latest"
vsni_LICENSE: ${{ secrets.vsni_LICENSE }}
# RSPM: "https://packagemanager.rstudio.com/cran/__linux__/jammy/latest"
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
# vsni_LICENSE: ${{ secrets.vsni_LICENSE }}

steps:
- uses: actions/checkout@v3

- uses: r-lib/actions/setup-r@v2
- uses: actions/checkout@v4

- uses: r-lib/actions/setup-pandoc@v2

- name: Set up RSPM
run: |
echo "options(repos = c(CRAN = 'https://packagemanager.rstudio.com/all/__linux__/focal/latest'))" >> ~/.Rprofile.site
echo "options(HTTPUserAgent = sprintf('R/%s R (%s)', getRversion(), paste(getRversion(), R.version['platform'], R.version['arch'], R.version['os'])))" >> ~/.Rprofile.site
shell: bash

- name: Query dependencies
run: |
install.packages('remotes')
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
shell: Rscript {0}

- name: Get R and OS version
id: get-version
run: |
cat("##[set-output name=os-version;]", sessionInfo()$running, "\n", sep = "")
cat("##[set-output name=r-version;]", R.Version()$version.string, sep = "")
shell: Rscript {0}

- name: Cache R packages
uses: actions/cache@v3
- uses: r-lib/actions/setup-r@v2
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ steps.get-version.outputs.os-version }}-${{ steps.get-version.outputs.r-version }}-${{ inputs.cache-version }}-${{ hashFiles('.github/depends.Rds') }}
restore-keys: ${{ steps.get-version.outputs.os-version }}-${{ steps.get-version.outputs.r-version }}-${{inputs.cache-version }}-
use-public-rspm: true

- name: Install dependencies
run: |
install.packages(c("remotes"))
remotes::install_deps(dependencies = TRUE)
remotes::install_cran("covr")
shell: Rscript {0}
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::covr, any::xml2, asreml=?ignore-before-r=5.0.0
needs: coverage

- name: Create and populate .Renviron file
run: echo vsni_LICENSE="vsni_LICENSE" >> ~/.Renviron
# - name: Create and populate .Renviron file
# run: echo vsni_LICENSE="vsni_LICENSE" >> ~/.Renviron

# - name: Licence ASreml
# run: |
Expand All @@ -71,5 +46,33 @@ jobs:
# shell: Rscript {0}

- name: Test coverage
run: covr::codecov()
run: |
cov <- covr::package_coverage(
quiet = FALSE,
clean = FALSE,
install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package")
)
covr::to_cobertura(cov)
shell: Rscript {0}

- uses: codecov/codecov-action@v4
with:
fail_ci_if_error: ${{ github.event_name != 'pull_request' && true || false }}
file: ./cobertura.xml
plugin: noop
disable_search: true
token: ${{ secrets.CODECOV_TOKEN }}

- name: Show testthat output
if: always()
run: |
## --------------------------------------------------------------------
find '${{ runner.temp }}/package' -name 'testthat.Rout*' -exec cat '{}' \; || true
shell: bash

- name: Upload test results
if: failure()
uses: actions/upload-artifact@v4
with:
name: coverage-test-failures
path: ${{ runner.temp }}/package
6 changes: 3 additions & 3 deletions CRAN-SUBMISSION
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Version: 1.1.3
Date: 2023-07-19 05:07:30 UTC
SHA: 477c5510e61d94b013ee2be2c8105b428a116863
Version: 1.2.0
Date: 2024-05-31 09:46:32 UTC
SHA: ebce045fe222badd826f94e2d7cabb4475a5f32d
10 changes: 5 additions & 5 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: biometryassist
Title: Functions to Assist Design and Analysis of Agronomic Experiments
Version: 1.1.3
Version: 1.2.0
Authors@R:
c(person(given = "Sharon",
family = "Nielsen",
Expand Down Expand Up @@ -38,6 +38,7 @@ Depends:
R (>= 4.0.0)
Imports:
agricolae,
askpass,
cowplot,
curl,
emmeans,
Expand All @@ -48,13 +49,12 @@ Imports:
pracma,
rlang (>= 1.0.0),
scales,
stringi
stringi,
xml2
Suggests:
covr,
crayon,
getPass,
knitr,
mockery,
rmarkdown,
testthat,
vdiffr,
Expand All @@ -69,5 +69,5 @@ Config/testthat/edition: 3
Config/testthat/parallel: true
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.2.3
RoxygenNote: 7.3.1
VignetteBuilder: knitr
Loading
Loading