https://github.com/schlosslab/cppthreadingexample
https://github.com/schlosslab/cppthreadingexample
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/schlosslab/cppthreadingexample
- Owner: SchlossLab
- Created: 2025-01-27T15:34:21.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-27T18:42:20.000Z (over 1 year ago)
- Last Synced: 2025-01-27T19:42:51.030Z (over 1 year ago)
- Language: C++
- Size: 38.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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](https://github.com/) with:
``` r
# install.packages("pak")
pak::pak("SchlossLab/CppThreadingExample")
```
## Example
The basic example below will calculate the sum of 'data' using 4 processors.
``` r
library(ThreadingExample)
data <- c(1:100)
calculate_sum(data, 4)
```