sasjs / server

Build Apps on Base SAS

Home Page:https://server.sasjs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Running R code on Windows throws Error: '\U' used without hex digits in character string starting "'C:\U"

jbodart-argenx opened this issue ยท comments

Running SASjs studio dektop mode on windows
code: cat("Hello R\n")
log:

Error: '\U' used without hex digits in character string starting "'C:\U"
Execution halted

When running the generated code.r file in terminal, the following output seems to imply the error comes from non-doubling the back-slashes when setting the value of ._SASJS_WEBOUT_HEADERS:

C:\Users\jbodart>"C:\Program Files\R\R-4.2.0\bin\R.exe" -f "C:\Users\jbodart\tools\sasjs-0.20.0\sessions\20220918163440-53719-1663518880554\code.r"

R version 4.2.0 (2022-04-22 ucrt) -- "Vigorous Calisthenics"
Copyright (C) 2022 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

>
> # runtime vars
> ._debug <- '131'
>
>
> # dynamic user-provided vars
>
> ._SASJS_SESSION_PATH <- 'C:\\Users\\jbodart\\tools\\sasjs-0.20.0\\sessions\\20220918163440-53719-1663518880554';
> ._WEBOUT <- 'C:\\Users\\jbodart\\tools\\sasjs-0.20.0\\sessions\\20220918163440-53719-1663518880554\\webout.txt';
> ._SASJS_WEBOUT_HEADERS <- 'C:\Users\jbodart\tools\sasjs-0.20.0\sessions\20220918163440-53719-1663518880554\stpsrv_header.txt';
Error: '\U' used without hex digits in character string starting "'C:\U"
Execution halted

C:\Users\jbodart>

๐ŸŽ‰ This issue has been resolved in version 0.21.1 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€