Skip to content

Commit 349aafb

Browse files
authored
Use Rcpp namespace in documentation
Trivial documentation fix motivated by https://stackoverflow.com/questions/50293263/rcpp-parallel-is-not-recognised
1 parent d251e1b commit 349aafb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

index.Rmd

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ For example, here's a `Worker` object that takes the square root of it's input a
170170
// [[Rcpp::depends(RcppParallel)]]
171171
#include <RcppParallel.h>
172172
using namespace RcppParallel;
173+
using namespace Rcpp;
173174

174175
struct SquareRoot : public Worker
175176
{
@@ -232,6 +233,7 @@ For example, here's a `Worker` object that is used to sum a vector:
232233
// [[Rcpp::depends(RcppParallel)]]
233234
#include <RcppParallel.h>
234235
using namespace RcppParallel;
236+
using namespace Rcpp;
235237

236238
struct Sum : public Worker
237239
{

0 commit comments

Comments
 (0)