Skip to content

Commit

Permalink
Internal fix for CRAN check
Browse files Browse the repository at this point in the history
+ local_reproducible_output()
  • Loading branch information
DanChaltiel committed Nov 1, 2024
1 parent 6a7a3ac commit bd14b57
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 17 deletions.
6 changes: 3 additions & 3 deletions CRAN-SUBMISSION
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Version: 0.5.0
Date: 2024-10-24 07:38:40 UTC
SHA: e0d127c0b930cb25190a5e3c3ce5e511c79ece9b
Version: 0.5.1
Date: 2024-10-31 15:47:21 UTC
SHA: 1984dd4853cd3b62fc5c64da7bc0cd7ffdb9e8fd
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Package: EDCimport
Version: 0.5.0.9000
Version: 0.5.1
Title: Import Data from EDC Software
Authors@R:
c(person(given = "Dan",
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

EDCimport is a package designed to easily import data from EDC software TrialMaster. Browse code at <https://github.com/DanChaltiel/EDCimport> and read the doc at <https://danchaltiel.github.io/EDCimport/>.

# EDCimport 0.5.1

- Internal fix for CRAN check

# EDCimport 0.5.0

### New features
Expand Down
4 changes: 2 additions & 2 deletions codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"codeRepository": "https://github.com/DanChaltiel/EDCimport",
"issueTracker": "https://github.com/DanChaltiel/EDCimport/issues",
"license": "https://spdx.org/licenses/GPL-3.0",
"version": "0.5.0",
"version": "0.5.1",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down Expand Up @@ -440,7 +440,7 @@
},
"SystemRequirements": null
},
"fileSize": "676.638KB",
"fileSize": "676.727KB",
"releaseNotes": "https://github.com/DanChaltiel/EDCimport/blob/master/NEWS.md",
"readme": "https://github.com/DanChaltiel/EDCimport/blob/main/README.md",
"contIntegration": "https://github.com/DanChaltiel/EDCimport/actions/workflows/check-standard.yaml",
Expand Down
8 changes: 3 additions & 5 deletions tests/testthat/_snaps/trialmaster-simple.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
Code
w$.lookup
Output
-- Lookup table - CRF (extraction of 2022-08-25) - EDCimport v0.0.0 ------------
-- Lookup table - CRF (extraction of 2022-08-25) - EDCimport v0.0.0 ---------------------------------------------------------
dataset nrow ncol n_id rows_per_id crfname
<chr> <dbl> <dbl> <int> <dbl> <chr>
1 site 1 33 NA NA Trial Site Setup & Information
Expand Down Expand Up @@ -247,8 +247,7 @@
[1] "AFGHANISTAN" "ALAND ISLANDS" "ALBANIA"
$site$STTMZN
[1] "(GMT+00:00) Dublin, Edinburgh, Lisbon, London"
[2] "(GMT+00:00) Monrovia, Reykjavik"
[1] "(GMT+00:00) Dublin, Edinburgh, Lisbon, London" "(GMT+00:00) Monrovia, Reykjavik"
[3] "(GMT+00:00) Sao Tome"
$site$INCLSITE
Expand All @@ -257,8 +256,7 @@
$trial
$trial$TRTMZN
[1] "(GMT+00:00) Dublin, Edinburgh, Lisbon, London"
[2] "(GMT+00:00) Monrovia, Reykjavik"
[1] "(GMT+00:00) Dublin, Edinburgh, Lisbon, London" "(GMT+00:00) Monrovia, Reykjavik"
[3] "(GMT+00:00) Sao Tome"
$trial$INCLTRIA
Expand Down
16 changes: 10 additions & 6 deletions tests/testthat/helper-init.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,16 @@ if(is_testing()){
# globalCallingHandlers(NULL)
# rlang::global_entrace()

library(fs, warn.conflicts=FALSE)
library(usethis, warn.conflicts=FALSE)
library(rlang, warn.conflicts=FALSE)
library(cli, warn.conflicts=FALSE)
library(dplyr, warn.conflicts=FALSE)
library(purrr, warn.conflicts=FALSE)
shhh = function(x){
if(rlang::is_installed(x)) library(x, character.only=TRUE, warn.conflicts=FALSE)
}

shhh("fs")
shhh("usethis")
shhh("rlang")
shhh("cli")
shhh("dplyr")
shhh("purrr")
# library(tidyverse, warn.conflicts=FALSE)


Expand Down
1 change: 1 addition & 0 deletions tests/testthat/test-trialmaster-simple.R
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ edc_options(edc_lookup_overwrite_warn=FALSE)
test_that("Read a TM archive", {
clean_cache()
clean_lookup()
local_reproducible_output(width=125)

f = function(x) {
x %>%
Expand Down

0 comments on commit bd14b57

Please sign in to comment.