Some commands return status 1 in R
R complains about timedatectl
Systemd is missing or it's not working
dbus or bus errors in R when using the library function
Stuff like this can happen in R:
Failed to create bus connection: No such file or directory
In system("timedatectl", intern = TRUE) :
running command 'timedatectl' had status 1
This relates to the timedatectl function which can fail in a containerised environment (and for practical purposes, all Workspaces, Apps, Models etc., in Domino are containerd/Docker environments). Most Docker environments do not run services, like dbus or systemd.
In your Environment's Dockerfile, add these commands to 'fix' R's dependence on timedatectl:
# Fix systemd conflict with timedatectl USER root RUN echo "TZ=$( cat /etc/timezone )" >> /etc/R/Renviron.site USER ubuntu
Alternatively, you can try to set TZ as an Environment variable or as a Project's Environment Variable to enable timedatectl to bypass the lack of dbus and systemd, however this does not always work for R and the addition to the Renviron.site file is a more robust solution.
This should work for any Domino image, in the rare case where /etc/timezone does not exist, please use timedatectl list-timezones on any linux box to find the TZ= value that matches your requirements.