[R-SIG-Mac] Problem with createDataPartition
RoqueRichard
r@roque03 @end|ng |rom |c|oud@com
Tue Aug 10 05:57:53 CEST 2021
Hi Simon and Martin,
Many thanks for your assistance and much appreciate it. The system is now working well
Have a good day!
Kind regards,
Richard
> On 10 Aug 2021, at 4:28 AM, Simon Urbanek <simon.urbanek using R-project.org> wrote:
>
> Richard,
>
> Rcpp has made an ABI-breaking change in 1.0.7 so you need to re-install all packages that use Rcpp (i.e. not only Rcpp itself but all other packages).
>
> One way to re-install all packages is to use something like
>
> install.packages(rownames(installed.packages()), type='binary')
>
> If you want to install only Rcpp dependencies then something like this should work:
>
> deps = tools:::CRAN_package_reverse_dependencies_with_maintainers("Rcpp")[,"Package"]
> have = rownames(installed.packages())
> install.packages(have[have %in% deps], type='binary')
>
> Cheers,
> Simon
>
>
>
>> On Aug 10, 2021, at 4:41 AM, Martin Maechler <maechler using stat.math.ethz.ch> wrote:
>>
>>>>>>> RoqueRichard
>>>>>>> on Thu, 5 Aug 2021 12:54:36 +0800 writes:
>>
>> Dear Richard,
>> you sent all this to r-sig-mac-owner using r-project.org
>>
>> but you really should re-send it to the mailing list, i.e.
>>
>> r-sig-mac using r-project.org
>>
>> Best,
>> Martin
>>
>>> Hi,
>>
>>> Im currently using R4.1.0 version on Mac OS. I tried using
>>> the createDataPartition function but got the following
>>> reply:
>>
>>>> test_index <- createDataPartition(y, times = 1, p = 0.5,
>>>> list = FALSE)
>>
>>> Error in split_indices(as.integer(splitv), attr(splitv,
>>> "n")) : function 'Rcpp_precious_remove' not provided by
>>> package ‘Rcpp'
>>
>>> Is the Rcpp outdated? If so, could you advise how to
>>> update Rcpp?
>>
>>> Thanks a lot for any assistance you can provide. Richard
>>
>
More information about the R-SIG-Mac
mailing list