title: Rcpp, creating a dataframe with a vector of long long
body: <p>I have a series of vectors which I am adding into a DataFrame object to return to R.
  The problem comes when I try and add a vector with long long elements.</p>
  
  <pre><code>// [[Rcpp::export]]
  DataFrame test()
  {
  std::vector&lt;long long&gt; x;
  return DataFrame::create(Named("x") = x);
  }
  </code></pre>
  
  <p>The error returned is</p>
  
  <p>g++ -m64 -I"C:/R/R-30~1.1/include" -DNDEBUG     -I"C:/R/R-3.0.1/library/Rcpp/include"  -I"d:/RCompile/CRANpkg/extralibs64/local/include"     -O2 -Wall  -mtune=core2 -c quotes.cpp -o quotes.o In file included from C:/R/R-3.0.1/library/Rcpp/include/RcppCommon.h:117:0,                  from C:/R/R-3.0.1/library/Rcpp/include/Rcpp.h:27,                  from quotes.cpp:1: C:/R/R-3.0.1/library/Rcpp/include/Rcpp/internal/wrap.h: In function 'SEXPREC* Rcpp::internal::wrap_dispatch_unknown_iterable(const T&amp;, Rcpp::traits::false_type) [with T = long long int, SEXP = SEXPREC*, Rcpp::traits::false_type = Rcpp::traits::integral_constant]': C:/R/R-3.0.1/library/Rcpp/include/Rcpp/internal/wrap.h:691:98:   instantiated from 'SEXPREC* Rcpp::internal::wrap_dispatch_unknown(const T&amp;, Rcpp::traits::false_type) [with T = long long int, SEXP = SEXPREC*, Rcpp::traits::false_type = Rcpp::traits::integral_constant]' C:/R/R-3.0.1/library/Rcpp/include/Rcpp/internal/wrap.h:723:96:   instantiated from 'SEXPREC* Rcpp::internal::wrap_dispatch_eigen(const T&amp;, Rcpp::traits::false_type) [with T = long long int, SEXP = SEXPREC*, Rcpp::traits::false_type = Rcpp::traits::integral_constant]' C:/R/R-3.0.1/library/Rcpp/include/Rcpp/internal/wrap.h:740:80:   instantiated from 'SEXPREC* Rcpp::internal::wrap_dispatch_unknown_importable(const T&amp;, Rcpp::traits::false_type) [with T = long long int, SEXP = SEXPREC*, Rcpp::traits::false_type = Rcpp::traits::integral_constant]' C:/R/R-3.0.1/library/Rcpp/include/Rcpp/internal/wrap.h:760:99:   instantiated from 'SEXPREC* Rcpp::internal::wrap_dispatch(const T&amp;, Rcpp::traits::wrap_type_unknown_tag) [with T = long long int, SEXP = SEXPREC*]' C:/R/R-3.0.1/library/Rcpp/include/Rcpp/internal/wrap.h:863:104:   instantiated from 'SEXPREC* Rcpp::wrap(const T&amp;) [with T = long long int, SEXP = SEXPREC*]' C:/R/R-3.0.1/library/Rcpp/include/Rcpp/internal/wrap.h:193:3:   [ skipping 14 instantiation contexts ] C:/R/R-3.0.1/library/Rcpp/include/Rcpp/vector/Vector.h:395:9:   instantiated from 'static void Rcpp::Vector::replace_element__dispatch(Rcpp::traits::true_type, Rcpp::Vector::iterator, SEXP, int, const U&amp;) [with U = Rcpp::traits::named_object >, int RTYPE = 19, Rcpp::traits::true_type = Rcpp::traits::integral_constant, Rcpp::Vector::iterator = Rcpp::internal::Proxy_Iterator >, SEXP = SEXPREC*]' C:/R/R-3.0.1/library/Rcpp/include/Rcpp/vector/Vector.h:384:9:   instantiated from 'static void Rcpp::Vector::replace_element(Rcpp::Vector::iterator, SEXP, int, const U&amp;) [with U = Rcpp::traits::named_object >, int RTYPE = 19, Rcpp::Vector::iterator = Rcpp::internal::Proxy_Iterator >, SEXP = SEXPREC*]' C:/R/R-3.0.1/library/Rcpp/include/Rcpp/generated/Vector_<em>create.h:318:2:   instantiated from 'static Rcpp::Vector Rcpp::Vector::create</em>_dispatch(Rcpp::traits::true_type, const T1&amp;, const T2&amp;, const T3&amp;, const T4&amp;, const T5&amp;, const T6&amp;) [with T1 = Rcpp::traits::named_object >, T2 = Rcpp::traits::named_object >, T3 = Rcpp::traits::named_object >, T4 = Rcpp::traits::named_object >, T5 = Rcpp::traits::named_object >, T6 = Rcpp::traits::named_object >, int RTYPE = 19, Rcpp::Vector = Rcpp::Vector&lt;19>, Rcpp::traits::true_type = Rcpp::traits::integral_constant]' C:/R/R-3.0.1/library/Rcpp/include/Rcpp/generated/Vector__create.h:288:37:   instantiated from 'static Rcpp::Vector Rcpp::Vector::create(const T1&amp;, const T2&amp;, const T3&amp;, const T4&amp;, const T5&amp;, const T6&amp;) [with T1 = Rcpp::traits::named_object >, T2 = Rcpp::traits::named_object >, T3 = Rcpp::traits::named_object >, T4 = Rcpp::traits::named_object >, T5 = Rcpp::traits::named_object >, T6 = Rcpp::traits::named_object >, int RTYPE = 19, Rcpp::Vector = Rcpp::Vector&lt;19>]' C:/R/R-3.0.1/library/Rcpp/include/Rcpp/generated/DataFrame_generated.h:59:73:   instantiated from 'static Rcpp::DataFrame Rcpp::DataFrame::create(const T1&amp;, const T2&amp;, const T3&amp;, const T4&amp;, const T5&amp;, const T6&amp;) [with T1 = Rcpp::traits::named_object >, T2 = Rcpp::traits::named_object >, T3 = Rcpp::traits::named_object >, T4 = Rcpp::traits::named_object >, T5 = Rcpp::traits::named_object >, T6 = Rcpp::traits::named_object >, Rcpp::DataFrame = Rcpp::DataFrame]' quotes.cpp:58:26:   instantiated from here C:/R/R-3.0.1/library/Rcpp/include/Rcpp/internal/wrap.h:474:11: error: invalid conversion from 'long long int' to 'SEXP' [-fpermissive] make: <em>*</em> [quotes.o] Error 1 . </p>
  
  <p>Is there a way to add a vector of this type into a DataFrame?</p>