How to increase the memory allocation after R version 4.2

Hi Rstudio Community,

I am asking a question regarding the removal of a function "memory.limit()" in base-r.

After R version 4.2.0, this function is no longer supported.
(See this link for more info:[Rd] R 4.2.0 is released (ethz.ch))

Does this mean we cannot increase the memory allocation anymore? Or does this mean after this version, R can increase the memory allocation automatically so that we need not worry about this? Since this version is relatively new, I could not find the solution for this issue.
Also, I would like to know if there is a package that does the same job as memory.limit().

I am looking forward to your reponse.