Error while trying to use reprex from CodeServer

Hi again,

As I want to conform to the rules of the forum, I decided to use the reprex package to report relevant code in my questions.

I am facing errors when using reprex as instructed.

Here is the context:

  • I am using a self-hosted CodeServer (latest version) hosted on an AlmaLinux 9.x server.
  • The editor is, obviously, a version of VS Code with the REditorSupport extension activated
  • I am using mutagen to seamlessly integrate CodeServer and my local environment -- works perfectly
  • I have installed xclip on both the server and my work desktop.

Here is what happens when I follow the standard procedure:

  1. I write some code I would like to attach to a post
  2. I copy it
  3. I switch to the R Terminal panel in CodeServer/VS Code
  4. I get this error:
Error in switch(where, expr = stringify_expression(x_expr), clipboard = ingest_clipboard(),  : 
  EXPR must be a length 1 vector

Actually, the error is the same whether the code is simple or more complex -- the following fails:

print("Hello world!")

Thanks,
Stephen