Skip to content

Commit

Permalink
Merge pull request #188 from PatrickRWright/v_1_0_0
Browse files Browse the repository at this point in the history
v 1.0.0
  • Loading branch information
aghaynes authored Apr 3, 2020
2 parents 6f37d89 + cde86dd commit 1b4a628
Show file tree
Hide file tree
Showing 53 changed files with 1,721 additions and 1,294 deletions.
28 changes: 12 additions & 16 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,29 +1,25 @@
Package: secuTrialR
Type: Package
Title: Handling of data from the clinical data management system secuTrial
Version: 0.9.1
Author:
c(person(given = "Pascal",
family = "Benkert",
Title: Handling of Data from the Clinical Data Management System secuTrial
Version: 1.0.0
Authors@R:
c(person(given = "Patrick R.",
family = "Wright",
role = c("cre", "aut"),
email = "pascal.benkert@usb.ch"),
person(given = "Alan",
email = "patrick.wright@usb.ch"),
person(given = "Alan G.",
family = "Haynes",
role = c("aut"),
email = "alan.haynes@ctu.unibe.ch"),
person(given = "Milica",
family = "Markovic",
role = c("aut"),
email = "milica.markovic@usb.ch"),
person(given = "Constantin",
family = "Sluka",
role = c("aut"),
email = "constantin.sluka@usb.ch"),
person(given = "Patrick R.",
family = "Wright",
person(given = "Pascal",
family = "Benkert",
role = c("aut"),
email = "patrick.wright@usb.ch"))
Maintainer: Patrick R. Wright <patrick.wright@usb.ch>, Alan Haynes <alan.haynes@ctu.unibe.ch>, Milica Markovic <milica.markovic@usb.ch>
email = "pascal.benkert@usb.ch"))
Maintainer: Patrick R. Wright <patrick.wright@usb.ch>
Description: This R package is intended to standardize and simplify working with data
exported from the clinical data management system (CDMS) secuTrial. The primary
data export the package works with is a standard non-rectangular export.
Expand All @@ -46,7 +42,7 @@ Imports:
License: MIT + file LICENSE
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.0.2
RoxygenNote: 7.1.0
Suggests:
knitr,
lintr,
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# secuTrialR 1.0.0
* clarify correct options in `read_secuTrial()` failure message (#187)
* check for `project_setup` in `visit_structure()` (#181)

# secuTrialR 0.9.1
* added "Form meta data: Structure" export option information to `export_options` (#182)
* added error handling for missing structure data when running `annual_recruitment()` and `return_random_participants()` (#182)
Expand Down
1 change: 0 additions & 1 deletion R/read_export_options.R
Original file line number Diff line number Diff line change
Expand Up @@ -317,5 +317,4 @@ print.secuTrialoptions <- function(x, ...) {
exportname = unlist(x$meta_names),
available = unlist(x$meta_available))
print(df, row.names = FALSE)

}
2 changes: 1 addition & 1 deletion R/read_secuTrial.R
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ read_secuTrial <- function(data_dir,
check_export_options(d)
},
error = function(e) {
message("Input to read_secuTrial() appears to be incompatible. Is it rectangular? Have you exported CSV format?")
message("Input to read_secuTrial() appears to be incompatible. It should be in CSV format and not be rectangular.")
}
)
# label
Expand Down
2 changes: 1 addition & 1 deletion R/return_hidden_items.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
return_hidden_items <- function(x) {
if (class(x) == "secuTrialdata") {

if(! x$export_options$hidden_fields) {
if (! x$export_options$hidden_fields) {
stop("Form data of hidden fields was not exported and will thus not be in this export.")
}

Expand Down
1 change: 1 addition & 0 deletions R/visit_structure.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#' plot(vs)
visit_structure <- function(x, sorted = TRUE) {
if (class(x)[1] != "secuTrialdata") stop("'secuTrialdata object required'")
if (! x$export_options$proj_setup) stop("Project setup data needs to be in the export but is not.")
vp <- x[[x$export_options$meta_names$visitplan]]
if (any(is.na(vp$mnpvisid))) stop(paste("Visits do not appear to be a part of this database or",
"only flexible visits defined\nvisit_structure requires",
Expand Down
18 changes: 16 additions & 2 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
<!-- README.md is generated from README.Rmd. Please edit that file -->


# secuTrialR ![travis](https://api.travis-ci.com/SwissClinicalTrialOrganisation/secuTrialR.svg?branch=master) [![codecov](https://codecov.io/github/SwissClinicalTrialOrganisation/secuTrialR/branch/master/graphs/badge.svg)](https://codecov.io/github/SwissClinicalTrialOrganisation/secuTrialR) `r badger::badge_custom("dev version", installed.packages()["secuTrialR", "Version"], "blue", "https://github.com/SwissClinicalTrialOrganisation/secuTrialR")` [![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/SwissClinicalTrialOrganisation/secuTrialR?branch=master&svg=true)](https://ci.appveyor.com/project/SwissClinicalTrialOrganisation/secuTrialR)

# secuTrialR `r badger::badge_custom("version", installed.packages()["secuTrialR", "Version"], "blue", "https://github.com/SwissClinicalTrialOrganisation/secuTrialR")` [![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/SwissClinicalTrialOrganisation/secuTrialR?branch=master&svg=true)](https://ci.appveyor.com/project/SwissClinicalTrialOrganisation/secuTrialR) [![travis](https://api.travis-ci.com/SwissClinicalTrialOrganisation/secuTrialR.svg?branch=master)](https://travis-ci.com/github/SwissClinicalTrialOrganisation/secuTrialR) [![codecov](https://codecov.io/github/SwissClinicalTrialOrganisation/secuTrialR/branch/master/graphs/badge.svg)](https://codecov.io/github/SwissClinicalTrialOrganisation/secuTrialR)

An R package to handle data from the clinical data management system (CDMS) [secuTrial](https://www.secutrial.com/en/).

## Installing from github with devtools

Please note that `R versions >= 3.5` should be used to run `secuTrialR`.

```{r, eval = FALSE}
devtools::install_github("SwissClinicalTrialOrganisation/secuTrialR")
```
Expand All @@ -31,6 +32,11 @@ Thus, we suggest to work with exports which:
You can use the `check_export_options()` function on a secuTrialdata object to identify where your export may differ.

## Basic usage

An extensive applied manual/vignette is available
[here](vignettes/secuTrialR-package-vignette.pdf)
and probably the best place to get started.

Load the package
```{r, echo = TRUE, warning=FALSE, message=FALSE}
library(secuTrialR)
Expand Down Expand Up @@ -329,6 +335,14 @@ R CMD build secuTrialR
R CMD check secuTrialR_0.9.0.tar.gz
```

### Versioning and releases
The version number is made up of three digits. The first digit
is reserved for major releases which may break backwards compatibility.
The second and third digits are used for medium and minor changes respectively.
Versions released on CRAN will be tagged and saved as releases on GitHub.
The version released on CRAN is regarded as the stable version while
the master branch on GitHub is regarded as the current development version.

### Guidelines for contributors

Requests for new features and bug fixes should first be documented as an [Issue](https://github.com/SwissClinicalTrialOrganisation/secuTrialR/issues) on GitHub.
Expand Down
18 changes: 16 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@
<!-- README.md is generated from README.Rmd. Please edit that file -->


# secuTrialR ![travis](https://api.travis-ci.com/SwissClinicalTrialOrganisation/secuTrialR.svg?branch=master) [![codecov](https://codecov.io/github/SwissClinicalTrialOrganisation/secuTrialR/branch/master/graphs/badge.svg)](https://codecov.io/github/SwissClinicalTrialOrganisation/secuTrialR) [![](https://img.shields.io/badge/dev%20version-0.9.1-blue.svg)](https://github.com/SwissClinicalTrialOrganisation/secuTrialR) [![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/SwissClinicalTrialOrganisation/secuTrialR?branch=master&svg=true)](https://ci.appveyor.com/project/SwissClinicalTrialOrganisation/secuTrialR)

# secuTrialR [![](https://img.shields.io/badge/version-1.0.0-blue.svg)](https://github.com/SwissClinicalTrialOrganisation/secuTrialR) [![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/SwissClinicalTrialOrganisation/secuTrialR?branch=master&svg=true)](https://ci.appveyor.com/project/SwissClinicalTrialOrganisation/secuTrialR) [![travis](https://api.travis-ci.com/SwissClinicalTrialOrganisation/secuTrialR.svg?branch=master)](https://travis-ci.com/github/SwissClinicalTrialOrganisation/secuTrialR) [![codecov](https://codecov.io/github/SwissClinicalTrialOrganisation/secuTrialR/branch/master/graphs/badge.svg)](https://codecov.io/github/SwissClinicalTrialOrganisation/secuTrialR)

An R package to handle data from the clinical data management system (CDMS) [secuTrial](https://www.secutrial.com/en/).

## Installing from github with devtools

Please note that `R versions >= 3.5` should be used to run `secuTrialR`.


```r
devtools::install_github("SwissClinicalTrialOrganisation/secuTrialR")
Expand All @@ -32,6 +33,11 @@ Thus, we suggest to work with exports which:
You can use the `check_export_options()` function on a secuTrialdata object to identify where your export may differ.

## Basic usage

An extensive applied manual/vignette is available
[here](vignettes/secuTrialR-package-vignette.pdf)
and probably the best place to get started.

Load the package

```r
Expand Down Expand Up @@ -573,6 +579,14 @@ R CMD build secuTrialR
R CMD check secuTrialR_0.9.0.tar.gz
```

### Versioning and releases
The version number is made up of three digits. The first digit
is reserved for major releases which may break backwards compatibility.
The second and third digits are used for medium and minor changes respectively.
Versions released on CRAN will be tagged and saved as releases on GitHub.
The version released on CRAN is regarded as the stable version while
the master branch on GitHub is regarded as the current development version.

### Guidelines for contributors

Requests for new features and bug fixes should first be documented as an [Issue](https://github.com/SwissClinicalTrialOrganisation/secuTrialR/issues) on GitHub.
Expand Down
2 changes: 0 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ environment:
MINICONDA: C:\Miniconda3-x64
R_ARCH: x64
matrix:
- R_VERSION: devel

- R_VERSION: release

- R_VERSION: oldrel
Expand Down
34 changes: 22 additions & 12 deletions docs/404.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 22 additions & 12 deletions docs/LICENSE-text.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 1b4a628

Please sign in to comment.