From 28425283bdeb34fac01d1eeb9c8dd40f987934ea Mon Sep 17 00:00:00 2001 From: Johannes Ranke Date: Fri, 13 Oct 2017 09:34:15 +0200 Subject: Static documentation rebuilt by pkgdown --- GNUmakefile | 2 +- docs/articles/gmkin_manual.html | 42 ++++++++-------- docs/articles/index.html | 6 ++- docs/authors.html | 4 +- docs/index.html | 26 +++++----- docs/news/index.html | 4 +- docs/pkgdown.css | 91 +++++++++++++++++++++++++---------- docs/reference/FOCUS_2006.html | 24 ++++----- docs/reference/FOCUS_2006_Z.html | 22 ++++----- docs/reference/UBA_model_gallery.html | 14 +++--- docs/reference/gmkin.html | 61 +++++++++++------------ docs/reference/gmkinws.html | 22 +++++---- docs/reference/index.html | 90 ++++++++++++++++++++-------------- 13 files changed, 237 insertions(+), 171 deletions(-) diff --git a/GNUmakefile b/GNUmakefile index ef03b8c..a9a2ab6 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -85,7 +85,7 @@ drat: build dratwin: winbin "$(RBIN)/Rscript" -e "drat::insertPackage('$(WINBIN)', 'e:/git/drat/', commit = TRUE)" -r-forge: sd +r-forge: pd git archive master > $(PKGDIR)/gmkin.tar;\ cd $(RFDIR) && rm -r `ls` && tar -xf $(PKGDIR)/gmkin.tar;\ rm -r $(SDDIR)/*;\ diff --git a/docs/articles/gmkin_manual.html b/docs/articles/gmkin_manual.html index 44192df..8d07631 100644 --- a/docs/articles/gmkin_manual.html +++ b/docs/articles/gmkin_manual.html @@ -9,7 +9,7 @@ - @@ -53,7 +53,7 @@

Manual for gmkin

Johannes Ranke

-

2017-03-06

+

2017-10-13

@@ -61,13 +61,13 @@

- Introduction

+Introduction

The R add-on package gmkin provides a browser based graphical interface for performing kinetic evaluations of degradation data using the mkin package. While the use of gmkin should be largely self-explanatory, this manual may serve as a functionality overview and reference.

For system requirements and installation instructions, please refer to the gmkin homepage.

- Starting gmkin

+Starting gmkin

As gmkin is an R package, you need to start R and load the gmkin package before you can run gmkin. The latter can be achieved by entering the command

library(gmkin)

into the R console. This will also load the packages that gmkin depends on, most notably gWidgetsWWW2 and mkin. Loading the package only has to be done once after you have started R.

@@ -85,13 +85,13 @@

- Three column layout

+Three column layout

Since version 0.6.1, gmkin adheres to a three column layout. To the left, there are explorer areas for the available projects, datasets, kinetic models and the completed fits.

In the central, tabbed area, the projects, datasets, models and fits are defined. The area to the right is mainly for showing information intended to support the user, and results. However, it also contains a tab ‘Data’ for editing kinetic data.

- Project file management

+Project file management

At startup, the project explorer to the left shows the two project workspaces ‘FOCUS_2006’ and ‘FOCUS_2006_Z’ delivered with the package. The project manangement area in the center gives the possibility to save these projects under a new name, or to start a new, empty project.

A gmkin project workspace contains datasets, kinetic models for fitting, and so-called fits, i.e. the results of fitting models to data. The project area also shows the current working directory, where project workspace files are saved using the file extension .gmkinws.

Once a project has been saved by the user, the project explorer to the left will show it in the project list.

@@ -110,7 +110,7 @@

- Dataset editor

+Dataset editor

When you select one of the datasets in the dataset explorer to the left, some summary information about the dataset is shown in the center, and the data itself is loaded into the data editor to the right.

Screenshot of the GUI after loading a dataset

Screenshot of the GUI after loading a dataset

@@ -121,7 +121,7 @@

However, entering data in these fields is a prerequisite for entering a new dataset directly in the dataset editor.

- Entering data directly

+Entering data directly

For entering new data manually, there are two possibilities. You can either change the Dataset title of the current dataset and edit the data in the Data editor to the right. Or, if the new data should have a different structure, e.g. different sampling times, observed variables and replicates, click on “New dataset”, edit the dataset title, sampling times, number of replicates and the list of observed variables, and press the button ‘Generate grid for entering kinetic data’, in order to prepare the Data editor to the right.

For sampling times and short names of the relevant compounds, a comma separated list must be entered, with a space after each comma. An example of filling out the respective fields is shown below.

@@ -132,7 +132,7 @@

- Importing data from text files

+Importing data from text files

In case you want to work with a larger dataset that is already available as a computer file e.g. in a spreadsheet application, you can export these data as a tab separated or comma separated text file and import it using the “Browse” and “Upload” buttons in the dataset editor.

As an example, we can create a text file from one of the datasets shipped with the mkin package using the following R command:

write.table(schaefer07_complex_case, sep = ",", dec = ".", 
@@ -164,7 +164,7 @@
 

- Model editor

+Model editor

The following screenshot shows the model editor for the model ‘Z.2a.ff’ from the project workspace ‘FOCUS_2006_Z’ provided with the gmkin package.

Screenshot of the model editor

Screenshot of the model editor

@@ -176,7 +176,7 @@

- Configuring the fit

+Configuring the fit

If a dataset and a kinetic model are selected, the button “Configure fit” below in the Explorer window “Configuration” becomes active. Pressing it opens the “Configuration” area in the center and loads the dataset into the Data editor to the right, for viewing only.

After pressing the button ‘Plot unoptimised’, the data and the kinetic model with default starting parameters are plotted in the ‘Plot’ area to the right.

@@ -184,7 +184,7 @@

- Fit options

+Fit options

The most important fit options of the mkinfit function can be set via the controls in the fit configuration area shown above. If the “plot” checkbox is checked (and on Windows, the R GUI is used for running gmkin), an R graphics device started via the R console shows the fitting progress, i.e. the change of the model solution together with the data during the optimisation.

The “solution_type” can either be “auto”, which means that the most effective solution method is chosen for the model, in the order of “analytical” (for parent only degradation data), “eigen” (for differential equation models with only linear terms, i.e. without FOMC, DFOP or HS submodels) or “deSolve”, which can handle all model definitions generated by the mkin package. If a compiler (gcc, on Windows install the ‘Rtools’ software package), then the “deSolve” solution method is alway chosen when there are more than one variables in the model.

The parameters “atol” and “rtol” are only effective if the solution type is “deSolve”. They control the precision of the iterative numerical solution of the differential equation model.

@@ -197,7 +197,7 @@

- Plot options

+Plot options

In the right part of the fit configuration area, the file format can be chosen, the legend can be turned off, and the observed variables for which the data and the model fit should be plotted can be selected as shown below.

plot options

plot options

@@ -206,7 +206,7 @@

- Parameters

+Parameters

Below the fit control area, a table with the Starting parameter list is displayed. While name and type of the parameters should not be edited, their initial values can be edited by clicking on a row. Also, it can be specified if the parameters should be fixed in the optimisation process.

If the initial values for the parameters were changed, the resulting model solution can be visually checked by pressing the button “Plot unoptimised”. This will update the plot of the model and the data using the specified initial parameter values.

If a similar model with a partially overlapping model definition has already be fitted, initial values for parameters with the same name in both models can also be retrieved from previous fits by selecting the fit and pressing the button “Get starting parameters from”. This facilitates stepwise fitting of more complex degradation pathways.

@@ -214,7 +214,7 @@

- Fitting the model

+Fitting the model

In many cases the starting parameters and the fit options do not need to be modified and the model fitting process can simply be started by pressing the “Run fit” button. In the R console, the progressive reduction in the model cost can be monitored and will be displayed in the following way:

Model cost at call  1 :  15156.12 
 Model cost at call  3 :  15156.12 
@@ -242,7 +242,7 @@ Optimisation by method Port successfully terminated.

- Results and summary

+Results and summary

Once a fit has successfully been completed, the most important results are shown in several tables in the “Result” area as shown below.

Screenshot of the results

Screenshot of the results

@@ -254,7 +254,7 @@ Optimisation by method Port successfully terminated.

The complete summary can be saved into a text file by specifying a suitable file name and pressing the button “Save summary”.

- Confidence interval plots

+Confidence interval plots

Whenever a new fit has been configured or a run of a fit has been completed, the plotting area is updated with the abovementioned plot of the data and the current model solution.

In addition, a confidence interval plot is shown below this conventional plot. In case a fit has been run and confidence intervals were successfully calculated for the fit (i.e. if the model was not overparameterised and no other problems occurred), the confidence intervals are graphically displayed as bars as shown below.

@@ -264,11 +264,11 @@ Optimisation by method Port successfully terminated.

- Howtos

+Howtos

The following sections show step by step descriptions of how to perform certain tasks using gmkin. In principle, this should be necessary as the GUI was designed to be largely self-explanatory. Nevertheless may help a beginner to understand how to use gmkin. At the same time, the gmkin author uses them as test cases to make sure that the most important functionality is not broken before releasing a new version.

- 1. Use a model and a dataset from a built-in workspace

+1. Use a model and a dataset from a built-in workspace
  • Start gmkin
  • In the project explorer, select the project ‘FOCUS_2006’
  • @@ -285,7 +285,7 @@ Optimisation by method Port successfully terminated.

- 3. Load a tab separated input file in wide format and evaluate using a newly created model

+3. Load a tab separated input file in wide format and evaluate using a newly created model
  • Start gmkin
  • In the project explorer, enter the project name ‘Howto test 3’
  • diff --git a/docs/articles/index.html b/docs/articles/index.html index 442e3b0..20f744f 100644 --- a/docs/articles/index.html +++ b/docs/articles/index.html @@ -25,12 +25,14 @@ - + + + @@ -70,7 +72,7 @@
    diff --git a/docs/authors.html b/docs/authors.html index a04fc53..bd091af 100644 --- a/docs/authors.html +++ b/docs/authors.html @@ -25,12 +25,14 @@ - + + + diff --git a/docs/index.html b/docs/index.html index 47725c1..38efd2c 100644 --- a/docs/index.html +++ b/docs/index.html @@ -9,7 +9,7 @@ - @@ -51,23 +51,23 @@
    +gmkin

    - System requirements

    +System requirements

    For running gmkin you need a system running a recent version of R (version 3.1.0 or later), the gWidgesWWW2 package, the gmkin package and a web browser (Firefox/Iceweasel and Chrome work for me) with JavaScript enabled.

    It should be possible to run gmkin on most laptop or desktop computers running Linux, Mac OS X, Windows XP or Windows 7. It is frequently checked under Linux and Windows 7.

    To view the complete set of widgets in the browser window without resizing anything, it needs a screen space of 1366x740 pixels.

    - Installing R

    +Installing R

    Please refer to CRAN for installation instructions and binary packages. If you are on Windows, please consult the FAQ for Windows, especially the entries “How do I install R for Windows?”, “How do I run it?”.

    If you would like to upgrade your R installation, please refer to the respective FAQ entry.

    - Installing gmkin and gWidgetsWWW2

    +Installing gmkin and gWidgetsWWW2

    Windows and Linux users running R 3.1.0 or later can make use of the package repository on R-Forge. Before installing gmkin, you should update your R packages already installed, e.g. by starting R, and pasting the command

    update.packages()

    or similar, depending on your R installation.

    @@ -82,7 +82,7 @@

    - Usage

    +Usage

    Without further preparation, you can start the GUI by starting R and pasting the following commands into the R terminal (R console on Windows):

    require(gmkin)
     gmkin()
    @@ -90,13 +90,13 @@ gmkin()

    - Documentation

    +Documentation

    For a complete overview of the functionality of the gmkin graphical user interface please refer to the manual available at the gmkin documentation website.

    In case you would like to see the documentation of the underlying mkin package, please refer to its documentation website.

    - Status and known issues

    +Status and known issues
    • gmkin was developed in the hope that it will be useful. However, no warranty can be given that it will meet your expectations. There may be bugs, so please be careful, check your results for plausibility and use your own expertise to judge yourself.
    • Starting the GUI takes some time. If the GUI does not come up after 10-15 seconds, close your browser and start gmkin again using the command ‘gmkin()’. Once the GUI is started, it is reasonably responsive.
    • @@ -105,12 +105,12 @@ gmkin()

- Notes on the gWidgetsWWW2 package

+Notes on the gWidgetsWWW2 package

The R package gWidgetsWWW2 is not available on CRAN because it contains path names with more then 100 characters in the JavaScript files which limits its portability. Also, it attaches some R objects to the search path, which is, in its current form, not fully in line with the CRAN package policy. It is not a widely used library for creating graphical user interfaces and is not supported by a commercial company. However it makes it possible to create a reasonably complex user interface by just writing R code, and is therefore used by gmkin.

- Installation using the devtools package

+Installation using the devtools package

Users of the devtools package can also install gWidgetsWWW2 and gmkin directly from the respective github repositories:

require(devtools)
 install_github("jverzani/gWidgetsWWW2", quick = TRUE)
@@ -120,7 +120,7 @@ install_github("jranke/gmkin", quick = TRUE)

- Simplifying the start of gmkin under Windows

+Simplifying the start of gmkin under Windows

You can put the commands

require(gmkin)
 gmkin()
@@ -131,7 +131,7 @@ while (TRUE) {
 

- Acknowledgements

+Acknowledgements

Financial support, feedback and suggestions by the German Federal Environmental Agency (Umweltbundesamt) in two projects in 2014 and 2015 was crucial for reaching version 0.6.3 in November 2015 and is gratefully acknowledged. In particular, Stefan Meinecke contributed with a lot of user feedback and suggestions for improvement in that time.

@@ -150,14 +150,12 @@ while (TRUE) {
  • Johannes Ranke
    Author, maintainer, copyright holder
  • All authors...
  • -

    Dev status

    -
    diff --git a/docs/news/index.html b/docs/news/index.html index 0bd0f2c..77bd232 100644 --- a/docs/news/index.html +++ b/docs/news/index.html @@ -25,12 +25,14 @@ - + + + diff --git a/docs/pkgdown.css b/docs/pkgdown.css index fd7b0ba..9c437c7 100644 --- a/docs/pkgdown.css +++ b/docs/pkgdown.css @@ -36,11 +36,8 @@ img.icon { /* Section anchors ---------------------------------*/ -.hasAnchor { - margin-left: -30px; -} - a.anchor { + margin-left: -30px; display:inline-block; width: 30px; height: 30px; @@ -56,6 +53,13 @@ a.anchor { visibility: visible; } +@media (max-width: 767px) { + .hasAnchor:hover a.anchor { + visibility: hidden; + } +} + + /* Fixes for fixed navbar --------------------------*/ .contents h1, .contents h2, .contents h3, .contents h4 { @@ -63,6 +67,17 @@ a.anchor { margin-top: -60px; } +/* Static header placement on mobile devices */ +@media (max-width: 767px) { + .navbar-fixed-top { + position: absolute; + } + .navbar { + padding: 0; + } +} + + /* Sidebar --------------------------*/ #sidebar { @@ -81,33 +96,59 @@ a.anchor { margin-bottom: 0.5em; } -/* Syntax highlighting ---------------------------------------------------- */ +/* Reference index & topics ----------------------------------------------- */ -code { - background-color: #f7f7f7; - color: #333; -} -code a { - color: #375f84; +.ref-index th {font-weight: normal;} +.ref-index h2 {font-size: 20px;} + +.ref-index td {vertical-align: top;} +.ref-index .alias {width: 40%;} +.ref-index .title {width: 60%;} + +.ref-index .alias {width: 40%;} +.ref-index .title {width: 60%;} + +.ref-arguments th {text-align: right; padding-right: 10px;} +.ref-arguments th, .ref-arguments td {vertical-align: top;} +.ref-arguments .name {width: 20%;} +.ref-arguments .desc {width: 80%;} + +/* Nice scrolling for wide elements --------------------------------------- */ + +table { + display: block; + overflow: auto; } -.warning { color: red; } -.message { font-weight: bolder; } -.error { color: red; font-weight: bolder; } +/* Syntax highlighting ---------------------------------------------------- */ -.fl,.number {color:rgb(21,20,181);} -.fu,.functioncall {color:#264D66 ;} -.ch,.st,.string {color:#375D81 ;} -.kw,.keyword {color:black;} -.argument {color:#264D66 ;} -.co,.comment {color: #777;} -.formalargs {color: #264D66;} -.eqformalargs {color:#264D66;} -.slot {font-style:italic;} -.symbol {color:black ;} -.prompt {color:black ;} +pre { + word-wrap: normal; + word-break: normal; + border: 1px solid #eee; +} + +pre, code { + background-color: #f8f8f8; + color: #333; +} pre img { background-color: #fff; display: block; } + +code a, pre a { + color: #375f84; +} + +.fl {color: #1514b5;} +.fu {color: #000000;} /* function */ +.ch,.st {color: #036a07;} /* string */ +.kw {color: #264D66;} /* keyword */ +.co {color: #888888;} /* comment */ + +.message { color: black; font-weight: bolder;} +.error { color: orange; font-weight: bolder;} +.warning { color: #6A0366; font-weight: bolder;} + diff --git a/docs/reference/FOCUS_2006.html b/docs/reference/FOCUS_2006.html index cc367ce..2c9d327 100644 --- a/docs/reference/FOCUS_2006.html +++ b/docs/reference/FOCUS_2006.html @@ -6,8 +6,7 @@ - - — FOCUS_2006 • gmkin +Example gmkin workspace for Datasets C and D from the FOCUS Kinetics report — FOCUS_2006 • gmkin @@ -26,12 +25,14 @@ - + + + @@ -73,8 +74,7 @@
    @@ -83,7 +83,7 @@ default.

    -
    FOCUS_2006
    +
    FOCUS_2006

    Format

    @@ -100,12 +100,12 @@

    Examples

    -
    ## Not run: ------------------------------------ -# save(FOCUS_2006, file = "FOCUS_2006.RData") -# # Now you can load the file "FOCUS_2006.RData" from gmkin, -# # restoring the workspace that is loaded at startup. -# -## ---------------------------------------------
    +
    not_run({ + save(FOCUS_2006, file = "FOCUS_2006.RData") + # Now you can load the file "FOCUS_2006.RData" from gmkin, + # restoring the workspace that is loaded at startup. + +})