[R] source code of a function
Marc Schwartz
marc_schwartz at me.com
Fri Jul 8 13:34:36 CEST 2016
> On Jul 8, 2016, at 6:16 AM, T.Riedle <tr206 at kent.ac.uk> wrote:
>
> Dear all,
>
>
> I am currently working with the "jvnVaR" package and I need to explain the assumptions behind the function jVaR().
>
>
> Is there a function in R which calls the code behind a function?
>
>
> Kindest regards
Hi,
If you type the name of the function at the R prompt without the parens:
> jVaR
That will give you a representation of the source code for the function, save any compiled code (e.g. C, FORTRAN, C++) that may be part of the function call.
However, the true source code is available via the package source tarball (.tar.gz file) on CRAN:
https://cran.r-project.org/web/packages/jvnVaR/index.html
The tarball will include any comments/annotations in the code and the source for any compiled code that may be a part of the package.
Regards,
Marc Schwartz
More information about the R-help
mailing list