Giter VIP home page Giter VIP logo

Comments (8)

urbach avatar urbach commented on August 25, 2024

so you mean an additional parameter?

I usually run Rscript...

from hadron.

kostrzewa avatar kostrzewa commented on August 25, 2024

I usually run Rscript...

That doesn't really work for me since my drivers are themselves functions, I guess I could write further R scripts which call the drivers, rather than calling them "interactively". I guess that would even be a good way to keep track of the exact parameters used for a given analysis. Lemme think about it and I'l get back to you.

so you mean an additional parameter?

I guess so, but more usefully it could also be done through the options() framework, with the default as TRUE and this can then be handled locally for the various cases where you've used interactive()

if( (is.null(getOption("hadron.interactive")) || getOption("hadron.interactive")) && interactive()) { x11() }

or something like that. The is.null() would ensure backwards compatibility.

from hadron.

kostrzewa avatar kostrzewa commented on August 25, 2024

I would really like to re-iterate this point. I don't think that a plot routine should open new devices...

from hadron.

urbach avatar urbach commented on August 25, 2024

I don't see, why not. There is no other way to have multiple X11 plots opened by a single plot function. However, I see your point. So, what about something like the following additional condtions to interactive()

grepl("X11", names(dev.cur()), ignore.case=TRUE) || grepl("null", names(dev.cur()), ignore.case=TRUE)

to only open a new window if there is no other driver used than X11?

from hadron.

urbach avatar urbach commented on August 25, 2024

See commit 82aed14 ...

from hadron.

urbach avatar urbach commented on August 25, 2024

in urbach/hadron master branch

from hadron.

urbach avatar urbach commented on August 25, 2024

this is fixed now, isn't it?

from hadron.

kostrzewa avatar kostrzewa commented on August 25, 2024

Yes, I think so, I'll close the issue.

from hadron.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.