SYMPTOM:
When running a previously working report with an R metric, it suddenly starts displaying blank values for the R metric as shown below.

When this issue occurs, all the R metrics in other reports also show blank values until the Strategy Intelligence Server is restarted.
If a tryCatch function is used, the following errors may be captured in the DSSErrors.log and RscriptErrors.log:
DSSError.log
[Analytical Services][Error][0x80042425] Analytical Engine Error. Apply function failed. Internal error [Analytical Services][Error][0x80042434] Analytical Engine plug-in function error: [CRFPCommonNNGRN::ExRScript: R script execution failed: all connections are in use] R script execution failed: all connections are in use [Analytical Services][Error][0x80042434] Analytical Engine plug-in function error: [CRSupport::ReadScript: The expression readLines([script filepath]) failed evaluation. Please check _RScriptFile parameter setting.]
CRFPCommonNNGRN::ExRScript: R script execution failed: all connections are in use CRSupport::ReadScript: The expression readLines([script filepath]) failed evaluation. Please check _RScriptFile parameter setting.
con <- file("foo")
open(con)
on.exit(close(con), add=TRUE)