Displaying 10 results from an estimated 10 matches for "charactervector".
2010 Nov 15
1
SEXP and slots
...r("foo"));
>
> mkChar() is creating a copy (if necessary) of "foo", managing it, and
> returning a CHARSXP. Working through protection (which will likely be
> your next obstacle ;) in this last example is a good exercise.
In Rcpp, you would wrap up the STRSXP into a CharacterVector and then
pull things in and out using indexing:
Rcpp::CharacterVector aladdin(str_vec) ;
std::string first = aladdin[0] ;
aladdin[0] = "foobar" ;
> There is a parallel operation VECTOR_ELT / SET_VECTOR_ELT for lists.
Same thing for lists:
Rcpp::List yasmine( some_vec_sxp ) ;
doubl...
2016 Apr 19
3
installation of dplyr
...4 -m64 -mtune=generic -c arrange.cpp -o arrange.o
In file included from ../inst/include/dplyr.h:131,
from arrange.cpp:1:
../inst/include/dplyr/DataFrameSubsetVisitors.h: In constructor ?dplyr::DataFrameSubsetVisitors::DataFrameSubsetVisitors(const Rcpp::DataFrame&, const Rcpp::CharacterVector&)?:
../inst/include/dplyr/DataFrameSubsetVisitors.h:40: warning: ?column? may be used uninitialized in this function
g++ -m64 -I/usr/include/R -DNDEBUG -I../inst/include -DCOMPILING_DPLYR -I/usr/local/include -I"/usr/lib64/R/library/Rcpp/include" -I"/usr/lib64/R/library/BH/includ...
2016 Apr 19
0
installation of dplyr
...eneric -c arrange.cpp -o arrange.o
> In file included from ../inst/include/dplyr.h:131,
> from arrange.cpp:1:
> ../inst/include/dplyr/DataFrameSubsetVisitors.h: In constructor ?dplyr::DataFrameSubsetVisitors::DataFrameSubsetVisitors(const Rcpp::DataFrame&, const Rcpp::CharacterVector&)?:
> ../inst/include/dplyr/DataFrameSubsetVisitors.h:40: warning: ?column? may be used uninitialized in this function
> g++ -m64 -I/usr/include/R -DNDEBUG -I../inst/include -DCOMPILING_DPLYR -I/usr/local/include -I"/usr/lib64/R/library/Rcpp/include" -I"/usr/lib64/R/library...
2019 Dec 09
3
Inconsistent behavior for the C AP's R_ParseVector() ?
Le lun. 9 d?c. 2019 ? 05:43, Tomas Kalibera <tomas.kalibera at gmail.com> a
?crit :
> On 12/7/19 10:32 PM, Laurent Gautier wrote:
>
> Thanks for the quick response Tomas.
>
> The same error is indeed happening when trying to have a zero-length
> variable name in an environment. The surprising bit is then "why is this
> happening during parsing" (that is why
2010 Feb 20
1
how to create a SEXP which could be accessed in embedded R
Hi all,
I am not familiar with writing R extensions. In a C program, I want to create a SEXP and access it in embedded R. How to let the embedded engine know there's a new vector? For example, after creating a SEXP, parsing 'ls()' in embedded R and then evaluating, STRSXP returned will contain the name of the SEXP. Any help would be appreciated.
Regards,
Spiral
[[alternative HTML
2016 Dec 19
4
Problems installing tibble (ggplot2) in R running Ubuntu 14.04
...o
g++ -I/usr/share/R/include -DNDEBUG
-I"/usr/lib/R/site-library/Rcpp/include" -fpic -g -O2
-fstack-protector --param=ssp-buffer-size=4 -Wformat
-Werror=format-security -D_FORTIFY_SOURCE=2 -g -c matrixToDataFrame.cpp
-o matrixToDataFrame.o
matrixToDataFrame.cpp: In function ?Rcpp::CharacterVector
get_names(const Rcpp::Matrix<RTYPE>&, int)?:
matrixToDataFrame.cpp:58:16: error: ?tfm? has not been declared
names[i] = tfm::format( "V%d", (i+1) ) ;
^
matrixToDataFrame.cpp: In instantiation of ?Rcpp::List
copy_columns(const Rcpp::Matrix<RTYPE>&am...
2016 Dec 19
0
Problems installing tibble (ggplot2) in R running Ubuntu 14.04
...include -DNDEBUG
> -I"/usr/lib/R/site-library/Rcpp/include" -fpic -g -O2
> -fstack-protector --param=ssp-buffer-size=4 -Wformat
> -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c matrixToDataFrame.cpp
> -o matrixToDataFrame.o
> matrixToDataFrame.cpp: In function ?Rcpp::CharacterVector
> get_names(const Rcpp::Matrix<RTYPE>&, int)?:
> matrixToDataFrame.cpp:58:16: error: ?tfm? has not been declared
> names[i] = tfm::format( "V%d", (i+1) ) ;
> ^
> matrixToDataFrame.cpp: In instantiation of ?Rcpp::List
> copy_columns(const Rc...
2010 May 17
0
Rcpp 0.8.0 on CRAN
...--------------------------------------------------
INTSXP | Rcpp::IntegerVector
REALSXP | Rcpp::NumericVector
RAWSXP | Rcpp::RawVector
LGLSXP | Rcpp::LogicalVector
CPLXSXP | Rcpp::ComplexVector
STRSXP | Rcpp::CharacterVector
VECSXP | Rcpp::List
EXPRSXP | Rcpp::ExpressionVector
----------------------------------------------------------
ENVSXP | Rcpp::Environment
SYMSXP | Rcpp::Symbol
----------------------------------------------------------
CLOSXP |
BUIL...
2010 May 17
0
Rcpp 0.8.0 on CRAN
...--------------------------------------------------
INTSXP | Rcpp::IntegerVector
REALSXP | Rcpp::NumericVector
RAWSXP | Rcpp::RawVector
LGLSXP | Rcpp::LogicalVector
CPLXSXP | Rcpp::ComplexVector
STRSXP | Rcpp::CharacterVector
VECSXP | Rcpp::List
EXPRSXP | Rcpp::ExpressionVector
----------------------------------------------------------
ENVSXP | Rcpp::Environment
SYMSXP | Rcpp::Symbol
----------------------------------------------------------
CLOSXP |
BUIL...
2018 Sep 20
4
Bias in R's random integers?
Hello,
On Thursday, September 20, 2018 11:15:04 AM EDT Duncan Murdoch wrote:
> On 20/09/2018 6:59 AM, Ralf Stubner wrote:
> > On 9/20/18 1:43 AM, Carl Boettiger wrote:
> >> For a well-tested C algorithm, based on my reading of Lemire, the
> >> unbiased "algorithm 3" in https://arxiv.org/abs/1805.10941 is part
> >> already of the C standard library in