[Rcpp-devel] xts inputs and outputs for Rcpp translation

Hideyoshi Maeda hideyoshi.maeda at gmail.com
Thu Feb 6 14:54:59 CET 2014

Furthermore, when trying to compile the function createXts(), by coping and pasting it into a file, and then Rcpp::sourceCpp(‘file.cpp’), given in the link (http://gallery.rcpp.org/articles/accessing-xts-api/), it provides the following error…

Error in dyn.load("/var/folders/cj/d05h2g2938q7yb5rhp9rwx800000gn/T//RtmpjfmSg9/sourcecpp_157729b6a1bf/sourceCpp_33663.so") : 
  unable to load shared object '/var/folders/cj/d05h2g2938q7yb5rhp9rwx800000gn/T//RtmpjfmSg9/sourcecpp_157729b6a1bf/sourceCpp_33663.so':
  dlopen(/var/folders/cj/d05h2g2938q7yb5rhp9rwx800000gn/T//RtmpjfmSg9/sourcecpp_157729b6a1bf/sourceCpp_33663.so, 6): Symbol not found: __ZNK4Rcpp7RObject4attrERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE
  Referenced from: /var/folders/cj/d05h2g2938q7yb5rhp9rwx800000gn/T//RtmpjfmSg9/sourcecpp_157729b6a1bf/sourceCpp_33663.so
  Expected in: flat namespace
 in /var/folders/cj/d05h2g2938q7yb5rhp9rwx800000gn/T//RtmpjfmSg9/sourcecpp_157729b6a1bf/sourceCpp_33663.so

Does anybody else get this?

On 6 Feb 2014, at 13:29, Hideyoshi Maeda <hideyoshi.maeda at gmail.com> wrote:

> I was aware that an xts object is just a NumericMatrix with a few attributes and index attached, but was wondering if anybody could please give me a walkthrough example to show me how its done with some thing that has more than one column and also how one goes about subsetting columns of the xts object/matrix etc.
> any help as always would be greatly appreciated.
> Thanks
> On 6 Feb 2014, at 13:15, Darren Cook <darren at dcook.org> wrote:
>>> The closest I found for some help online was found here
>>> (http://gallery.rcpp.org/articles/accessing-xts-api/) but that seems
>>> to only give xts outputs rather than taking in xts inputs. 
>> I think the key point being shown there is that an xts object is just a
>> NumericMatrix with a few attributes attached.  (Or a NumericVector if it
>> is a single-column xts object.)
>> If you've never poked around in xts internals this is probably going to
>> be a bit painful ;-)
>> Darren
>> -- 
>> Darren Cook, Software Researcher/Developer
>> http://dcook.org/work/ (About me and my work)
>> http://dcook.org/blogs.html (My blogs and articles)
>> _______________________________________________
>> Rcpp-devel mailing list
>> Rcpp-devel at lists.r-forge.r-project.org
>> https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20140206/2e450849/attachment.html>

More information about the Rcpp-devel mailing list