Enrico Schumann wrote/hat geschrieben on/am 31.01.2025 07:47:
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
Dear Enrico, thank you for your suggestion. I have (setq inferior-R-program-name "d:/rw442/bin/x64/rterm.exe") in my .emacs . Now I tried your proposal, but did not note any difference. In general I don't have problems with ess and R, it's just the command "library(XLConnect)". That leads to an immediate quit of the R-session. As mentioned, I can call library(XLConnect) in a batch execution, and for now I do it that way, if I need XLConnect. In future I will probably use openxlsx, which seemingly works for me. best regards, Heinz ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/ess-help
