R: fix FUN argument in local.scan (#32).