Thanks @pieterjanvc
I am getting this:
> system("wsl ls ./")
T[1] 65535
I tried more commands like this:
> system("wsl --list")
W[1] 0
> system("wsl --help")
C[1] 65535
EDIT: More digging into wsl, I found out that the default system was an old and defuncts Centos installation. Setting the default wsl session to be Ubuntu, everything is working as expected (including the terminal).
Can you also give me an example of how to use the system call directly? Would it be possible to output the plots to the plot pane?
Thank you very much for the support!