On Thu, 24 Aug 2023 10:56:00 +0530 Ashim Kapoor <ashimkap...@gmail.com> wrote:
> When I open a terminal, type R and run my code, it runs fine. When I > start Emacs, start an inferior R process using ESS, the error comes > back. Thankfully, in both of these cases you get an interactive R session. Compare sessionInfo() outputs. Use traceback(), options(error = recover) and other tricks described in help(browser) and the free book The R Inferno [*] to find out (1) which function is trying to eval(); (2) what is being evaluated (what does predvars contain?), and (3) what do the environments actually contain (what is `data`? what is `env`? Use ls(env) if it's an environment) -- Best regards, Ivan [*] https://www.burns-stat.com/documents/books/the-r-inferno/ ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.