R/check_rh.R

Defines functions check_rh

Documented in check_rh

#' Checks to see if you have a valid RobihHood object
#'
#' @param RH object of class RobinHood
#' @export
check_rh <- function(RH) {

    # Check if RH is the correct class
    if (methods::is(RH) != "RobinHood") stop("RH must be class RobinHood, see RobinHood()")

}

Try the RobinHood package in your browser

Any scripts or data that you put into this service are public.

RobinHood documentation built on Jan. 7, 2023, 1:11 a.m.