Re: [R-SIG-Mac] Problem with createDataPartition

2021-08-10 Thread RoqueRichard via R-SIG-Mac
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  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  
>> wrote:
>> 
>>> RoqueRichard  
>>>   on Thu, 5 Aug 2021 12:54:36 +0800 writes:
>> 
>> Dear Richard,
>> you sent all this to   r-sig-mac-ow...@r-project.org
>> 
>> but you really should re-send it to the mailing list, i.e.
>> 
>> r-sig-mac@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
>> 
> 

___
R-SIG-Mac mailing list
R-SIG-Mac@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-mac


Re: [R-SIG-Mac] Problem with createDataPartition

2021-08-09 Thread Simon Urbanek


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  
> wrote:
> 
>> RoqueRichard  
>>on Thu, 5 Aug 2021 12:54:36 +0800 writes:
> 
> Dear Richard,
> you sent all this to   r-sig-mac-ow...@r-project.org
> 
> but you really should re-send it to the mailing list, i.e.
> 
> r-sig-mac@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
> 

___
R-SIG-Mac mailing list
R-SIG-Mac@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-mac