[ESS] change error-tolerance of ESS

Enrico Schumann e@ @end|ng |rom enr|co@chum@nn@net
Fri Jan 31 07:47:15 CET 2025


On Tue, 21 Jan 2025, Heinz Tuechler via ESS-help writes:

> Dear All,
>
> having a problem with XLConnect I wonder, if one can change the
> error-tolerance of ESS.
> My present problem is that executing library(XLConnect) in R 4.4.2 on
> Windows leads to an immediate end of the R-session if done in emacs 26.3
> with ESS 18.10.2 .
> If executed with rterm.exe XLConnect is loaded without any error or
> warning message.
> After a call like
> wb <- loadWorkbook("writeWorksheet.xlsx", create = TRUE)
> the following messages are displayed:
>
> 2025-01-21T19:35:19.801Z main ERROR Unable to locate configured
> LoggerContextFactory
> org.apache.logging.log4j.simple.SimpleLoggerContextFactory
> 2025-01-21T19:35:19.801Z main ERROR Log4j2 could not find a logging
> implementation. Please add log4j-core to the classpath. Using
> SimpleLogger to log to the console...
>
> but the call is executed without problems. Obviously rterm.exe tolerates
> the error. Is there some setting for ESS to behave as rterm.exe?

You could try telling ESS to use a specific version of
rterm as the R process; put something like this in your
init file:

    (setq-default inferior-R-program-name
                  "C:/Program Files/R/R-4.4.2/bin/x64/Rterm.exe")

(Adjust the path as necessary, of course.)

kind regards
    Enrico

> It would, of course, be desirable to eliminate the error, but I did not
> succeed. And seemingly XLConnect works as expected despite the error
> message.
>
> best regards,
>
> Heinz
>

-- 
Enrico Schumann
Lucerne, Switzerland
https://enricoschumann.net



More information about the ESS-help mailing list