Skip to content

Commit

Permalink
Merge pull request #15 from inbo/14-bug-not-an-exported-object-from-n…
Browse files Browse the repository at this point in the history
…amespacefistools

14 bug not an exported object from namespacefistools
  • Loading branch information
SanderDevisscher authored May 3, 2024
2 parents b858670 + 7e36e50 commit 51fe63b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/nieuwe-functie-aanmaken.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ assignees: ''
- [ ] voorzie uitleg over de input parameter(s) met `#' @param name`
- [ ] voorzie uitleg over de output van de functie met `#' @returns`
- [ ] voorzie minstens 1 voorbeeld van het gebruik van de functie dmv `#' @examples`
- [ ] voorzie de export - tag dmv `#' @export` ([#14](https://github.com/inbo/fistools/issues/14))
- [ ] voer `usethis::use_package("packagename", min_version = TRUE)` uit in de console voor iedere package die je gebruikt.
- [ ] voer `roxygen2::roxygenise()` uit in de console
- [ ] voer `devtools::check()` uit in de console
Expand Down
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# Generated by roxygen2: do not edit by hand

export(check)
export(colcompare)
importFrom(magrittr,"%>%")
2 changes: 2 additions & 0 deletions R/check.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
#' @returns
#' 1 = object exists in environment
#' 0 = object doesn't exist in environment
#'
#' @export


check <- function(x){tryCatch(if(!is.logical(class(x)) && ifelse(is.function(x), stop(), 0)) 1 else 1, error=function(e) 0)}
1 change: 1 addition & 0 deletions R/colcompare.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
#' colcompare(super_sleepers, super_actives)
#' }
#'
#' @export
#' @importFrom magrittr %>%

colcompare <- function(x, y){
Expand Down

0 comments on commit 51fe63b

Please sign in to comment.