Skip to content

Commit 692f9b0

Browse files
committed
Upgrade to v0.9
1 parent 681ca6a commit 692f9b0

File tree

6 files changed

+44
-8
lines changed

6 files changed

+44
-8
lines changed

DESCRIPTION

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
Package: datacheck
22
Title: Check Data For Potential Privacy Violations
33
Version: 0.0.0.9000
4-
Authors@R:
5-
person("Chris", "Hartgerink", , "chris@libscie.org", role = c("aut", "cre"),
6-
comment = c(ORCID = "0000-0003-1050-6809")),
7-
person("Richard", "Klein", , "raklein22@gmail.com", role = c("aut", "cre"),
8-
comment = c(ORCID = "0000-0002-8713-1972"))
4+
Authors@R: c(
5+
person("Chris", "Hartgerink", ,"chris@libscie.org", role = c("aut", "cre"), comment = c(ORCID = "0000-0003-1050-6809")),
6+
person("Richard", "Klein", ,"raklein22@gmail.com", role = c("aut"), comment = c(ORCID = "0000-0002-8713-1972"))
7+
)
98
Description: The datacheck package scans datasets for potential privacy violations according to data protection laws (e.g., GDPR, HIPAA). This is a tool to help screen datasets that researchers may want to openly share online. It can also be used as a research tool to scan datasets for potential privacy violations. The data is not sent to any remote server for this screening, it happens 100% with the package and on the person's device.
109
License: MIT + file LICENSE
1110
Suggests:
@@ -18,4 +17,5 @@ RoxygenNote: 7.2.1
1817
Imports:
1918
readxl,
2019
stringr,
21-
tools
20+
tools,
21+
utils

NAMESPACE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ export(checker)
44
export(datacheck)
55
export(datacheckFile)
66
export(datacheckFolder)
7+
importFrom(utils,read.csv)
8+
importFrom(utils,read.csv2)

R/checker.R

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,12 @@ datacheckFile <- function(path) {
8888
datacheckFolder <- function(path) {
8989
matchedFiles <- list.files(path, pattern = "*.csv|*.xlsx", recursive = TRUE)
9090
for (i in 1:length(matchedFiles)) {
91-
iterPath <- sprintf('%s%s', path, matchedFiles[i])
91+
iterPath <- sprintf('%s%s', ifelse(
92+
endsWith(x = path, '/'),
93+
path,
94+
paste0(path, '/')
95+
),
96+
matchedFiles[i])
9297
if (i == 1) {
9398
res <- datacheckFile(iterPath)
9499
} else {

R/datacheck-package.R

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#' @keywords internal
2+
#' @aliases datacheck-package
3+
"_PACKAGE"
4+
5+
## usethis namespace: start
6+
#' @importFrom utils read.csv
7+
#' @importFrom utils read.csv2
8+
## usethis namespace: end
9+
NULL

R/dictionary.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ latitudeLongitude <- function () {
2828
}
2929

3030
gender <- function () {
31-
return("^(transgender|two-spirit|non[-\\s]?binary|cisgender|gender[-\\s]?fluid|trans)$")
31+
return("^(transgender|two-spirit|non[-\\s]?binary|cisgender|gender[-\\s]?fluid|trans.*)$")
3232
}
3333

3434
ssn <- function () {

man/datacheck-package.Rd

Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)