Re: problem using R-Plot
Posted by
Aryeh Weiss on
Aug 25, 2020; 11:48am
URL: http://imagej.273.s1.nabble.com/problem-using-R-Plot-tp5023877p5023881.html
Hi Rocco and thank you for your reply.
On 25/08/2020 13:42, Rocco D'Antuono wrote:
> Hi Aryeh, just as confirmation I get the same error, the following is not yet
> a solution.
> I have tried the plugin and my guess is that the "tmp" folder doesn't have a
> file .png that the plugin expects to find in it.
> The error seems produced by the last line in this excerpt from "RPlot.java"
> on GitHub:
>
> /...
> String tmp = IJ.getDirectory("temp");
> tmp = tmp.replace("\\", "\\\\");
> ...
> String filename = "density_"+getStamp()+".png";
> IJ.open(tmp+filename);/
>
> I think the plugin stops when it doesn't find "filename" or cannot access
> the folder.
> As check, what do you get if you run as beanshell script the following
> lines?:
>
> /import ij.IJ;
> tmp = IJ.getDirectory("temp");
> tmp = tmp.replace("\\", "\\\\");
> print(tmp);/
>
> Is that folder visible/accessible for you?
When I run this script, it print out:
/tmp/
BTW, import does not work for me. I used auto-imports.
I used instead: importClass(Packages.ij.IJ)
Best regards
--aryeh
--
Aryeh Weiss
Faculty of Engineering
Bar Ilan University
Ramat Gan 52900 Israel
Ph: 972-3-5317638
FAX: 972-3-7384051
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html