[sage-support] Re: Plotting with R in A Sage Cell

2017-08-21 Thread Thomas Judson
Looks okay to me. Thanks, Tom On Sunday, August 20, 2017 at 7:09:31 PM UTC-5, Andrey Novoseltsev wrote: > > On Sunday, 6 August 2017 22:58:20 UTC-6, Andrey Novoseltsev wrote: >> >> The next problem is that if a linked cell does not create a new plot, >> then the old one will be shown again - si

[sage-support] Re: Plotting with R in A Sage Cell

2017-08-20 Thread Andrey Novoseltsev
On Sunday, 6 August 2017 22:58:20 UTC-6, Andrey Novoseltsev wrote: > > The next problem is that if a linked cell does not create a new plot, then > the old one will be shown again - since the file is still there. > This problem also seems to be solved, please report if you discover any new issue

[sage-support] Re: Plotting with R in A Sage Cell

2017-08-06 Thread Andrey Novoseltsev
Now http://faculty.sfasu.edu/judsontw/math-s304/section-16.html works fine for me - I don't enforce permission on user files except for group readable (otherwise the web server will not be able to serve them) and there is a timestamp added to the name to force browser to load a new version. The

[sage-support] Re: Plotting with R in A Sage Cell

2017-08-06 Thread Andrey Novoseltsev
There is one problem after another... The line I've mentioned earlier https://github.com/sagemath/sagecell/blob/master/js/session.js#L327 saves and shows the default R plots whose names start with Rplot. This causes read only permissions on files via https://github.com/sagemath/sagecell/blob/maste

[sage-support] Re: Plotting with R in A Sage Cell

2017-07-21 Thread Thomas Judson
Yes, I am sure that you have hit on the problem. Let me know what you come up with. On Wednesday, July 19, 2017 at 1:23:00 PM UTC+2, Thomas Judson wrote: > > The following code works in CoCalc > > cases <- c(36, 531, 4233, 8682, 7164, 2229, 600, 164, 57, 722, 1517, 1828, > 1539, 2416, 3148, 346

[sage-support] Re: Plotting with R in A Sage Cell

2017-07-20 Thread Andrey Novoseltsev
On Thursday, 20 July 2017 04:24:50 UTC-6, Thomas Judson wrote: > > I am pretty sure that this is an R problem that occurs because of linked > cells. Look at > http://faculty.sfasu.edu/judsontw/math-s304/section-16.html. The first > plot works fine, but somehow I need to clear the previous grap

[sage-support] Re: Plotting with R in A Sage Cell

2017-07-20 Thread Thomas Judson
I am pretty sure that this is an R problem that occurs because of linked cells. Look at http://faculty.sfasu.edu/judsontw/math-s304/section-16.html. The first plot works fine, but somehow I need to clear the previous graphics when I create a new plot. I have tried dev.off() and graphics.off(

[sage-support] Re: Plotting with R in A Sage Cell

2017-07-19 Thread Andrey Novoseltsev
On Wednesday, 19 July 2017 05:23:00 UTC-6, Thomas Judson wrote: > > The following code works in CoCalc > > cases <- c(36, 531, 4233, 8682, 7164, 2229, 600, 164, 57, 722, 1517, 1828, > 1539, 2416, 3148, 3465, 1440) > deaths <- c(0, 0, 130, 552, 738, 414, 198, 90, 56, 50, 71, 137, 178, 194, > 290,