% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/code.R
\name{callFun}
\alias{callFun}
\title{Call an RStudio API function}
\usage{
callFun(fname, ...)
}
\arguments{
\item{fname}{name of the RStudio function to call.}

\item{...}{Other arguments passed on to the function}
}
\description{
This function will return an error if RStudio is not running, or the
function is not available. If you want to fall back to different
behavior, use \code{\link{hasFun}}.
}
\examples{
if (rstudioapi::isAvailable()) {
  rstudioapi::callFun("versionInfo")
}
}
