Skip to content

Commit 0119515

Browse files
committed
remove 'Read-and-delete-me'; add documentation to vector-sum.cpp
1 parent fd438b6 commit 0119515

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

R/skeleton.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ RcppParallel.package.skeleton <- function(name = "anRpackage",
2323
# remove dummy stuff
2424
unlink("data/dummy.Rda")
2525
unlink("man/dummy.Rd")
26+
unlink("Read-and-delete-me")
2627

2728
message("\nAdding RcppParallel settings")
2829

@@ -94,4 +95,4 @@ RcppParallel.package.skeleton <- function(name = "anRpackage",
9495
}
9596

9697
TRUE
97-
}
98+
}

inst/rstudio/templates/project/RcppParallel.package.skeleton.dcf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Binding: RcppParallel.package.skeleton
22
Title: R Package using RcppParallel
33
Subtitle: Create a new R Package using RcppParallel
44
Caption: Create R Package using RcppParallel
5-
OpenFiles: Read-and-delete-me, src/vector-sum.cpp
5+
OpenFiles: src/vector-sum.cpp
66

77
Parameter: example_code
88
Widget: CheckboxInput

inst/skeleton/vector-sum.cpp

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
/**
2+
*
3+
* This file contains example code showcasing how RcppParallel
4+
* can be used. In this file, we define and export a function called
5+
* 'parallelVectorSum()', which computes the sum of a numeric vector
6+
* in parallel.
7+
*
8+
* Please see https://rcppcore.github.io/RcppParallel/ for more
9+
* details on how to use RcppParallel in an R package, and the
10+
* Rcpp gallery at http://gallery.rcpp.org/ for more examples.
11+
*
12+
*/
13+
114
// [[Rcpp::depends(RcppParallel)]]
215
#include <Rcpp.h>
316
#include <RcppParallel.h>

0 commit comments

Comments
 (0)