Skip to content

Commit 9055167

Browse files
committed
Merge branch 'master' of github.com:RcppCore/Rcpp
2 parents f3bcf8f + 4f79b74 commit 9055167

File tree

2 files changed

+29
-3
lines changed

2 files changed

+29
-3
lines changed

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,28 @@ always use this Rcpp package instead.
5454
Additional documentation is available via the [JSS paper](http://www.jstatsoft.org/v40/i08/) by Eddelbuettel and
5555
Francois (2011, JSS) paper and the [book](http://www.rcpp.org/book) by Eddelbuettel (2013, Springer);
5656
see 'citation("Rcpp")' for details.
57+
58+
## Installation
59+
60+
To install Rcpp from github, first make sure you have a [package development environment](http://www.rstudio.com/ide/docs/packages/prerequisites), and then:
61+
62+
```R
63+
install.packages("devtools")
64+
devtools::install_github("RcppCore/Rcpp")
65+
```
66+
67+
Rcpp is also available from CRAN.
68+
69+
```R
70+
install.packages( "Rcpp" )
71+
```
72+
73+
On OSX 10.9 (Mavericks) with Xcode 5.0 it is recommended to install Rcpp from source after
74+
setting these variables in `~/.R/Makevars`
75+
76+
```
77+
CC=clang
78+
CXX=clang++
79+
CXXFLAGS= -O3
80+
```
81+

inst/include/Rcpp/internal/wrap_end.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// wrap_end.h: R/C++ interface class library
44
//
5-
// Copyright (C) 2012 Dirk Eddelbuettel and Romain Francois
5+
// Copyright (C) 2012 - 2013 Dirk Eddelbuettel and Romain Francois
66
//
77
// This file is part of Rcpp.
88
//
@@ -23,13 +23,14 @@
2323
#define Rcpp_internal_wrap_end_h
2424

2525
namespace Rcpp{
26+
2627
template <typename T>
2728
inline SEXP module_wrap_dispatch( const T& obj, Rcpp::traits::normal_wrap_tag ){
28-
return wrap( obj ) ;
29+
return wrap( obj ) ;
2930
}
3031
template <typename T>
3132
inline SEXP module_wrap_dispatch( const T& obj, Rcpp::traits::pointer_wrap_tag ) {
32-
return wrap( object< typename traits::un_pointer<T>::type >( obj ) ) ;
33+
return wrap( object< typename traits::un_pointer<T>::type >( obj ) ) ;
3334
}
3435
}
3536

0 commit comments

Comments
 (0)