knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

craftthis

Lifecycle: experimental

C raft for your R package.

{craftthis} is a workflow package: it automates repetitive tasks that arise during development of R packages that use C code.

Installation

You can install the development version of {craftthis} like so:

# install.packages("devtools")
devtools::install_github("ramiromagno/craftthis")

Usage

Create an R package named "mypkg" that is ready for development with C code.

# This will create a new RStudio session whose active project is your package
# mypkg
craftthis::craft_package('mypkg')

In the new session load the newly created package and run hello():

devtools::load_all()

hello()

craft_package() automatically created a hello() R function that wraps a hello_() C function using .Call().

Helpers



ramiromagno/craftthis documentation built on Aug. 11, 2022, 4:44 a.m.