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 <wan...@uthscsa.edu> 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 <r-package-devel-boun...@r-project.org> On Behalf > Of Ben Bolker > Sent: Tuesday, July 21, 2020 12:54 PM > To: r-package-devel@r-project.org > 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]] > > > > ______________________________________________ > > R-package-devel@r-project.org mailing list > > https://stat.ethz.ch/mailman/listinfo/r-package-devel > > ______________________________________________ > R-package-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-package-devel > ______________________________________________ > R-package-devel@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-package-devel > [[alternative HTML version deleted]] ______________________________________________ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel