Bruno Martins
2025-Oct-13 18:31 UTC
[R] {stats} package source code - Help in finding repo
Hello, R team!
My name is Bruno and I am a Data Scientist from Portugal.
An internal package of mine is making use of stats::cov.wt(), which I
inspected source code for, but would like to know if the {stats} package
source code is available on GitHub? I've looked throughout repos, but
can't seem to find it.
I am looking to rewrite my own version in Rcpp, but would like to have
more context on the module to implement things right.
Any help here would be greatly appreciated.
Thank you!
Bruno MArtins
Jeff Newmiller
2025-Oct-14 06:52 UTC
[R] {stats} package source code - Help in finding repo
The official source of R is not on Github, but there is a read-only mirror there: https://github.com/wch/r-source/blob/trunk/src%2Flibrary%2Fstats%2FR%2Fcov.wt.R#L19 On October 13, 2025 11:31:23 AM PDT, Bruno Martins <bruno.silva.martins at hotmail.com> wrote:>Hello, R team! > >My name is Bruno and I am a Data Scientist from Portugal. > >An internal package of mine is making use of stats::cov.wt(), which I inspected source code for, but would like to know if the {stats} package source code is available on GitHub? I've looked throughout repos, but can't seem to find it. > >I am looking to rewrite my own version in Rcpp, but would like to have more context on the module to implement things right. > >Any help here would be greatly appreciated. > >Thank you! > >Bruno MArtins > >______________________________________________ >R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide https://www.R-project.org/posting-guide.html >and provide commented, minimal, self-contained, reproducible code.-- Sent from my phone. Please excuse my brevity.