Leave one space instead of multiple spaces between #' and @export when using package roxygen2 to label a function to be exported. Otherwise the function will not appear in NAMESPACE file. I checked the file bound.R in which I see two spaces between #' and @export for all functions in the file: bound_precision(), bound_propensity(), scale_to_unit(), and scale_to_original(). For example,
#' @return A \code{numeric} vector of the same length as \code{vals}, where
#' the returned values are bounded to machine precision. This is intended to
#' avoid numerical instability issues.
#' @export
You can see those functions are not actually exported in NAMESPACE file. Please check if all function you intend to export are correctly generated in NAMESPACE file after running roxygen2::roxygenise()
@GaryBAYLOR - thanks for spotting this. I have gone through all the functions and checked for double spaces before export. All export functions should now appear in the namespace.
Leave one space instead of multiple spaces between
#'
and@export
when using packageroxygen2
to label a function to be exported. Otherwise the function will not appear in NAMESPACE file. I checked the filebound.R
in which I see two spaces between#'
and@export
for all functions in the file:bound_precision()
,bound_propensity()
,scale_to_unit()
, andscale_to_original()
. For example,You can see those functions are not actually exported in NAMESPACE file. Please check if all function you intend to export are correctly generated in NAMESPACE file after running
roxygen2::roxygenise()