Skip to content

Commit

Permalink
Merge pull request #253 from aghaynes/master
Browse files Browse the repository at this point in the history
warning regarding overwritten variable, increment version to 1.1.0
  • Loading branch information
aghaynes authored Mar 1, 2023
2 parents 8acfb6a + a3ee024 commit ec2c390
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: secuTrialR
Type: Package
Title: Handling of Data from the Clinical Data Management System 'secuTrial'
Version: 1.0.12
Version: 1.1.0
Authors@R:
c(person(given = "Alan G.",
family = "Haynes",
Expand Down Expand Up @@ -57,7 +57,7 @@ Imports:
License: MIT + file LICENSE
Encoding: UTF-8
LazyData: true
RoxygenNote: 7.1.2
RoxygenNote: 7.2.2
Suggests:
knitr,
lintr,
Expand Down
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# secuTrialR 1.1.0
* warning regarding overwritten `pat_id` variable

# secuTrialR 1.0.12
* adapt `as.data.frame.secuTrialData()` to allow named character vectors as option `data.frames` to specify custom names for data.frames (#250)

Expand Down
3 changes: 3 additions & 0 deletions R/read_export_table.R
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ read_export_table <- function(data_dir, file_name, export_options,
# adding pat_id (only possible if Add-ID was exported in ExportSearchTool)
if (add_pat_id & ("mnppid" %in% names(loaded_table))) {
if (export_options$add_id) {
if("pat_id" %in% names(loaded_table)){
warning("variable 'pat_id' replaced with the additional id")
}
loaded_table <- add_pat_id_col(table = loaded_table,
id = "pat_id",
casenodes_table = casenodes_table)
Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# secuTrialR

[![](https://img.shields.io/badge/dev%20version-1.0.12-blue.svg)](https://github.com/SwissClinicalTrialOrganisation/secuTrialR)
[![](https://img.shields.io/badge/dev%20version-1.1.0-blue.svg)](https://github.com/SwissClinicalTrialOrganisation/secuTrialR)
[![](https://www.r-pkg.org/badges/version/secuTrialR?color=green)](https://cran.r-project.org/package=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)
Expand Down Expand Up @@ -136,8 +136,7 @@ bmd_export
```

## secuTrial data imported from:
## /Users/runner/work/_temp/Library/secuTrialR/extdata/sT_exports/BMD/s_export_CSV-
## xls_BMD_short_en_utf8.zip
## /Users/runner/work/_temp/Library/secuTrialR/extdata/sT_exports/BMD/s_export_CSV-xls_BMD_short_en_utf8.zip
## table nrow ncol meta original_name
## vp 1 10 TRUE vp.xls
## vpfs 1 2 TRUE vpfs.xls
Expand Down

0 comments on commit ec2c390

Please sign in to comment.