-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5d85314
commit c6dcd5e
Showing
6 changed files
with
33 additions
and
42 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
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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#' Sanitise {audit.connect} object | ||
#' | ||
#' This function removes user-identifying data from an {audit.connect} object | ||
#' @param audit_connect_check An object from audit.connect::check() | ||
#' @export | ||
sanitise = function(audit_connect_check) { | ||
user_list = audit_connect_object_arg$users_details$user_list | ||
# Wipe any user-identifiable data: | ||
user_list$users[, "email"] = NA_character_ | ||
user_list$users[, "username"] = NA_character_ | ||
user_list$users[, "first_name"] = NA_character_ | ||
user_list$users[, "last_name"] = NA_character_ | ||
audit_connect_check$users_details$user_list = user_list | ||
# Return the santitized object | ||
audit_connect_check | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.