-
Notifications
You must be signed in to change notification settings - Fork 0
/
packages.Rmd
36 lines (27 loc) · 878 Bytes
/
packages.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
title: "Rcpp in Packages"
Author: "Stephen Cristiano"
output:
workflowr::wflow_html:
toc: true
editor_options:
chunk_output_type: console
---
## Anatomy of an R Package
Inspection of R source code for any R package will reveal the following
directories and files:
* R: for R functions
* vignettes: Latex papers weaving R code and indicating the intended workflow
of an analysis
* man: documentation for exported R functions
* src: compiled code
* DESCRIPTION: file provides a brief description of the project, a version
number, and any packages for which your package depends.
# Using Rcpp:
* All compiled code goes in package/src directory
* Code in src/ will be automatically compiled and shared
libraries created when building the package.
* Instantiate an Rcpp package: Rcpp.package.skeleton
## devtools
# Starting an Rcpp Project
# Documentation