I created a fork with the changes including a different snapshot for the renv.lock file, a different R script that returns a plot type object (tested locally) and then some name changes to the .yml file. Should work the same right?
But I went through repetitive runs, only to find that the job halts on the same curl installation failure: (I suppose the separate section in activation.R does not fix this at the moment)

Error: Error: install of package 'curl' failed [error code 1]
Traceback (most recent calls last):
13: renv::restore()
12: renv_restore_run_actions(project, diff, current, lockfile, rebuild)
11: renv_install(records)
10: renv_install_staged(records)
9: renv_install_default(records)
8: handler(package, renv_install_impl(record))
7: renv_install_impl(record)
6: withCallingHandlers(renv_install_package_local(record), error = function(e) {
vwritef("\tFAILED")
writef(e$output)
})
5: renv_install_package_local(record)
4: renv_install_package_local_impl(package, path)
3: r_cmd_install(package, path)
2: r_exec_error(package, output, "install", status)
1: stop(error)
Error installing package 'curl':
================================
* installing to library ‘/__w/_temp/Library/.renv/1’
* installing *source* package ‘curl’ ...
** package ‘curl’ successfully unpacked and MD5 sums checked
** using staged installation
Package libcurl was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcurl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcurl' found
Package libcurl was not found in the pkg-config search path.
Perhaps you should add the directory containing `libcurl.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libcurl' found
Using PKG_CFLAGS=
Using PKG_LIBS=-lcurl
------------------------- ANTICONF ERROR ---------------------------
Configuration failed because libcurl was not found. Try installing:
* deb: libcurl4-openssl-dev (Debian, Ubuntu, etc)
* rpm: libcurl-devel (Fedora, CentOS, RHEL)
* csw: libcurl_dev (Solaris)
If libcurl is already installed, check that 'pkg-config' is in your
PATH and PKG_CONFIG_PATH contains a libcurl.pc file. If pkg-config
is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'
--------------------------------------------------------------------
ERROR: configuration failed for package ‘curl’
* removing ‘/__w/_temp/Library/.renv/1/curl’
Execution halted
Error: Process completed with exit code 1.
I tried a pre-emptive installation (running sudo apt-get install libcurl4-openssl-dev prior to running renv::restore()) for libcurl but that doesn't work as well, which I suppose is because R can't find it?
I created a fork with the changes including a different snapshot for the
renv.lockfile, a different R script that returns a plot type object (tested locally) and then some name changes to the.ymlfile. Should work the same right?But I went through repetitive runs, only to find that the job halts on the same

curlinstallation failure: (I suppose the separate section inactivation.Rdoes not fix this at the moment)I tried a pre-emptive installation (running
sudo apt-get install libcurl4-openssl-devprior to runningrenv::restore()) forlibcurlbut that doesn't work as well, which I suppose is because R can't find it?