The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
R Scripting issues...
hi,
I did a simple R script print("Hello World!") and tried to run it, but I got an error:
Oct 2, 2016 9:21:10 AM SEVERE: Process failed: The script could not be parsed.
Oct 2, 2016 9:21:10 AM SEVERE: Here:
Oct 2, 2016 9:21:10 AM SEVERE: Process[1] (Process)
Oct 2, 2016 9:21:10 AM SEVERE: subprocess 'Main Process'
Oct 2, 2016 9:21:10 AM SEVERE: ==> +- Execute R[1] (Execute R)
I don't know why, but I have correctly entered the path to the RScript.exe in the Preferences...
With the Rscript tutorial, I get the error:
The script could not be parsed. Please check your R Script.
I dont know whats wrong..?
Tagged:
0
Answers
The error indicates a problem with your script itself. Please post your XML process.
Also having error similar to above:
Oct 25, 2016 10:37:59 AM SEVERE: Process failed: The script could not be parsed.
Oct 25, 2016 10:37:59 AM SEVERE: Here:
Oct 25, 2016 10:37:59 AM SEVERE: Process[1] (Process)
Oct 25, 2016 10:37:59 AM SEVERE: subprocess 'Main Process'
Oct 25, 2016 10:37:59 AM SEVERE: ==> +- Execute R[1] (Execute R)
I tried using the built-in tutorial process on generating density function using R with the ff sample R script:
rm_main = function()
{
x <- seq(from= -5, to= 5, length.out =1000)
dn <- dnorm(x)
de <- dexp(x)
dc <- dcauchy(x)
dn3 <- dnorm(x, sd=3)
result <- data.frame(
id =x,
StandardNormalDistribution = dn,
NormalDistribution = dn3,
ExponentialDistribution =de,
CauchyDistribution= dc
)
return(result)
}
The '[..] script could not be parsed.' error will be thrown if the R method which reads the user script failed. You should get a more detailed description about R error by opening the Log Panel. There should be some output in regard to the error directly above the process failed error message.