You can often find this kind of code on netlib.org. Just include it with the fortran code in your package.
On Tue, Jul 21, 2020 at 11:22 AM Wang, Zhu <[email protected]> wrote: > Sorry for not making myself clear: The Fortran subroutine in an R package > needs to call incomplete gamma function. > > -----Original Message----- > From: R-package-devel <[email protected]> On Behalf > Of Ben Bolker > Sent: Tuesday, July 21, 2020 12:54 PM > To: [email protected] > Subject: Re: [R-pkg-devel] incomplete gamma function Fortran subroutine > > Is there a reason not to use pgamma(), possibly adjusted by a > (de-)normalizing constant? (See detailed notes in ?pgamma) > > On 7/21/20 1:44 PM, Wang, Zhu wrote: > > Hello, > > > > In an R function within a package, I would like to call a Fortran > subroutine to compute lower gamma function. Any advice will be appreciated. > > > > Thanks! > > > > Zhu Wang > > > > [[alternative HTML version deleted]] > > > > ______________________________________________ > > [email protected] mailing list > > https://stat.ethz.ch/mailman/listinfo/r-package-devel > > ______________________________________________ > [email protected] mailing list > https://stat.ethz.ch/mailman/listinfo/r-package-devel > ______________________________________________ > [email protected] mailing list > https://stat.ethz.ch/mailman/listinfo/r-package-devel > [[alternative HTML version deleted]] ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel
