Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@jbousquin
Copy link
Collaborator

Resolves #151 and #152 by adding two small check functions in Utilities.R and implementing throughout. Error messages manipulated to mirror/pass tests for ConvertDepthUnits function, should be easier to standardize with these new functions rather than having a unique error string for each.

Copy link
Collaborator

@cristinamullin cristinamullin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Scanned these & they look great. I added a note to the TADA Coding Cheat Sheet for this:

  1. Utilities.R: Within each new function, add utilities if needed
    i. checkColumns: check if required columns to run function are available
    ii. checkType: check if type is a dataframe, if logical (boolean)

@jbousquin jbousquin merged commit 21a4482 into USEPA:develop Nov 1, 2022
@jbousquin jbousquin deleted the check_functions branch November 1, 2022 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Checks for cols in colnames 2x

2 participants