0

Rcpp::DataFrame pData =pheno.slot("data")

This fails on clang++ but succeeds with g++

error: conversion from 'Rcpp::SlotProxyPolicy<Rcpp::S4_Impl<PreserveStorage> >::SlotProxy' to 'Rcpp::DataFrame' (aka 'DataFrame_Impl<PreserveStorage>') is ambiguous
            Rcpp::DataFrame fsdata = fspd.slot("data");
                            ^        ˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜˜
John Paul
  • 12,196
  • 6
  • 55
  • 75
Mike Jiang
  • 209
  • 1
  • 2
  • 10
  • If you want to submit a bug report, this is where: https://github.com/RcppCore/Rcpp/issues – Romain Francois Sep 22 '14 at 18:31
  • 1
    And if you want to work around it -- explicitly wrap the slot, e.g. `Rcpp::DataFrame fsdata = wrap(fspd.slot("data"));`. Or `Rcpp::DataFrame fsdata = static_cast(fspd.slot("data"));`. – Kevin Ushey Sep 22 '14 at 23:57
  • I did this `Rcpp::RObject fspdObj = fspd.slot("data");Rcpp::DataFrame fsdata = Rcpp::DataFrame(fspdObj.get__());` and it worked, which may essentially the same as what @KevinUshey suggested. – Mike Jiang Sep 23 '14 at 22:07

0 Answers0