[R-pkg-devel] Searching examples in source code
Iñaki Ucar
|uc@r @end|ng |rom |edor@project@org
Sun May 8 17:55:32 CEST 2022
On Sat, 7 May 2022 at 23:25, Ben Engbers <Ben.Engbers using be-logical.nl> wrote:
>
> Hi,
>
> My package (RBaseX) is written entirely in R. The performance is not bad
> but to further improve the performance I want to investigate to what
> extent use of C++ makes sense. Problem is that I have little experience
> with C++ and none with Rcpp. So I am looking for examples.
The Rcpp Gallery is a good place to start: https://gallery.rcpp.org/
> On my (linux) system I installed several packages that needed to be
> compiled. So it is likely that I already have examples on my system.
>
> My first question is if there is a useful linux command to search all
> the source code of installed packages on my system.
Not sure what you mean here. The source code is not copied along with
your installed packages.
> The second question is if there is a command to search all packages at
> https://cran.r-project.org/web/packages/available_packages_by_name.html?
>
> This question is not only relevant to C++ examples. It would also be
> nice if you could search for occurrences of commands in R code.
There's a read-only mirror of CRAN on GitHub
(https://github.com/cran). Going there and using the search form
(i.e., specifying "org:cran <your_search_here>") is probably the best
bet to find what you're looking for.
Iñaki
>
> Ben
>
> ______________________________________________
> R-package-devel using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel
--
Iñaki Úcar
More information about the R-package-devel
mailing list