R/hello.R

#' F(l)ake news
#'
#' Document here. Nr. 3. One more
#' I wonder how long this can be. [base::c()], [base::c], [get_fake()]. You can
#' have enumeration:
#'
#' * bullet 1.
#' * bullet 2.
#'
#' @param x this is a parameter of the funciton. I won't use it.
#' @export
#' @importFrom rlang new_environment
#' @examples
#' get_fake()
get_fake <- function(x) {
  "fake news, Nico. Sorry"
}

#' @rdname get_fake
#' @export
get_flake <- function() {
  "flake news, Nico. yup"
}

test <- function(a = g()) {
  current_date <- Sys.time()
  browser() # you will jump here inside the function. Good for debugging to use
  # browser and inspect the environment and interactively execute things, like
  # the definition of current_date
}

unexported_fun <- function() {
  # don't do anything here:
  NULL
}
lorenzwalthert/testpkg documentation built on May 29, 2019, 1:25 p.m.