rcpp-api
)This repository contains the Rcpp API documentation project. The project is rooted in providing a much needed face lift to working with one of the most popular ways to augment R with C++.
Provide documentation that lists, describes, and provides an example of each known Rcpp data type and function alongside best practices. The documentation should be ready for inclusion within Rcpp 1.x.0 scheduled for release in January 2018.
The main style for this documentation will mimic the Armadillo documentation that involves first listing the different data structures before detailing class methods and overall function uses.
Each section should contain:
::create()
) A
, B = 2*A
)summed
, val_summed
)The following sample echoes the above tenets
Compute the overall summation of all elements.
Supported types are Numeric
, Integer
, or Logical
in a Vector
or Matrix
.
Examples:
// Sample data
NumericVector X = NumericVector::create(3.2, 8.1, 9.5, 8.6, 5.7);
double val_sum = sum(X);
// Output: 35.1
Functions that share common features such as the trigonometric and probability
distribution functions should be grouped together under a common banner to
decrease repeative entries. The name of the entry should be [subject](#subject-ref-tag)
to allow for "See also" links and inclusion in the Table of Contents.
To contribute, please submit a Pull Request (PR) with the desired documentation change.