Skip to content

Commit b138780

Browse files
committed
Merge pull request #93 from kevinushey/master
Nice work, and thanks. Can't believe I didn't notice about the missing `#include`. Doh!
2 parents 858f5a6 + a93758a commit b138780

File tree

5 files changed

+9
-8
lines changed

5 files changed

+9
-8
lines changed

inst/include/Rcpp.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
/* it is important that this comes first */
2727
#include <RcppCommon.h>
28+
#include <Rcpp/routines.h>
2829

2930
#include <Rcpp/RObject.h>
3031

inst/include/Rcpp/DataFrame.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,21 +41,21 @@ namespace Rcpp{
4141

4242
DataFrame_Impl() : Parent( internal::empty_data_frame() ){}
4343
DataFrame_Impl(SEXP x) {
44-
set_sexp(x);
44+
set__(x);
4545
}
4646
DataFrame_Impl( const DataFrame_Impl& other){
47-
set_sexp(other) ;
47+
set__(other) ;
4848
}
4949

5050
template <typename T>
5151
DataFrame_Impl( const T& obj ) ;
5252

5353
DataFrame_Impl& operator=( DataFrame_Impl& other){
54-
if( *this != other) set_sexp(other) ;
54+
if( *this != other) set__(other) ;
5555
}
5656

5757
DataFrame_Impl& operator=( SEXP x){
58-
set_sexp(x) ;
58+
set__(x) ;
5959
return *this ;
6060
}
6161

@@ -70,7 +70,7 @@ namespace Rcpp{
7070
#include <Rcpp/generated/DataFrame_generated.h>
7171

7272
private:
73-
void set_sexp(SEXP x){
73+
void set__(SEXP x){
7474
if( ::Rf_inherits( x, "data.frame" )){
7575
Parent::set__( x ) ;
7676
} else{

inst/include/Rcpp/api/meat/DataFrame.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ namespace Rcpp{
2323
template <template <class> class StoragePolicy>
2424
template <class T>
2525
DataFrame_Impl<StoragePolicy>::DataFrame_Impl( const T& obj){
26-
set_sexp( wrap(obj) ) ;
26+
set__( wrap(obj) ) ;
2727
}
2828

2929
}

inst/include/Rcpp/api/meat/Matrix.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ namespace Rcpp{
6464
Matrix<RTYPE, StoragePolicy>& Matrix<RTYPE,StoragePolicy>::operator=(const Matrix& other) {
6565
SEXP x = VECTOR::get__() ;
6666
if( ! ::Rf_isMatrix(x) ) not_compatible("not a matrix") ;
67-
VECTOR::set_sexp( x ) ;
67+
VECTOR::set__( x ) ;
6868
nrows = other.nrows ;
6969
return *this ;
7070
}

inst/include/Rcpp/vector/SubMatrix.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ Matrix<RTYPE,StoragePolicy>& Matrix<RTYPE,StoragePolicy>::operator=( const SubMa
7373
int nc = sub.ncol(), nr = sub.nrow() ;
7474
if( nc != nrow() || nr != ncol() ){
7575
nrows = nr ;
76-
VECTOR::set_sexp( Rf_allocMatrix( RTYPE, nr, nc ) ) ;
76+
VECTOR::set__( Rf_allocMatrix( RTYPE, nr, nc ) ) ;
7777
}
7878
iterator start = VECTOR::begin() ;
7979
iterator rhs_it ;

0 commit comments

Comments
 (0)