It seems that there is an edge case where ess-r-package--find-package-name fails and returns Maximum buffer size exceeded.
To reproduce this issue with ESS enabled:
- create a new directory named
description under some folder, say ~/foo/
- run
M-x shell and change the directory by cd ~/foo
- run
C-x C-f or M-x, etc. under the directory ~/foo
The echo area would show "Maximum buffer size exceeded" and prevent any further action. I tested that the error occurs on MacOS. For Linux machines, the directory has to be named in uppercase (DESCRIPTION) to trigger the error.
It is a minor issue and can be avoided by removing/renaming the directory. It would be great if it could be fixed though.