Skip to content

Repository files navigation

ThreadingExample

The goal of ThreadingExample is to demonstrate the use of threaded C++ code in an R package.

Installation

You can install the development version of ThreadingExample from GitHub with:

# install.packages("pak")pak::pak("SchlossLab/CppThreadingExample")

Example

The basic example below will calculate the sum of 'data' using 4 processors.

library(ThreadingExample)
data<- c(1:100)
calculate_sum(data, 4)

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages