Skip to content
This repository has been archived by the owner on Dec 29, 2019. It is now read-only.

Commit

Permalink
test()
Browse files Browse the repository at this point in the history
  • Loading branch information
krlmlr committed Aug 18, 2018
1 parent 7a43138 commit 6856fbc
Show file tree
Hide file tree
Showing 6 changed files with 82 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
.Rhistory
.RData
.Ruserdata
*.bc
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# Generated by roxygen2: do not edit by hand

importFrom(Rcpp,compileAttributes)
useDynLib(RcppNoInitTest, .registration = TRUE)
9 changes: 9 additions & 0 deletions R/RcppExports.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Generated by using Rcpp::compileAttributes() -> do not edit by hand
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393

#' @importFrom Rcpp compileAttributes
#' @useDynLib RcppNoInitTest, .registration = TRUE
test <- function() {
.Call(`_RcppNoInitTest_test`)
}

32 changes: 32 additions & 0 deletions RcppNoInitTest.so.bcheck
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@

Function Rcpp::Rcpp_eval(SEXPREC*, SEXPREC*)
[UP] unprotected variable identity while calling allocating function Rf_install /home/kirill/git/R/rchk/trunk/packages/lib/Rcpp/include/Rcpp/api/meat/Rcpp_eval.h:85
[UP] unprotected variable identity while calling allocating function Rf_lang3(S:evalq,?,?) /home/kirill/git/R/rchk/trunk/packages/lib/Rcpp/include/Rcpp/api/meat/Rcpp_eval.h:85
[UP] unprotected variable identity while calling allocating function Rf_install /home/kirill/git/R/rchk/trunk/packages/lib/Rcpp/include/Rcpp/api/meat/Rcpp_eval.h:88

Function Rcpp::Rcpp_protect(SEXPREC*)
[PB] has possible protection stack imbalance /home/kirill/git/R/rchk/trunk/packages/lib/Rcpp/include/Rcpp/protection/Shield.h:25

Function Rcpp::Shelter<SEXPREC*>::operator()(SEXPREC*)
[PB] has possible protection stack imbalance /home/kirill/git/R/rchk/trunk/packages/lib/Rcpp/include/Rcpp/protection/Shelter.h:30

Function Rcpp::Shelter<SEXPREC*>::~Shelter()
[PB] has an unsupported form of unprotect (not constant, not variable), results will be incomplete /home/kirill/git/R/rchk/trunk/packages/lib/Rcpp/include/Rcpp/protection/Shelter.h:34
[UP] unsupported form of unprotect, unprotecting all variables, results will be incomplete /home/kirill/git/R/rchk/trunk/packages/lib/Rcpp/include/Rcpp/protection/Shelter.h:34

Function Rcpp::Shield<SEXPREC*>::~Shield()
[PB] has negative depth /home/kirill/git/R/rchk/trunk/packages/lib/Rcpp/include/Rcpp/protection/Shield.h:33
[UP] attempt to unprotect more items (1) than protected (0), results will be incomplete /home/kirill/git/R/rchk/trunk/packages/lib/Rcpp/include/Rcpp/protection/Shield.h:33
[PB] has possible protection stack imbalance /home/kirill/git/R/rchk/trunk/packages/lib/Rcpp/include/Rcpp/protection/Shield.h:34

Function Rcpp::internal::is_Rcpp_eval_call(SEXPREC*)
[UP] unprotected variable identity_fun while calling allocating function Rf_install /home/kirill/git/R/rchk/trunk/packages/lib/Rcpp/include/Rcpp/exceptions.h:247
[UP] unprotected variable identity_fun while calling allocating function Rf_install /home/kirill/git/R/rchk/trunk/packages/lib/Rcpp/include/Rcpp/exceptions.h:248

Function _RcppNoInitTest_test
[UP] ignoring variable <unnamed var: %14 = alloca %struct.SEXPREC*, align 8> as it has address taken, results will be incomplete
[PB] has possible protection stack imbalance /home/kirill/git/R/RcppNoInitTest/src/RcppExports.cpp:17

Function _ZNK4Rcpp14no_init_vectorcvNS_6VectorIXT_ET0_EEILi13ENS_15PreserveStorageEEEv
[UP] calling allocating function Rcpp::Vector<13, Rcpp::PreserveStorage>::Vector(SEXPREC*)(?,V) with argument allocated using Rf_allocVector /home/kirill/git/R/rchk/trunk/packages/lib/Rcpp/include/Rcpp/vector/no_init.h:40
Analyzed 171 functions, traversed 1013 states.
27 changes: 27 additions & 0 deletions src/RcppExports.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// Generated by using Rcpp::compileAttributes() -> do not edit by hand
// Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393

#include <Rcpp.h>

using namespace Rcpp;

// test
IntegerVector test();
RcppExport SEXP _RcppNoInitTest_test() {
BEGIN_RCPP
Rcpp::RObject rcpp_result_gen;
Rcpp::RNGScope rcpp_rngScope_gen;
rcpp_result_gen = Rcpp::wrap(test());
return rcpp_result_gen;
END_RCPP
}

static const R_CallMethodDef CallEntries[] = {
{"_RcppNoInitTest_test", (DL_FUNC) &_RcppNoInitTest_test, 0},
{NULL, NULL, 0}
};

RcppExport void R_init_RcppNoInitTest(DllInfo *dll) {
R_registerRoutines(dll, NULL, CallEntries, NULL, NULL);
R_useDynamicSymbols(dll, FALSE);
}
11 changes: 11 additions & 0 deletions src/test.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#include <Rcpp.h>

using namespace Rcpp;

//' @importFrom Rcpp compileAttributes
//' @useDynLib RcppNoInitTest, .registration = TRUE
// [[Rcpp::export]]
IntegerVector test() {
IntegerVector ret = no_init(1);
return ret;
}

0 comments on commit 6856fbc

Please sign in to comment.