RSelenium::rsDriver() not working as expected.

If I execute your code

rD <- RSelenium::rsDriver(
    port = 4444L,
    browser = c("firefox"),
    version = "latest",

I get

Error: '...' used in an incorrect context

which suggest that your displayed code does not match your displayed output.

Please see FAQ: How to do a minimal reproducible example ( reprex ) for beginners for how to avoid this.

When I removed the , ... part it worked for me on Windows10 after I gave Windows Defender permission to do the connect.