Hi,
If there is some error i encountered in gretl using R, like running pairs.panels without
loading psych package, even after corrected the code, the old mistake is recycled.
<gretl>
foreign language=R --send-data
pacman::p_load(psych, dplyr)
df = gretldata
head(df)
pairs.panels(select(df, 1:4))
end foreign
</gretl>
output:
gretl version 2026b
Current session: 2026-09-26 22:37
? foreign language=R --send-data
? pacman::p_load(psych, dplyr)
? df = gretldata
? head(df)
? pairs.panels(select(df, 1:4))
? end foreign
Error in gretl.get.data() : could not find function "gretl.get.data"
Error in pairs.plot(df[, 1:4]) : could not find function "pairs.plot"
Error in pairs.plot(df[, 1:4]) : could not find function "pairs.plot"
Error in select(df, 1:4) : could not find function "select"
Error in UseMethod("select") :
no applicable method for 'select' applied to an object of class
"c('mts', 'ts', 'matrix', 'array')"
Error in UseMethod("select") :
no applicable method for 'select' applied to an object of class
"c('mts', 'ts', 'matrix', 'array')"
In addition: Warning message:
In par(old.par) : calling par(new=TRUE) with no plot
The process cannot access the file because it is being used by another process.
Error executing script: halting
> end foreign
Show replies by date