Cause : While executing R node/R script , if errors with :Failed to execute R script . Runtime Evaluation Error ; Error in library("xyz"): there is no package called ['xyz'] as shown below the cause is that the R code uses a package that has not been installed in R. For example, the below R code uses two packages : sm and tsDyn
Resolution: To resolve this error, launch RGUI or R console and select Packages >>Install package(s)..
Select a CRAN Mirror for downloading the package (any of your choice) and then select the package(s) that is used in the R code and click OK.
Re-launch Statistica and run the R Node/ R script to completion.