Open szcf-weiya opened 10 months ago
Can you try using the most recent version of RCall (0.13.17)? I don't get an error message with RCall 0.13.17 and R 4.2. I'm guessing it's easier to upgrade RCall than R and the relevant part of the R printing source hasn't changed:
if (!is.na(cv <- x$cv))
cat(if (cv)
"PRESS(l.o.o. CV): "
else "GCV: ", format(x$cv.crit, digits = digits), "\n",
sep = "")
I tried
Both throw the same error message
I encounter the problem when passing a boolean variable to
smooth.spline
.It works well if with R's own boolean variable
TRUE
The error message indicates that it failed at the
print.smooth.spline
step (https://github.com/wch/r-source/blob/1af6b4aa417e106d63687992e229f461d45a30d9/src/library/stats/R/smspline.R#L319-L321)The fitting procedure is OK. And if I append
;
to hide the message, no error is thrown,I'm quite curious about why the error is triggered. How should we fix it?
I am using Julia 1.8.1 + RCall v0.13.14 (R3.6.3)