Skip to content

Commit 492a10b

Browse files
committed
Cleaned up some warnings and notes in R CMD check
1 parent 1e416f1 commit 492a10b

File tree

9 files changed

+26
-568
lines changed

9 files changed

+26
-568
lines changed

.Rbuildignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
^.*\.Rproj$
22
^\.Rproj\.user$
3+
^\.travis\.yml$

LICENSE

Lines changed: 0 additions & 339 deletions
This file was deleted.

R/RcppExports.R

Lines changed: 0 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -5,59 +5,3 @@ example_manually_hooked <- function() {
55
.Call('RcppHoney_example_manually_hooked', PACKAGE = 'RcppHoney')
66
}
77

8-
test_hooked_plus_scalar <- function(v1, s) {
9-
.Call('RcppHoney_test_hooked_plus_scalar', PACKAGE = 'RcppHoney', v1, s)
10-
}
11-
12-
test_scalar_plus_hooked <- function(s, v1) {
13-
.Call('RcppHoney_test_scalar_plus_hooked', PACKAGE = 'RcppHoney', s, v1)
14-
}
15-
16-
test_hooked_plus_hooked <- function(v1, v2) {
17-
.Call('RcppHoney_test_hooked_plus_hooked', PACKAGE = 'RcppHoney', v1, v2)
18-
}
19-
20-
test_hooked_plus_other_hooked <- function(v1, v2) {
21-
.Call('RcppHoney_test_hooked_plus_other_hooked', PACKAGE = 'RcppHoney', v1, v2)
22-
}
23-
24-
test_other_hooked_plus_hooked <- function(v1, v2) {
25-
.Call('RcppHoney_test_other_hooked_plus_hooked', PACKAGE = 'RcppHoney', v1, v2)
26-
}
27-
28-
test_operand_plus_scalar <- function(v1, v2, s) {
29-
.Call('RcppHoney_test_operand_plus_scalar', PACKAGE = 'RcppHoney', v1, v2, s)
30-
}
31-
32-
test_scalar_plus_operand <- function(s, v1, v2) {
33-
.Call('RcppHoney_test_scalar_plus_operand', PACKAGE = 'RcppHoney', s, v1, v2)
34-
}
35-
36-
test_operand_plus_hooked <- function(v1, v2, v3) {
37-
.Call('RcppHoney_test_operand_plus_hooked', PACKAGE = 'RcppHoney', v1, v2, v3)
38-
}
39-
40-
test_hooked_plus_operand <- function(v1, v2, v3) {
41-
.Call('RcppHoney_test_hooked_plus_operand', PACKAGE = 'RcppHoney', v1, v2, v3)
42-
}
43-
44-
test_operand_plus_operand <- function(s, v1, v2) {
45-
.Call('RcppHoney_test_operand_plus_operand', PACKAGE = 'RcppHoney', s, v1, v2)
46-
}
47-
48-
test_unary_operator_hooked <- function(v) {
49-
.Call('RcppHoney_test_unary_operator_hooked', PACKAGE = 'RcppHoney', v)
50-
}
51-
52-
test_unary_operator_operand <- function(v) {
53-
.Call('RcppHoney_test_unary_operator_operand', PACKAGE = 'RcppHoney', v)
54-
}
55-
56-
test_unary_function_hooked <- function(v) {
57-
.Call('RcppHoney_test_unary_function_hooked', PACKAGE = 'RcppHoney', v)
58-
}
59-
60-
test_unary_function_operand <- function(v) {
61-
.Call('RcppHoney_test_unary_function_operand', PACKAGE = 'RcppHoney', v)
62-
}
63-

inst/include/RcppHoney.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717

1818
#pragma once
1919

20-
#include <RcppCommon.h>
2120
#include "RcppHoneyForward.hpp"
2221
#include <Rcpp.h>
2322
#include "RcppHoney/wrap.hpp"

inst/include/RcppHoneyForward.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
#pragma once
1919

20+
#include <RcppCommon.h>
2021
#include "RcppHoney/traits/ctype.hpp"
2122
#include "RcppHoney/traits/enable_if.hpp"
2223
#include "RcppHoney/traits/if_else.hpp"
@@ -39,7 +40,7 @@ struct const_iterator {
3940
typedef typename T::const_iterator type;
4041
};
4142

42-
43+
4344
} // namespace hooks
4445

4546
} // namespace RcppHoney
File renamed without changes.

man/example_manually_hooked.Rd

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
\name{example_manually_hooked}
2+
\alias{example_manually_hooked}
3+
\title{
4+
example_manually_hooked
5+
}
6+
\description{
7+
Simple demonstration of RcppHoney functionality.
8+
}
9+
\usage{
10+
example_manually_hooked()
11+
}
12+
\value{
13+
A numeric vector.
14+
}
15+
\author{
16+
Daniel C. Dillon
17+
}
18+
\examples{
19+
library(RcppHoney)
20+
v <- 1:5
21+
all.equal(example_manually_hooked(), 42 + v + v + log(v) - v - v + sqrt(v) + -v + 42)
22+
}

src/RcppExports.cpp

Lines changed: 0 additions & 169 deletions
Original file line numberDiff line numberDiff line change
@@ -15,172 +15,3 @@ BEGIN_RCPP
1515
return __result;
1616
END_RCPP
1717
}
18-
// test_hooked_plus_scalar
19-
Rcpp::NumericVector test_hooked_plus_scalar(std::vector< int > v1, double s);
20-
RcppExport SEXP RcppHoney_test_hooked_plus_scalar(SEXP v1SEXP, SEXP sSEXP) {
21-
BEGIN_RCPP
22-
Rcpp::RObject __result;
23-
Rcpp::RNGScope __rngScope;
24-
Rcpp::traits::input_parameter< std::vector< int > >::type v1(v1SEXP);
25-
Rcpp::traits::input_parameter< double >::type s(sSEXP);
26-
__result = Rcpp::wrap(test_hooked_plus_scalar(v1, s));
27-
return __result;
28-
END_RCPP
29-
}
30-
// test_scalar_plus_hooked
31-
Rcpp::NumericVector test_scalar_plus_hooked(double s, std::vector< int > v1);
32-
RcppExport SEXP RcppHoney_test_scalar_plus_hooked(SEXP sSEXP, SEXP v1SEXP) {
33-
BEGIN_RCPP
34-
Rcpp::RObject __result;
35-
Rcpp::RNGScope __rngScope;
36-
Rcpp::traits::input_parameter< double >::type s(sSEXP);
37-
Rcpp::traits::input_parameter< std::vector< int > >::type v1(v1SEXP);
38-
__result = Rcpp::wrap(test_scalar_plus_hooked(s, v1));
39-
return __result;
40-
END_RCPP
41-
}
42-
// test_hooked_plus_hooked
43-
Rcpp::NumericVector test_hooked_plus_hooked(std::vector< int > v1, std::vector< int > v2);
44-
RcppExport SEXP RcppHoney_test_hooked_plus_hooked(SEXP v1SEXP, SEXP v2SEXP) {
45-
BEGIN_RCPP
46-
Rcpp::RObject __result;
47-
Rcpp::RNGScope __rngScope;
48-
Rcpp::traits::input_parameter< std::vector< int > >::type v1(v1SEXP);
49-
Rcpp::traits::input_parameter< std::vector< int > >::type v2(v2SEXP);
50-
__result = Rcpp::wrap(test_hooked_plus_hooked(v1, v2));
51-
return __result;
52-
END_RCPP
53-
}
54-
// test_hooked_plus_other_hooked
55-
Rcpp::NumericVector test_hooked_plus_other_hooked(std::vector< int > v1, Rcpp::NumericVector v2);
56-
RcppExport SEXP RcppHoney_test_hooked_plus_other_hooked(SEXP v1SEXP, SEXP v2SEXP) {
57-
BEGIN_RCPP
58-
Rcpp::RObject __result;
59-
Rcpp::RNGScope __rngScope;
60-
Rcpp::traits::input_parameter< std::vector< int > >::type v1(v1SEXP);
61-
Rcpp::traits::input_parameter< Rcpp::NumericVector >::type v2(v2SEXP);
62-
__result = Rcpp::wrap(test_hooked_plus_other_hooked(v1, v2));
63-
return __result;
64-
END_RCPP
65-
}
66-
// test_other_hooked_plus_hooked
67-
Rcpp::NumericVector test_other_hooked_plus_hooked(Rcpp::NumericVector v1, std::vector< int > v2);
68-
RcppExport SEXP RcppHoney_test_other_hooked_plus_hooked(SEXP v1SEXP, SEXP v2SEXP) {
69-
BEGIN_RCPP
70-
Rcpp::RObject __result;
71-
Rcpp::RNGScope __rngScope;
72-
Rcpp::traits::input_parameter< Rcpp::NumericVector >::type v1(v1SEXP);
73-
Rcpp::traits::input_parameter< std::vector< int > >::type v2(v2SEXP);
74-
__result = Rcpp::wrap(test_other_hooked_plus_hooked(v1, v2));
75-
return __result;
76-
END_RCPP
77-
}
78-
// test_operand_plus_scalar
79-
Rcpp::NumericVector test_operand_plus_scalar(std::vector< int > v1, std::vector< int > v2, double s);
80-
RcppExport SEXP RcppHoney_test_operand_plus_scalar(SEXP v1SEXP, SEXP v2SEXP, SEXP sSEXP) {
81-
BEGIN_RCPP
82-
Rcpp::RObject __result;
83-
Rcpp::RNGScope __rngScope;
84-
Rcpp::traits::input_parameter< std::vector< int > >::type v1(v1SEXP);
85-
Rcpp::traits::input_parameter< std::vector< int > >::type v2(v2SEXP);
86-
Rcpp::traits::input_parameter< double >::type s(sSEXP);
87-
__result = Rcpp::wrap(test_operand_plus_scalar(v1, v2, s));
88-
return __result;
89-
END_RCPP
90-
}
91-
// test_scalar_plus_operand
92-
Rcpp::NumericVector test_scalar_plus_operand(double s, std::vector< int > v1, std::vector< int > v2);
93-
RcppExport SEXP RcppHoney_test_scalar_plus_operand(SEXP sSEXP, SEXP v1SEXP, SEXP v2SEXP) {
94-
BEGIN_RCPP
95-
Rcpp::RObject __result;
96-
Rcpp::RNGScope __rngScope;
97-
Rcpp::traits::input_parameter< double >::type s(sSEXP);
98-
Rcpp::traits::input_parameter< std::vector< int > >::type v1(v1SEXP);
99-
Rcpp::traits::input_parameter< std::vector< int > >::type v2(v2SEXP);
100-
__result = Rcpp::wrap(test_scalar_plus_operand(s, v1, v2));
101-
return __result;
102-
END_RCPP
103-
}
104-
// test_operand_plus_hooked
105-
Rcpp::NumericVector test_operand_plus_hooked(std::vector< int > v1, std::vector< int > v2, Rcpp::NumericVector v3);
106-
RcppExport SEXP RcppHoney_test_operand_plus_hooked(SEXP v1SEXP, SEXP v2SEXP, SEXP v3SEXP) {
107-
BEGIN_RCPP
108-
Rcpp::RObject __result;
109-
Rcpp::RNGScope __rngScope;
110-
Rcpp::traits::input_parameter< std::vector< int > >::type v1(v1SEXP);
111-
Rcpp::traits::input_parameter< std::vector< int > >::type v2(v2SEXP);
112-
Rcpp::traits::input_parameter< Rcpp::NumericVector >::type v3(v3SEXP);
113-
__result = Rcpp::wrap(test_operand_plus_hooked(v1, v2, v3));
114-
return __result;
115-
END_RCPP
116-
}
117-
// test_hooked_plus_operand
118-
Rcpp::NumericVector test_hooked_plus_operand(Rcpp::NumericVector v1, std::vector< int > v2, std::vector< int > v3);
119-
RcppExport SEXP RcppHoney_test_hooked_plus_operand(SEXP v1SEXP, SEXP v2SEXP, SEXP v3SEXP) {
120-
BEGIN_RCPP
121-
Rcpp::RObject __result;
122-
Rcpp::RNGScope __rngScope;
123-
Rcpp::traits::input_parameter< Rcpp::NumericVector >::type v1(v1SEXP);
124-
Rcpp::traits::input_parameter< std::vector< int > >::type v2(v2SEXP);
125-
Rcpp::traits::input_parameter< std::vector< int > >::type v3(v3SEXP);
126-
__result = Rcpp::wrap(test_hooked_plus_operand(v1, v2, v3));
127-
return __result;
128-
END_RCPP
129-
}
130-
// test_operand_plus_operand
131-
Rcpp::NumericVector test_operand_plus_operand(double s, std::vector< int > v1, std::vector< int > v2);
132-
RcppExport SEXP RcppHoney_test_operand_plus_operand(SEXP sSEXP, SEXP v1SEXP, SEXP v2SEXP) {
133-
BEGIN_RCPP
134-
Rcpp::RObject __result;
135-
Rcpp::RNGScope __rngScope;
136-
Rcpp::traits::input_parameter< double >::type s(sSEXP);
137-
Rcpp::traits::input_parameter< std::vector< int > >::type v1(v1SEXP);
138-
Rcpp::traits::input_parameter< std::vector< int > >::type v2(v2SEXP);
139-
__result = Rcpp::wrap(test_operand_plus_operand(s, v1, v2));
140-
return __result;
141-
END_RCPP
142-
}
143-
// test_unary_operator_hooked
144-
Rcpp::NumericVector test_unary_operator_hooked(std::vector< int > v);
145-
RcppExport SEXP RcppHoney_test_unary_operator_hooked(SEXP vSEXP) {
146-
BEGIN_RCPP
147-
Rcpp::RObject __result;
148-
Rcpp::RNGScope __rngScope;
149-
Rcpp::traits::input_parameter< std::vector< int > >::type v(vSEXP);
150-
__result = Rcpp::wrap(test_unary_operator_hooked(v));
151-
return __result;
152-
END_RCPP
153-
}
154-
// test_unary_operator_operand
155-
Rcpp::NumericVector test_unary_operator_operand(std::vector< int > v);
156-
RcppExport SEXP RcppHoney_test_unary_operator_operand(SEXP vSEXP) {
157-
BEGIN_RCPP
158-
Rcpp::RObject __result;
159-
Rcpp::RNGScope __rngScope;
160-
Rcpp::traits::input_parameter< std::vector< int > >::type v(vSEXP);
161-
__result = Rcpp::wrap(test_unary_operator_operand(v));
162-
return __result;
163-
END_RCPP
164-
}
165-
// test_unary_function_hooked
166-
Rcpp::NumericVector test_unary_function_hooked(std::vector< int > v);
167-
RcppExport SEXP RcppHoney_test_unary_function_hooked(SEXP vSEXP) {
168-
BEGIN_RCPP
169-
Rcpp::RObject __result;
170-
Rcpp::RNGScope __rngScope;
171-
Rcpp::traits::input_parameter< std::vector< int > >::type v(vSEXP);
172-
__result = Rcpp::wrap(test_unary_function_hooked(v));
173-
return __result;
174-
END_RCPP
175-
}
176-
// test_unary_function_operand
177-
Rcpp::NumericVector test_unary_function_operand(std::vector< int > v);
178-
RcppExport SEXP RcppHoney_test_unary_function_operand(SEXP vSEXP) {
179-
BEGIN_RCPP
180-
Rcpp::RObject __result;
181-
Rcpp::RNGScope __rngScope;
182-
Rcpp::traits::input_parameter< std::vector< int > >::type v(vSEXP);
183-
__result = Rcpp::wrap(test_unary_function_operand(v));
184-
return __result;
185-
END_RCPP
186-
}

src/examples.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
#include <Rcpp.h>
21
#include <RcppHoneyForward.hpp>
32
#include <vector>
43

@@ -58,6 +57,6 @@ Rcpp::NumericVector example_manually_hooked() {
5857
// now do some weird operations incorporating both std::vector and std::list and some
5958
// RcppHoney functions and return it.
6059
RcppHoney::NumericVector retval
61-
= l + v + RcppHoney::log(v) - v - l + RcppHoney::sqrt(v) + -v2;
60+
= 42 + l + v + RcppHoney::log(v) - v - l + RcppHoney::sqrt(v) + -v2 + 42;
6261
return retval;
6362
}

0 commit comments

Comments
 (0)