-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'r_replication_k' into r_replication
- Loading branch information
Showing
16 changed files
with
364 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
^.*\.Rproj$ | ||
^\.Rproj\.user$ | ||
^\.travis\.yml$ | ||
^codecov\.yml$ | ||
^CRAN-RELEASE$ | ||
^cran-comments\.md$ | ||
^\.github$ | ||
^doc$ | ||
^Meta$ | ||
^windows\\i386\* | ||
^i386\.*$ | ||
.lintr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ name: "Unit tests: Ubuntu" | |
on: | ||
push: | ||
branches: | ||
- main | ||
- '**' | ||
pull_request: | ||
branches: | ||
- '**' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,13 +3,12 @@ name: "Unit tests: Windows" | |
on: | ||
push: | ||
branches: | ||
- main | ||
- '**' | ||
pull_request: | ||
branches: | ||
- '**' | ||
|
||
jobs: | ||
|
||
test: | ||
name: tests on Windows with R ${{ matrix.R }} | ||
runs-on: windows-latest | ||
|
@@ -19,6 +18,13 @@ jobs: | |
R: [ '4.1.0' ] | ||
|
||
steps: | ||
- name: Check Windows architecture | ||
run: | | ||
if (-not [Environment]::Is64BitOperatingSystem) { throw "Not 64-bit Windows" } | ||
Write-Host "OS Architecture: $([Environment]::Is64BitOperatingSystem)" | ||
Write-Host "Process Architecture: $([Environment]::Is64BitProcess)" | ||
systeminfo | findstr /B /C:"OS Name" /C:"OS Version" /C:"System Type" | ||
shell: pwsh | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
@@ -28,22 +34,31 @@ jobs: | |
with: | ||
r-version: ${{ matrix.R }} | ||
Ncpus: 2 | ||
|
||
r-arch: 'x64' | ||
|
||
- name: Verify R architecture | ||
run: | | ||
Rscript -e "if(R.version$arch != 'x64') stop('R architecture is not 64-bit!')" | ||
Rscript -e "cat('R Architecture:', R.version$arch, '\n')" | ||
Rscript -e "cat('.Machine$sizeof.pointer:', .Machine$sizeof.pointer, '\n')" | ||
Rscript -e "cat('Using R at:', R.home(), '\n')" | ||
shell: cmd | ||
|
||
- 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 installed packages | ||
- name: Cache R packages | ||
uses: actions/[email protected] | ||
id: cache | ||
with: | ||
path: | | ||
${{ env.R_LIBS_USER }} | ||
key: ${{ runner.os }}-R${{ matrix.R }}-2-${{ hashFiles('.github/depends.Rds') }} | ||
restore-keys: ${{ runner.os }}-R${{ matrix.R }}-2- | ||
|
||
- name: Install packages | ||
run: | | ||
install.packages(c("devtools")) | ||
|
@@ -56,10 +71,10 @@ jobs: | |
_R_CHECK_CRAN_INCOMING_REMOTE_: false | ||
run: | | ||
options(crayon.enabled = TRUE) | ||
rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran"), error_on = "error", check_dir = "check") | ||
rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran" ,'--no-multiarch'), error_on = "error", check_dir = "check") | ||
shell: Rscript {0} | ||
|
||
- name: Show testthat output | ||
if: always() | ||
run: find check -name 'testthat.Rout*' -exec cat '{}' \; || true | ||
shell: bash | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ Type: Package | |
Title: R-Wrapper of Epiabm | ||
Version: 0.0.2 | ||
Authors@R: c( | ||
person('Anita', 'Applegarth', role = c('aut', 'cre', 'cph'), email = 'anita.applegarth@reub.ox.ac.uk'), | ||
person('Anita', 'Applegarth', role = c('aut', 'cre', 'cph'), email = 'anita.applegarth@reuben.ox.ac.uk'), | ||
person('Kingsley', 'Oguma', role = 'aut', email = "[email protected]") | ||
) | ||
Description: Wraps the epiabm Python module in R. | ||
|
@@ -12,20 +12,23 @@ Encoding: UTF-8 | |
Archs: x64 | ||
SystemRequirements: Python (>= 2.7.0) | ||
Suggests: tinytest | ||
Imports: ggplot2, here | ||
Depends: | ||
reticulate (>= 1.14), | ||
R (>= 3.3.0) | ||
Imports: | ||
ggplot2, | ||
here, | ||
tidyr, | ||
reticulate (>= 1.14) | ||
Depends: R (>= 3.3.0) | ||
Config/reticulate: | ||
list( | ||
packages = list( | ||
list(package = "numpy", pip = TRUE), | ||
list(package = "pandas", pip = TRUE), | ||
list(package = "pandas", pip = TRUE), | ||
list(package = "matplotlib", pip = TRUE), | ||
list( | ||
package = "pyEpiabm", | ||
pip = TRUE, | ||
pip_options = "--index-url git+https://github.com/SABS-R3-Epidemiology/epiabm.git@main#egg=pyEpiabm&subdirectory=pyEpiabm" | ||
pip_options = "--extra-index-url https://github.com/SABS-R3-Epidemiology/epiabm.git@main#egg=pyEpiabm&subdirectory=pyEpiabm" | ||
) | ||
) | ||
) | ||
RoxygenNote: 7.3.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
import(reticulate) | ||
# Generated by roxygen2: do not edit by hand | ||
|
||
export(check_python_env) | ||
export(initialize_python_env) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.