Exclude function from autocompleting?



Is there a way to prevent an exported function from being autocompleted in the Rstudio IDE?

In particular, I want to deprecate a function in a package. For sometime, I still need to export that function in the package NAMESPACE, but I would like to prevent it from showing up in auto completion so that it doesn’t appear as a suggestion for any new code that is written.

Is there an easy way to do this?

(as a side note, I’m not sure if this belongs under the Rstudio IDE category or devtools package development. admins, please feel free to move)


There isn’t, but I also think it would be nice if the IDE had more special behaviours for deprecated functions.


Thats what I was afraid of. Thanks for confirming!

If this ever does become a feature of Rstudio, hopefully it will work with base::.Deprecated()