has_docstring: has_docstring

Description Usage Arguments Value

View source: R/GenerateDocumentation.R

Description

This function has been stolen from the docsting package. It checks the function for roxygen type comments (any no order necessary)

Usage

1
has_docstring(fun, fun_name = as.character(substitute(fun)))

Arguments

fun

a function to document ( will error if no r oxygen comments in it)

fun_name

defaults to a string of the function name, otherwise defines the name the documentaion file will be named

Value

The function returns the text from r oxygen comments


karsfri/HMSr documentation built on Feb. 26, 2020, 10:36 a.m.