Skip to content

Commit 5f6453d

Browse files
committed
Make two functions internal.
1 parent 907c791 commit 5f6453d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

R/misc.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@
55
#' @param ... Parameters passed to `stop()`
66
#'
77
#' @return Concisely stops program execution
8+
#' @internal
89
qstop <- function(...) stop(..., call. = FALSE)
910

1011
#' Require that a namespace be loaded, or stop execution
1112
#'
1213
#' @param pkg (`character(1)`) Package to be loaded
1314
#'
1415
#' @return Silently loads namespace, or stops execution if package cannot be loaded
16+
#' @internal
1517
require_namespace_or_stop <- function(pkg) {
1618
if (!requireNamespace(pkg, quietly = TRUE)){
1719
paste('Package', pkg, 'is required.') |> qstop()

0 commit comments

Comments
 (0)