25
SciViews GUI developments for R using tcltk2 and other SciViews R packages Philippe Grosjean <[email protected]> Université de Mons Laboratoire d’Écologie numérique des Milieux aquatiques R Belgium Meeting Group, Nov. 2013 Ph. Grosjean (EcoNum, UMONS) R GUIs with SciViews RBelgium 1 / 10

Université de Mons R Belgium Meeting Group, Nov. 2013files.meetup.com/2968362/RBelgium2012.pdf · Overview Short presentation - my contributions to R R GUIs - status Native dialog

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Université de Mons R Belgium Meeting Group, Nov. 2013files.meetup.com/2968362/RBelgium2012.pdf · Overview Short presentation - my contributions to R R GUIs - status Native dialog

SciViewsGUI developments for R using tcltk2 and other SciViews R packages

Philippe Grosjean <[email protected]>

Université de MonsLaboratoire d’Écologie numérique des Milieux aquatiques

R Belgium Meeting Group, Nov. 2013

Ph. Grosjean (EcoNum, UMONS) R GUIs with SciViews RBelgium 1 / 10

Page 2: Université de Mons R Belgium Meeting Group, Nov. 2013files.meetup.com/2968362/RBelgium2012.pdf · Overview Short presentation - my contributions to R R GUIs - status Native dialog

Overview

Short presentation - my contributions to R

R GUIs - status

Native dialog boxes using svDialogs

More flexible dialog boxes with tcltk2

A GUI for beginneRs and teacheRs: SciViews-K and Komodo

Conclusions

Ph. Grosjean (EcoNum, UMONS) R GUIs with SciViews RBelgium 2 / 10

Page 3: Université de Mons R Belgium Meeting Group, Nov. 2013files.meetup.com/2968362/RBelgium2012.pdf · Overview Short presentation - my contributions to R R GUIs - status Native dialog

Presentation Who am I?

About the speaker...

Agronomic engineer (ULB)

Teacher in biostatistics and marine ecology at UMONS

Head of the Numerical Ecology of Aquatic Systems lab (seehttp://econum.umons.ac.be/)

Research in plankton images automatic classification (image analysis and machinelearning, Zoo/PhytoImage software http://www.sciviews.org/zooimage)

Ecophysiology of hermatypic (reef-building) corals related to climate change

More recently, I started a projet to study Open Source software ecosystems withmy colleague Tom Mens (software evolution lab)

Ph. Grosjean (EcoNum, UMONS) R GUIs with SciViews RBelgium 3 / 10

Page 4: Université de Mons R Belgium Meeting Group, Nov. 2013files.meetup.com/2968362/RBelgium2012.pdf · Overview Short presentation - my contributions to R R GUIs - status Native dialog

Presentation Who am I?

About the speaker...

Agronomic engineer (ULB)

Teacher in biostatistics and marine ecology at UMONS

Head of the Numerical Ecology of Aquatic Systems lab (seehttp://econum.umons.ac.be/)

Research in plankton images automatic classification (image analysis and machinelearning, Zoo/PhytoImage software http://www.sciviews.org/zooimage)

Ecophysiology of hermatypic (reef-building) corals related to climate change

More recently, I started a projet to study Open Source software ecosystems withmy colleague Tom Mens (software evolution lab)

Ph. Grosjean (EcoNum, UMONS) R GUIs with SciViews RBelgium 3 / 10

Page 5: Université de Mons R Belgium Meeting Group, Nov. 2013files.meetup.com/2968362/RBelgium2012.pdf · Overview Short presentation - my contributions to R R GUIs - status Native dialog

Presentation Who am I?

About the speaker...

Agronomic engineer (ULB)

Teacher in biostatistics and marine ecology at UMONS

Head of the Numerical Ecology of Aquatic Systems lab (seehttp://econum.umons.ac.be/)

Research in plankton images automatic classification (image analysis and machinelearning, Zoo/PhytoImage software http://www.sciviews.org/zooimage)

Ecophysiology of hermatypic (reef-building) corals related to climate change

More recently, I started a projet to study Open Source software ecosystems withmy colleague Tom Mens (software evolution lab)

Ph. Grosjean (EcoNum, UMONS) R GUIs with SciViews RBelgium 3 / 10

Page 6: Université de Mons R Belgium Meeting Group, Nov. 2013files.meetup.com/2968362/RBelgium2012.pdf · Overview Short presentation - my contributions to R R GUIs - status Native dialog

Presentation Who am I?

About the speaker...

Agronomic engineer (ULB)

Teacher in biostatistics and marine ecology at UMONS

Head of the Numerical Ecology of Aquatic Systems lab (seehttp://econum.umons.ac.be/)

Research in plankton images automatic classification (image analysis and machinelearning, Zoo/PhytoImage software http://www.sciviews.org/zooimage)

Ecophysiology of hermatypic (reef-building) corals related to climate change

More recently, I started a projet to study Open Source software ecosystems withmy colleague Tom Mens (software evolution lab)

Ph. Grosjean (EcoNum, UMONS) R GUIs with SciViews RBelgium 3 / 10

Page 7: Université de Mons R Belgium Meeting Group, Nov. 2013files.meetup.com/2968362/RBelgium2012.pdf · Overview Short presentation - my contributions to R R GUIs - status Native dialog

Presentation Who am I?

About the speaker...

Agronomic engineer (ULB)

Teacher in biostatistics and marine ecology at UMONS

Head of the Numerical Ecology of Aquatic Systems lab (seehttp://econum.umons.ac.be/)

Research in plankton images automatic classification (image analysis and machinelearning, Zoo/PhytoImage software http://www.sciviews.org/zooimage)

Ecophysiology of hermatypic (reef-building) corals related to climate change

More recently, I started a projet to study Open Source software ecosystems withmy colleague Tom Mens (software evolution lab)

Ph. Grosjean (EcoNum, UMONS) R GUIs with SciViews RBelgium 3 / 10

Page 8: Université de Mons R Belgium Meeting Group, Nov. 2013files.meetup.com/2968362/RBelgium2012.pdf · Overview Short presentation - my contributions to R R GUIs - status Native dialog

Presentation Who am I?

About the speaker...

Agronomic engineer (ULB)

Teacher in biostatistics and marine ecology at UMONS

Head of the Numerical Ecology of Aquatic Systems lab (seehttp://econum.umons.ac.be/)

Research in plankton images automatic classification (image analysis and machinelearning, Zoo/PhytoImage software http://www.sciviews.org/zooimage)

Ecophysiology of hermatypic (reef-building) corals related to climate change

More recently, I started a projet to study Open Source software ecosystems withmy colleague Tom Mens (software evolution lab)

Ph. Grosjean (EcoNum, UMONS) R GUIs with SciViews RBelgium 3 / 10

Page 9: Université de Mons R Belgium Meeting Group, Nov. 2013files.meetup.com/2968362/RBelgium2012.pdf · Overview Short presentation - my contributions to R R GUIs - status Native dialog

Presentation My contributions to R

My contributions to R

Developer of specialized solutions in R since 15 yearse.g., Zoo/PhytoImage, FLR, ...

Consultant for IFREMER, AZTI, CEFAS, FAO, ChemCom, etc.

Maintainer of 11 R packages on CRAN: pastecs, SciViews, tcltk2, svDialogs,svGUI, svMisc, svSocket, svSweave, svTools, svUnit, svWidgets

Contributor or developer of packages on R-Forge: inlinedocs, RImageJ, mlearning,zooimage, phytoimage, seacarb, ...

GUIs on top of R for an easier use by beginneRs: Tinn-R and SciViews-K

Manager of http://www.r-project.org/GUI, and the R-SIG-GUI mailing list

Author and administrator of the official R Wiki site (http://wiki.r-project.org),and the R-SIG-WIKI mailing list

Responsible for the French translation of R

Ph. Grosjean (EcoNum, UMONS) R GUIs with SciViews RBelgium 4 / 10

Page 10: Université de Mons R Belgium Meeting Group, Nov. 2013files.meetup.com/2968362/RBelgium2012.pdf · Overview Short presentation - my contributions to R R GUIs - status Native dialog

Presentation My contributions to R

My contributions to R

Developer of specialized solutions in R since 15 yearse.g., Zoo/PhytoImage, FLR, ...

Consultant for IFREMER, AZTI, CEFAS, FAO, ChemCom, etc.

Maintainer of 11 R packages on CRAN: pastecs, SciViews, tcltk2, svDialogs,svGUI, svMisc, svSocket, svSweave, svTools, svUnit, svWidgets

Contributor or developer of packages on R-Forge: inlinedocs, RImageJ, mlearning,zooimage, phytoimage, seacarb, ...

GUIs on top of R for an easier use by beginneRs: Tinn-R and SciViews-K

Manager of http://www.r-project.org/GUI, and the R-SIG-GUI mailing list

Author and administrator of the official R Wiki site (http://wiki.r-project.org),and the R-SIG-WIKI mailing list

Responsible for the French translation of R

Ph. Grosjean (EcoNum, UMONS) R GUIs with SciViews RBelgium 4 / 10

Page 11: Université de Mons R Belgium Meeting Group, Nov. 2013files.meetup.com/2968362/RBelgium2012.pdf · Overview Short presentation - my contributions to R R GUIs - status Native dialog

Presentation My contributions to R

My contributions to R

Developer of specialized solutions in R since 15 yearse.g., Zoo/PhytoImage, FLR, ...

Consultant for IFREMER, AZTI, CEFAS, FAO, ChemCom, etc.

Maintainer of 11 R packages on CRAN: pastecs, SciViews, tcltk2, svDialogs,svGUI, svMisc, svSocket, svSweave, svTools, svUnit, svWidgets

Contributor or developer of packages on R-Forge: inlinedocs, RImageJ, mlearning,zooimage, phytoimage, seacarb, ...

GUIs on top of R for an easier use by beginneRs: Tinn-R and SciViews-K

Manager of http://www.r-project.org/GUI, and the R-SIG-GUI mailing list

Author and administrator of the official R Wiki site (http://wiki.r-project.org),and the R-SIG-WIKI mailing list

Responsible for the French translation of R

Ph. Grosjean (EcoNum, UMONS) R GUIs with SciViews RBelgium 4 / 10

Page 12: Université de Mons R Belgium Meeting Group, Nov. 2013files.meetup.com/2968362/RBelgium2012.pdf · Overview Short presentation - my contributions to R R GUIs - status Native dialog

Presentation My contributions to R

My contributions to R

Developer of specialized solutions in R since 15 yearse.g., Zoo/PhytoImage, FLR, ...

Consultant for IFREMER, AZTI, CEFAS, FAO, ChemCom, etc.

Maintainer of 11 R packages on CRAN: pastecs, SciViews, tcltk2, svDialogs,svGUI, svMisc, svSocket, svSweave, svTools, svUnit, svWidgets

Contributor or developer of packages on R-Forge: inlinedocs, RImageJ, mlearning,zooimage, phytoimage, seacarb, ...

GUIs on top of R for an easier use by beginneRs: Tinn-R and SciViews-K

Manager of http://www.r-project.org/GUI, and the R-SIG-GUI mailing list

Author and administrator of the official R Wiki site (http://wiki.r-project.org),and the R-SIG-WIKI mailing list

Responsible for the French translation of R

Ph. Grosjean (EcoNum, UMONS) R GUIs with SciViews RBelgium 4 / 10

Page 13: Université de Mons R Belgium Meeting Group, Nov. 2013files.meetup.com/2968362/RBelgium2012.pdf · Overview Short presentation - my contributions to R R GUIs - status Native dialog

Presentation My contributions to R

My contributions to R

Developer of specialized solutions in R since 15 yearse.g., Zoo/PhytoImage, FLR, ...

Consultant for IFREMER, AZTI, CEFAS, FAO, ChemCom, etc.

Maintainer of 11 R packages on CRAN: pastecs, SciViews, tcltk2, svDialogs,svGUI, svMisc, svSocket, svSweave, svTools, svUnit, svWidgets

Contributor or developer of packages on R-Forge: inlinedocs, RImageJ, mlearning,zooimage, phytoimage, seacarb, ...

GUIs on top of R for an easier use by beginneRs: Tinn-R and SciViews-K

Manager of http://www.r-project.org/GUI, and the R-SIG-GUI mailing list

Author and administrator of the official R Wiki site (http://wiki.r-project.org),and the R-SIG-WIKI mailing list

Responsible for the French translation of R

Ph. Grosjean (EcoNum, UMONS) R GUIs with SciViews RBelgium 4 / 10

Page 14: Université de Mons R Belgium Meeting Group, Nov. 2013files.meetup.com/2968362/RBelgium2012.pdf · Overview Short presentation - my contributions to R R GUIs - status Native dialog

Presentation My contributions to R

My contributions to R

Developer of specialized solutions in R since 15 yearse.g., Zoo/PhytoImage, FLR, ...

Consultant for IFREMER, AZTI, CEFAS, FAO, ChemCom, etc.

Maintainer of 11 R packages on CRAN: pastecs, SciViews, tcltk2, svDialogs,svGUI, svMisc, svSocket, svSweave, svTools, svUnit, svWidgets

Contributor or developer of packages on R-Forge: inlinedocs, RImageJ, mlearning,zooimage, phytoimage, seacarb, ...

GUIs on top of R for an easier use by beginneRs: Tinn-R and SciViews-K

Manager of http://www.r-project.org/GUI, and the R-SIG-GUI mailing list

Author and administrator of the official R Wiki site (http://wiki.r-project.org),and the R-SIG-WIKI mailing list

Responsible for the French translation of R

Ph. Grosjean (EcoNum, UMONS) R GUIs with SciViews RBelgium 4 / 10

Page 15: Université de Mons R Belgium Meeting Group, Nov. 2013files.meetup.com/2968362/RBelgium2012.pdf · Overview Short presentation - my contributions to R R GUIs - status Native dialog

Presentation My contributions to R

My contributions to R

Developer of specialized solutions in R since 15 yearse.g., Zoo/PhytoImage, FLR, ...

Consultant for IFREMER, AZTI, CEFAS, FAO, ChemCom, etc.

Maintainer of 11 R packages on CRAN: pastecs, SciViews, tcltk2, svDialogs,svGUI, svMisc, svSocket, svSweave, svTools, svUnit, svWidgets

Contributor or developer of packages on R-Forge: inlinedocs, RImageJ, mlearning,zooimage, phytoimage, seacarb, ...

GUIs on top of R for an easier use by beginneRs: Tinn-R and SciViews-K

Manager of http://www.r-project.org/GUI, and the R-SIG-GUI mailing list

Author and administrator of the official R Wiki site (http://wiki.r-project.org),and the R-SIG-WIKI mailing list

Responsible for the French translation of R

Ph. Grosjean (EcoNum, UMONS) R GUIs with SciViews RBelgium 4 / 10

Page 16: Université de Mons R Belgium Meeting Group, Nov. 2013files.meetup.com/2968362/RBelgium2012.pdf · Overview Short presentation - my contributions to R R GUIs - status Native dialog

Presentation My contributions to R

My contributions to R

Developer of specialized solutions in R since 15 yearse.g., Zoo/PhytoImage, FLR, ...

Consultant for IFREMER, AZTI, CEFAS, FAO, ChemCom, etc.

Maintainer of 11 R packages on CRAN: pastecs, SciViews, tcltk2, svDialogs,svGUI, svMisc, svSocket, svSweave, svTools, svUnit, svWidgets

Contributor or developer of packages on R-Forge: inlinedocs, RImageJ, mlearning,zooimage, phytoimage, seacarb, ...

GUIs on top of R for an easier use by beginneRs: Tinn-R and SciViews-K

Manager of http://www.r-project.org/GUI, and the R-SIG-GUI mailing list

Author and administrator of the official R Wiki site (http://wiki.r-project.org),and the R-SIG-WIKI mailing list

Responsible for the French translation of R

Ph. Grosjean (EcoNum, UMONS) R GUIs with SciViews RBelgium 4 / 10

Page 17: Université de Mons R Belgium Meeting Group, Nov. 2013files.meetup.com/2968362/RBelgium2012.pdf · Overview Short presentation - my contributions to R R GUIs - status Native dialog

R GUIs status GUI widgets usable with R

GUI widgets usable with R

Tk is an ancient and somehow phased-out GUI toolkit, first associated with the Tcllanguage, but now providing many more bindings, like R (tcltk package).

Gtk2 is the GUI toolkit used by Gnome. It is very well supported un Linux, but itonly run in X11 mode on Ma OS X and requires additional installs on Windows.The RGtk package provides bindings for R.

Qt is the GUI toolkit of KDE and is available for many platforms where its look &feel is (almost) native everywhere. The qtbase package allows for using it from R,but currently only on Linux (no Mac or Windows).

Various Java GUI toolkits are accessible through R - Java binding (RJava package)and JGR... Web interfaces exist also.

Ph. Grosjean (EcoNum, UMONS) R GUIs with SciViews RBelgium 5 / 10

Page 18: Université de Mons R Belgium Meeting Group, Nov. 2013files.meetup.com/2968362/RBelgium2012.pdf · Overview Short presentation - my contributions to R R GUIs - status Native dialog

R GUIs status GUI widgets usable with R

GUI widgets usable with R

Tk is an ancient and somehow phased-out GUI toolkit, first associated with the Tcllanguage, but now providing many more bindings, like R (tcltk package).

Gtk2 is the GUI toolkit used by Gnome. It is very well supported un Linux, but itonly run in X11 mode on Ma OS X and requires additional installs on Windows.The RGtk package provides bindings for R.

Qt is the GUI toolkit of KDE and is available for many platforms where its look &feel is (almost) native everywhere. The qtbase package allows for using it from R,but currently only on Linux (no Mac or Windows).

Various Java GUI toolkits are accessible through R - Java binding (RJava package)and JGR... Web interfaces exist also.

Ph. Grosjean (EcoNum, UMONS) R GUIs with SciViews RBelgium 5 / 10

Page 19: Université de Mons R Belgium Meeting Group, Nov. 2013files.meetup.com/2968362/RBelgium2012.pdf · Overview Short presentation - my contributions to R R GUIs - status Native dialog

R GUIs status GUI widgets usable with R

GUI widgets usable with R

Tk is an ancient and somehow phased-out GUI toolkit, first associated with the Tcllanguage, but now providing many more bindings, like R (tcltk package).

Gtk2 is the GUI toolkit used by Gnome. It is very well supported un Linux, but itonly run in X11 mode on Ma OS X and requires additional installs on Windows.The RGtk package provides bindings for R.

Qt is the GUI toolkit of KDE and is available for many platforms where its look &feel is (almost) native everywhere. The qtbase package allows for using it from R,but currently only on Linux (no Mac or Windows).

Various Java GUI toolkits are accessible through R - Java binding (RJava package)and JGR... Web interfaces exist also.

Ph. Grosjean (EcoNum, UMONS) R GUIs with SciViews RBelgium 5 / 10

Page 20: Université de Mons R Belgium Meeting Group, Nov. 2013files.meetup.com/2968362/RBelgium2012.pdf · Overview Short presentation - my contributions to R R GUIs - status Native dialog

R GUIs status GUI widgets usable with R

GUI widgets usable with R

Tk is an ancient and somehow phased-out GUI toolkit, first associated with the Tcllanguage, but now providing many more bindings, like R (tcltk package).

Gtk2 is the GUI toolkit used by Gnome. It is very well supported un Linux, but itonly run in X11 mode on Ma OS X and requires additional installs on Windows.The RGtk package provides bindings for R.

Qt is the GUI toolkit of KDE and is available for many platforms where its look &feel is (almost) native everywhere. The qtbase package allows for using it from R,but currently only on Linux (no Mac or Windows).

Various Java GUI toolkits are accessible through R - Java binding (RJava package)and JGR... Web interfaces exist also.

Ph. Grosjean (EcoNum, UMONS) R GUIs with SciViews RBelgium 5 / 10

Page 21: Université de Mons R Belgium Meeting Group, Nov. 2013files.meetup.com/2968362/RBelgium2012.pdf · Overview Short presentation - my contributions to R R GUIs - status Native dialog

R GUIs status More dialog boxes and GUI widgets with SciViews

More dialog boxes and GUI widgets with SciViews

SciViews provides a series of additional R packages. We will demonstrate heresvDialogs and tcltk2.

svDialogs

This package provides native and platform independent dialog boxes.

For more customized dialog boxes...

tcltk2

This package provides more Tk widgets and additional tools like Ttk themesmanipulation from R.

Ph. Grosjean (EcoNum, UMONS) R GUIs with SciViews RBelgium 6 / 10

Page 22: Université de Mons R Belgium Meeting Group, Nov. 2013files.meetup.com/2968362/RBelgium2012.pdf · Overview Short presentation - my contributions to R R GUIs - status Native dialog

R GUIs status SciViews-K

SciViews-K and Komodo

At UMONS, we teach biostatistics using SciViews-K.We develop and use SciViews http://www.sciviews.org/SciViews-K to help ourstudents to start working with R.

Ph. Grosjean (EcoNum, UMONS) R GUIs with SciViews RBelgium 7 / 10

Page 23: Université de Mons R Belgium Meeting Group, Nov. 2013files.meetup.com/2968362/RBelgium2012.pdf · Overview Short presentation - my contributions to R R GUIs - status Native dialog

R GUIs status SciViews-K

SciViews - componants

SciViews is made of several elements:

SciViews-R is a series of R packages to bring required functionalities to, say,Komodo and LYX

SciViews-K is an addons for the Open Source code editor Komodo Edit. It providestools to help create, manage and run R code.

SciViews-L is an addons for LYX (WYSIWYM text processor that creates LATEXdocuments) with Sweave and knitr integration.This presentation was made using SciViews-LYX !

Ph. Grosjean (EcoNum, UMONS) R GUIs with SciViews RBelgium 8 / 10

Page 24: Université de Mons R Belgium Meeting Group, Nov. 2013files.meetup.com/2968362/RBelgium2012.pdf · Overview Short presentation - my contributions to R R GUIs - status Native dialog

Conclusions Conclusions

Conclusions

We provide some additional R packages for R GUIs

Developing truly native and platform-independent GUIs for R is not an easy taskbecause:

R is not really designed from the ground for GUI useThere is a new version of R every 6 months, and it tends to break GUI things quite oftenLot of development and debugging required on each supported platform

Currently, developments in SciViews really depends on our limited free time,meaning we develop and maintain functions we need in our lab better than therest

There are relatively few GUI developers for R: skills required... and skilleduseRs/developeRs tend to ignore GUIs!

Ph. Grosjean (EcoNum, UMONS) R GUIs with SciViews RBelgium 9 / 10

Page 25: Université de Mons R Belgium Meeting Group, Nov. 2013files.meetup.com/2968362/RBelgium2012.pdf · Overview Short presentation - my contributions to R R GUIs - status Native dialog

Thank you !

Thank you for your attention !

Presentation made with :

LATEX

Beamer

R & Sweave

LYX & les additions SciViews-LYX / SciViews-R / SciViews-K

The UMONS beamer model by Christophe Troetsler, partly adapted

Cliparts from http://openclipart.org possibly modified using Gimp

Ph. Grosjean (EcoNum, UMONS) R GUIs with SciViews RBelgium 10 / 10