I’m having a small issue when printing results from my R code to the console, during the execution in RCode : all strings are surrounded by additionnal characters, it makes things impossible to read…
We have never run into that kind of behavior before. Do basic strings operations like this work?:
> test <- "test"
> test
> print("test")
> cat("test\n")
It sounds like your strings contains some kind of invalid characters that renders like this. Do you read these strings from a file or use a specific function to create them? Can you create a minimal reproducible example for us to try please?
I just tested on an English Windows and could not reproduce. You can provide a minimal R code example I could run on my computer to reproduce your issue?
Ohhh I’m sorry you wrote RCode in your very first post so I was testing everything in RCode. RCode is the editor/IDE and RPGM is the software executing the pgm files.
I was able to reproduce in RPGM 3.3.3 yes, this is due to a breaking change since R 4.2.0 on Windows which changed how R handles character encoding. We have already fixed this for the next upcoming RPGM version scheduled for February.
So if you don’t want to wait until next month for RPGM 4.0.0, you can rollback your R version to R 4.1.3 or an older version and it should work.
Hi William !
Thank you very much for your quick reply and confirmation on my issue.
I can’t select my underlying R version freely, but I’ll happily wait for the next release of RPGM !