Skip to content

Commit

Permalink
Initial pull request (#1)
Browse files Browse the repository at this point in the history
* initial commit

* initial commit

* delete file from repo

* add DPchecker.Rproj

* title to DPchecker

* initial commit

* end with newline

* update function naming scheme

* remove old function names

* add maintainer, author, fix license, imports & remotes

* add exports via roxygen

* add multiple funcitons; update others

* initial commit

* initial commit

* update function names

* minor updates

* fix license issue

* fix license issue; fix imports

* debug devools:check

* add license

* test.fileNameMatch now works with 0, 1, N files.

* fix messages: consistency, add linebreaks

* add color to load.metadata message

* add crayon to imports via use_this_package

* add test.fieldNum

* initial commit

* fix crayon in load.metadata; fix error in test.fieldNum

* Improve test result reporting: more intuitive responses; informs of specific errors when test fails.

* update test.dupMetadataEntries: replace list indexing with grepl pattern search.

* error file listing now bold & red

* test.fieldMatch now handles cases where there are 1 or more dataTables (previously only handled 2 or more)

* replace test.fileNameMatch - with correct function.

* update readme
  • Loading branch information
RobLBaker authored Sep 28, 2022
1 parent a2915e4 commit b4a91e3
Show file tree
Hide file tree
Showing 20 changed files with 843 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
^DPCchecker\.Rproj$
^\.Rproj\.user$
^DPchecker\.Rproj$
^LICENSE\.md$
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.Rproj.user
.Rhistory
.RData
.Ruserdata
20 changes: 20 additions & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Package: DPchecker
Title: Checks Data Packages for Congruence
Version: 0.0.0.9000
Author:
person("Rob", "Baker", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0001-7591-5035"))
Maintainer: rob baker <[email protected]>
Description: Allows the user (and reviewer) to check a data package and test whether it meets the congruence standards set forth by NPS for upload to DataStore as a datapackage.
License: MIT + file LICENSE
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.2.1
Suggests:
testthat (>= 3.0.0)
Config/testthat/edition: 3
Imports:
arcticdatautils (>= 0.7.0),
crayon,
EML,
readr
22 changes: 22 additions & 0 deletions DPchecker.Rproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Version: 1.0

RestoreWorkspace: No
SaveWorkspace: No
AlwaysSaveHistory: Default

EnableCodeIndexing: Yes
UseSpacesForTab: Yes
NumSpacesForTab: 2
Encoding: UTF-8

RnwWeave: Sweave
LaTeX: pdfLaTeX

AutoAppendNewline: Yes
StripTrailingWhitespace: Yes
LineEndingConversion: Posix

BuildType: Package
PackageUseDevtools: Yes
PackageInstallArgs: --no-multiarch --with-keep.source
PackageRoxygenize: rd,collate,namespace
2 changes: 2 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
YEAR: 2022
COPYRIGHT HOLDER: DPchecker authors
21 changes: 21 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# MIT License

Copyright (c) 2022 DPchecker authors

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
13 changes: 13 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Generated by roxygen2: do not edit by hand

export(load.data)
export(load.metadata)
export(test.delimiter)
export(test.dupDataFiles)
export(test.dupMetaEntries)
export(test.fieldNum)
export(test.fileNameMatch)
export(test.footer)
export(test.headerNum)
export(test.metadataVersion)
export(test.validateSchema)
Loading

0 comments on commit b4a91e3

Please sign in to comment.