• new C-level function R_remove_weights