Thanks, It would be great to get instructions on how I can compile R, so that those header files are visible and can be used when compiling via R CMD SHLIB, best regards Sebastian Fischer Am Di., 24. Mai 2022 um 15:50 Uhr schrieb Dirk Eddelbuettel <edd at debian.org>:> > On 24 May 2022 at 15:23, Martin Maechler wrote: > | Well, if you want to explore how R is written ... and that's the > | only good reason for looking into such private header files ... > | then get the sources of R and explore... > | > | The official sources (and even daily snapshots from both > | "R-patched" and "R-devel") are available e.g. from > | > | https://cran.r-project.org/sources.html > > And for those who prefer the GitHub interface (including reasonably > powerful > searches, now even via two APIs, as well as editor support) there are the > mirrors of the svn repo at GitHub of which > > https://github.com/r-devel/r-svn > > is the more recent variant with extra polish to better map original commits > to a nicely browseable git commit history. It also has all the branches. > > I still keep an svn checkout for local builds of r-devel as I have since > 'forever' but find the github access extremely valuable for browsing. > > So a cheers for Jeroen for taking care of this. > > Dirk > > -- > dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org >[[alternative HTML version deleted]]
On 24 May 2022 at 16:59, Sebastian Fischer wrote: | Thanks, It would be great to get instructions on how I can compile R, so | that those header files are visible and can be used when compiling | via R CMD SHLIB, You are in luck because R Core anticipated your question and shipped your version of R with a manual on 'Installation and Administration' of R. You can also browse it at different spot on the internet, my favourite currently is https://rstudio.github.io/r-manuals/r-admin/ But note what Martin said: you are looking at _internal_ headers meaning they should _not_ be used in an R package. For test purposes and study you can work around this and set the -I directory to tell the compiler. Dirk -- dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
Le 24/05/2022 ? 16:59, Sebastian Fischer a ?crit?:> Thanks, It would be great to get instructions on how I can compile R, so > that those header files are visible and can be used when compiling"R Installation and Administration" can help https://cran.r-project.org/doc/manuals/r-release/R-admin.html> via R CMD SHLIB,If you search to compile R itself, it will be with "make ". "R CMD SHLIB" is rather for your own source files. Best, Serguei.> > best regards > > Sebastian Fischer > > Am Di., 24. Mai 2022 um 15:50 Uhr schrieb Dirk Eddelbuettel <edd at debian.org >> : >> On 24 May 2022 at 15:23, Martin Maechler wrote: >> | Well, if you want to explore how R is written ... and that's the >> | only good reason for looking into such private header files ... >> | then get the sources of R and explore... >> | >> | The official sources (and even daily snapshots from both >> | "R-patched" and "R-devel") are available e.g. from >> | >> | https://cran.r-project.org/sources.html >> >> And for those who prefer the GitHub interface (including reasonably >> powerful >> searches, now even via two APIs, as well as editor support) there are the >> mirrors of the svn repo at GitHub of which >> >> https://github.com/r-devel/r-svn >> >> is the more recent variant with extra polish to better map original commits >> to a nicely browseable git commit history. It also has all the branches. >> >> I still keep an svn checkout for local builds of r-devel as I have since >> 'forever' but find the github access extremely valuable for browsing. >> >> So a cheers for Jeroen for taking care of this. >> >> Dirk >> >> -- >> dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org >> > [[alternative HTML version deleted]] > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel