I want to replace the default match()
function with fmatch()
which is faster. The following code works in R console
match<-fmatch
unlockBinding('match', baseenv())
assign("match", fastmatch::fmatch, envir = baseenv())
However, when I put either piece code in the Rprofile.site, it always gives an error. Does anyone have experience with this?