Am 08.03.2018 um 18:08 schrieb Artur T.:
Dear all,
I want to call an R function for drawing stacked histograms using
gretl's foreign block. As only numeric values (scalar, matrix) can be
passed to R, I first write a temporary txt-file containing the string
for the path+file-name for the plot into $dotdir. Then I call the R
function and read-in the txt-file.
fname <-
paste(readLines("/home/at/.gretl/tmpRhist.txt"),
Don't know if this would solve your problem (actually it probably
shouldn't), but gretl's dotdir path is available inside the foreign R
environment as 'gretl.dotdir', as mentioned (only in a footnote) in ch.
39 of the guide.
Also, maybe it's safer to define the function HIST_R before you use it,
that is, move the foreign block up? (But I'm not sure if it's actually
necessary here.)
good luck,
sven