From noreply at r-forge.r-project.org Fri Apr 5 06:31:54 2019
From: noreply at r-forge.r-project.org (noreply at r-forge.r-project.org)
Date: Fri, 5 Apr 2019 06:31:54 +0200 (CEST)
Subject: [CHNOSZ-commits] r429 - in pkg/CHNOSZ: . demo inst man vignettes
Message-ID: <20190405043154.7517318D58D@r-forge.r-project.org>
Author: jedick
Date: 2019-04-05 06:31:52 +0200 (Fri, 05 Apr 2019)
New Revision: 429
Modified:
pkg/CHNOSZ/DESCRIPTION
pkg/CHNOSZ/demo/adenine.R
pkg/CHNOSZ/inst/CHECKLIST
pkg/CHNOSZ/man/eqdata.Rd
pkg/CHNOSZ/vignettes/anintro.Rmd
pkg/CHNOSZ/vignettes/mklinks.sh
Log:
anintro.Rmd: improve description of reset()
Modified: pkg/CHNOSZ/DESCRIPTION
===================================================================
--- pkg/CHNOSZ/DESCRIPTION 2019-03-09 00:43:47 UTC (rev 428)
+++ pkg/CHNOSZ/DESCRIPTION 2019-04-05 04:31:52 UTC (rev 429)
@@ -1,6 +1,6 @@
-Date: 2019-03-09
+Date: 2019-04-05
Package: CHNOSZ
-Version: 1.3.1-9
+Version: 1.3.1-10
Title: Thermodynamic Calculations and Diagrams for Geochemistry
Authors at R: c(
person("Jeffrey", "Dick", , "j3ffdick at gmail.com", role = c("aut", "cre"),
Modified: pkg/CHNOSZ/demo/adenine.R
===================================================================
--- pkg/CHNOSZ/demo/adenine.R 2019-03-09 00:43:47 UTC (rev 428)
+++ pkg/CHNOSZ/demo/adenine.R 2019-04-05 04:31:52 UTC (rev 429)
@@ -3,7 +3,7 @@
# notable functions in this demo:
# EOSregress() - to regress HKF coefficients from Cp data
-# add.obigt() - to add thermodynamic data that are not in the default database
+# mod.obigt() - to modify the thermodynamic database for comparisons with an older set of parameters for adenine
# LCT17 = Lowe et al., 2017 (J. Chem. Thermodyn., doi:10.1016/j.jct.2017.04.005)
# LH06 = LaRowe and Helgeson, 2006 (Geochim. Cosmochim. Acta, doi:10.1016/j.gca.2006.04.010)
Modified: pkg/CHNOSZ/inst/CHECKLIST
===================================================================
--- pkg/CHNOSZ/inst/CHECKLIST 2019-03-09 00:43:47 UTC (rev 428)
+++ pkg/CHNOSZ/inst/CHECKLIST 2019-04-05 04:31:52 UTC (rev 429)
@@ -21,7 +21,7 @@
- run R CMD check using R compiled without long doubles (emulating Solaris checks on CRAN)
(CFLAGS=-ffloat-store ./configure --disable-long-double)
-- size reduction of vignettes: after installing/upgrading rmarkdown, replace files in
+- reduce the size of vignettes: after installing/upgrading rmarkdown, replace files in
rmarkdown/rmd/h/bootstrap/fonts/ with empty files
- build the package using both qpdf and ghostscript to compact vignettes:
Modified: pkg/CHNOSZ/man/eqdata.Rd
===================================================================
--- pkg/CHNOSZ/man/eqdata.Rd 2019-03-09 00:43:47 UTC (rev 428)
+++ pkg/CHNOSZ/man/eqdata.Rd 2019-04-05 04:31:52 UTC (rev 429)
@@ -3,7 +3,10 @@
\alias{eqdata}
\title{Read data from an EQ6 output file}
\description{
- Extract computational results for aqueous species, solid phases, mineral saturation states, or speciation summaries at each step of reaction progress in an EQ6 output file. The results are written to a comma-separated value file that can be read by other programs.
+Extract computational results for aqueous species, solid phases, mineral saturation states, or speciation summaries at each step of reaction progress in an EQ6 output file.
+The results are written to a comma-separated value file that can be read by other programs.
+The function has been tested with output files generated by EQ3/6 version 7.1 running on a Unix platform.
+Currently it does not work for files generated by later versions.
}
\usage{
@@ -33,8 +36,7 @@
If \code{outfile} is TRUE, the result is saved in a file named like \samp{file}.\samp{property}.\code{csv}, in the same directory as \code{file}. The name of the \code{outfile} can be provided to override this naming scheme, or this argument can be set to FALSE or NULL, to turn off writing the result to a file.
- Thanks to Peter Canovas and Everett Shock for helping to test the code and offering ideas for improvements. The function has been tested with output files generated by EQ3/6 version 7.1 running on a Unix platform.
-
+ Thanks to Peter Canovas and Everett Shock for helping to test the code and offering ideas for improvements.
}
\references{
Modified: pkg/CHNOSZ/vignettes/anintro.Rmd
===================================================================
--- pkg/CHNOSZ/vignettes/anintro.Rmd 2019-03-09 00:43:47 UTC (rev 428)
+++ pkg/CHNOSZ/vignettes/anintro.Rmd 2019-04-05 04:31:52 UTC (rev 429)
@@ -118,13 +118,15 @@
install.packages("CHNOSZ")
```
-Then load the CHNOSZ package to make its functions available in your R session:
+Then load the CHNOSZ package to make its data and functions available in your R session:
```{r library_CHNOSZ}
library(CHNOSZ)
```
-Then load the `thermo` object, which contains the thermodynamic database and system settings for CHNOSZ:
-```{r data_thermo}
+CHNOSZ is now ready to go with the default thermodynamic database and an empty system definition.
+After running some calculations, you may want to "start over" with the default values.
+To clear the system settings and restore the default thermodynamic database, use `reset()`.
+```{r reset}
reset()
```
@@ -155,7 +157,7 @@
Many functions in CHNOSZ have no side effects.
That is, the function only returns a result; to use the result elsewhere, it can be assigned to a variable with `<-`.
-In this document, the names of these functions are set in green text (not applicable to the code chunks).
+In this document, the names of these functions are shown in green text (not applicable to the code chunks).
```{marginfigure}
When they are mentioned, names of functions in the base and recommended packages of R are said to belong to R.
Example: Use R's `plot()` to plot the data.
@@ -169,7 +171,7 @@
* `diagram()`: plot the results.
Some functions in CHNOSZ do have side effects: they modify the `thermo` data object in the current R session.
-In this document, the names of these functions are set in red text (but not in the code chunks).
+In this document, the names of these functions are shown in red text (but not in the code chunks).
Major functions with side effects are:
* `basis()`: set the basis species and their chemical activities;
@@ -381,7 +383,7 @@
As expected, we get the same result from both operations.
Use `reset()` to restore the units and all other settings for CHNOSZ to their defaults:
-```{r data_thermo}
+```{r reset}
```
# Properties of reactions
@@ -562,7 +564,7 @@
```
Let's not forget to clear the system settings, which were modified by `basis()` and `E.units()`, before running other calculations:
-```{r data_thermo, message=FALSE}
+```{r reset, message=FALSE}
```
# Using `affinity()`
@@ -1527,8 +1529,8 @@
```
Now we can load the proteins and calculate their activities in metastable equilibrium as a function of `r logfO2`.
-The commented line uses `add.obigt()` to revert the group additivity parameters to those present in older versions of CHNOSZ (Dick et al., 2006).
-The current database, with parameters set by `reset()` and used here, contains updated group additivity parameters for the sidechain groups of methionine (LaRowe and Dick, 2012) and glycine and the protein backbone [@Kit14].
+The commented line uses `add.obigt()` to load group additivity parameters that were present in older versions of CHNOSZ (Dick et al., 2006).
+The default database contains newer group additivity parameters for the sidechain groups of methionine (LaRowe and Dick, 2012) and glycine and the protein backbone [@Kit14].
```{r yeastplot, eval=FALSE, echo=1:6}
par(mfrow = c(1, 3))
@@ -2007,12 +2009,8 @@
The column names with a dot (`.`) refer to different sets of equations for calculating standard thermodynamic properties.
Aqueous species use the revised Helgeson-Kirkham-Flowers (HKF) equations (symbols before the dot), and crystalline, gas and liquid species other than `r h2o` use a general heat capacity equation.
-See `?thermo` for details about what's in the data table, and `?hkf` and `?cgl` for information about the thermodynamic equations.
+See `?thermo` for details about what's in the data table, and `?hkf` and `?cgl` for information about the equations used for thermodynamic properties.
-Another use of `add.obigt()` is to add data from the file `CHNOSZ_aq.csv`, which holds provisional updates that aren't loaded by default (i.e., using `reset()`).
-In this mode, only the name of the species is used as the argument.
-Currently available species are `adenine-old` and `pseudo-H4SiO4` (see [`demo(adenine)`](../demo) and the vignette, [*Regressing thermodynamic data*](eos-regress.html)).
-
## Modifying data
Use `mod.obigt()` to add or modify the database in the current session.
Modified: pkg/CHNOSZ/vignettes/mklinks.sh
===================================================================
--- pkg/CHNOSZ/vignettes/mklinks.sh 2019-03-09 00:43:47 UTC (rev 428)
+++ pkg/CHNOSZ/vignettes/mklinks.sh 2019-04-05 04:31:52 UTC (rev 429)
@@ -37,7 +37,7 @@
sed -i '120,$s/diagram()<\/code>/diagram()<\/a><\/code>/g' anintro.html
sed -i '120,$s/basis()<\/code>/basis()<\/a><\/code>/g' anintro.html
sed -i '120,$s/species()<\/code>/species()<\/a><\/code>/g' anintro.html
-sed -i '120,$s/reset()<\/code>/reset()<\/a><\/code>/g' anintro.html
+sed -i '120,$s/reset()<\/code>/reset()<\/a><\/code>/g' anintro.html
sed -i '120,$s/describe.reaction()<\/code>/describe.reaction()<\/a><\/code>/g' anintro.html
sed -i '120,$s/swap.basis()<\/code>/swap.basis()<\/a><\/code>/g' anintro.html
sed -i '120,$s/water.lines()<\/code>/water.lines()<\/a><\/code>/g' anintro.html
@@ -45,7 +45,6 @@
sed -i '120,$s/mosaic()<\/code>/mosaic()<\/a><\/code>/g' anintro.html
sed -i '120,$s/convert()<\/code>/convert()<\/a><\/code>/g' anintro.html
sed -i '120,$s/mod.buffer()<\/code>/mod.buffer()<\/a><\/code>/g' anintro.html
-sed -i '120,$s/reset\$/reset<\/a>\$/g' anintro.html
sed -i '120,$s/solubility()<\/code>/solubility()<\/a><\/code>/g' anintro.html
sed -i '120,$s/ZC.col()<\/code>/ZC.col()<\/a><\/code>/g' anintro.html
sed -i '120,$s/aminoacids(\"\")<\/code>/aminoacids(\"\")<\/a><\/code>/g' anintro.html
From noreply at r-forge.r-project.org Mon Apr 8 02:48:39 2019
From: noreply at r-forge.r-project.org (noreply at r-forge.r-project.org)
Date: Mon, 8 Apr 2019 02:48:39 +0200 (CEST)
Subject: [CHNOSZ-commits] r430 - in pkg/CHNOSZ: . inst inst/extdata/OBIGT
vignettes
Message-ID: <20190408004839.4329218CD35@r-forge.r-project.org>
Author: jedick
Date: 2019-04-08 02:48:38 +0200 (Mon, 08 Apr 2019)
New Revision: 430
Modified:
pkg/CHNOSZ/DESCRIPTION
pkg/CHNOSZ/inst/NEWS
pkg/CHNOSZ/inst/extdata/OBIGT/SLOP98.csv
pkg/CHNOSZ/inst/extdata/OBIGT/biotic_aq.csv.xz
pkg/CHNOSZ/inst/extdata/OBIGT/organic_aq.csv.xz
pkg/CHNOSZ/inst/extdata/OBIGT/organic_cr.csv.xz
pkg/CHNOSZ/inst/extdata/OBIGT/refs.csv
pkg/CHNOSZ/vignettes/obigt.Rmd
pkg/CHNOSZ/vignettes/obigt.bib
Log:
obigt.Rmd: use Zenodo DOI for slop files
Modified: pkg/CHNOSZ/DESCRIPTION
===================================================================
--- pkg/CHNOSZ/DESCRIPTION 2019-04-05 04:31:52 UTC (rev 429)
+++ pkg/CHNOSZ/DESCRIPTION 2019-04-08 00:48:38 UTC (rev 430)
@@ -1,6 +1,6 @@
-Date: 2019-04-05
+Date: 2019-04-08
Package: CHNOSZ
-Version: 1.3.1-10
+Version: 1.3.1-11
Title: Thermodynamic Calculations and Diagrams for Geochemistry
Authors at R: c(
person("Jeffrey", "Dick", , "j3ffdick at gmail.com", role = c("aut", "cre"),
Modified: pkg/CHNOSZ/inst/NEWS
===================================================================
--- pkg/CHNOSZ/inst/NEWS 2019-04-05 04:31:52 UTC (rev 429)
+++ pkg/CHNOSZ/inst/NEWS 2019-04-08 00:48:38 UTC (rev 430)
@@ -1,5 +1,5 @@
-CHANGES IN CHNOSZ 1.3.1-8 (2019-03-06)
---------------------------------------
+CHANGES IN CHNOSZ 1.3.1-11 (2019-04-08)
+---------------------------------------
- Add thermo/stoich.csv.xz (loaded as thermo()$stoich), containing a
precalculated stochiometric matrix for the default database, to speed
@@ -19,6 +19,9 @@
- Add data for sudoite, daphnite, Mg-amesite, and Fe-amesite to
extdata/Berman (Vidal et al., 1992, 2001, 2005).
+- obigt.Rmd: Use Zenodo DOI for citations to slop98.dat, slop07.dat, and
+ slop16.dat.
+
CHANGES IN CHNOSZ 1.3.1 (2019-03-02)
------------------------------------
Modified: pkg/CHNOSZ/inst/extdata/OBIGT/SLOP98.csv
===================================================================
--- pkg/CHNOSZ/inst/extdata/OBIGT/SLOP98.csv 2019-04-05 04:31:52 UTC (rev 429)
+++ pkg/CHNOSZ/inst/extdata/OBIGT/SLOP98.csv 2019-04-08 00:48:38 UTC (rev 430)
@@ -27,7 +27,7 @@
ZnCl3-,ZnCl3-,ZnCl3-,aq,"SSH97.3 [S98]",NA,2.Oct.97,-129310,-151060,25,41.97,53.9,9.5636,15.5732,-0.3779,-3.4227,42.2912,5.5147,1.2513,-1
Zn(Ac)+,Zn(Ac)+,ZnCH3COO+,aq,"SSH97.4 [S98]",NA,18.Sep.97,-125660,-155120,9.4,86.2,21.52,4.8484,4.06,4.1473,-2.9468,60.4626,14.5244,0.41,1
Zn(Ac)2,Zn(Ac)2,Zn(CH3COO)2,aq,"SSH97.4 [S98]",NA,18.Sep.97,-216450,-271500,22.47,193.3,73.02,11.7443,20.8978,-2.4707,-3.6429,119.1022,36.3407,-0.038,0
-Zn(Ac)3-,Zn(Ac)3-,Zn(CH3COO)3-,aq,"SSH97.4 [S98]",SLOP15.2,2.Jun.98,-305740,-408093,25,316.5,130.4,20.0332,41.1373,-10.4257,-4.4796,203.1827,61.4365,1.2513,-1
+Zn(Ac)3-,Zn(Ac)3-,Zn(CH3COO)3-,aq,"SSH97.4 [S98]",SLOP16.2,2.Jun.98,-305740,-408093,25,316.5,130.4,20.0332,41.1373,-10.4257,-4.4796,203.1827,61.4365,1.2513,-1
AgCl,AgCl,AgCl,aq,"SSH97.3 [S98]",NA,16.Sep.97,-17450,-18270,34.1,6.7,25.24,5.2088,4.9399,3.8015,-2.9832,9.8168,-1.6698,-0.03,0
AgCl2-,AgCl2-,AgCl2-,aq,"SSH97.3 [S98]",NA,16.Sep.97,-51560,-61130,47,7.8,54.37,9.5149,15.4544,-0.3312,-3.4178,19.185,-1.4457,0.9169,-1
AgCl3-2,AgCl3-2,AgCl3-2,aq,"SSH97.3 [S98]",NA,2.Oct.97,-82710,-105613,44.5,10.69,86.82,14.504,27.6363,-5.1192,-3.9214,35.8339,-0.857,2.5402,-2
Modified: pkg/CHNOSZ/inst/extdata/OBIGT/biotic_aq.csv.xz
===================================================================
--- pkg/CHNOSZ/inst/extdata/OBIGT/biotic_aq.csv.xz 2019-04-05 04:31:52 UTC (rev 429)
+++ pkg/CHNOSZ/inst/extdata/OBIGT/biotic_aq.csv.xz 2019-04-08 00:48:38 UTC (rev 430)
@@ -1,88 +1,109 @@
-?7zXZ ???F ! t/?????4] 7I??b???9??????TB;q?"?q???cL;?"???b??g?;??K?????f??1?w?oz??C??a?]I????5i?*U9??X??0w??tG???????A???Yo|??XQ$?{??16?\O?]x??t% ??~?A2K???2?
+?7zXZ ???F ! t/?????4] 7I??b???9??????TB;q?"?q???cL;?"???b??g?;??K?????f??1?w?oz??C??a?]I????5i?*U9??X??0w??tG???????A???Yo|??XQ$?{??16?\O?]x??t% ??~?A2K???2?
M?????u?2C????l,???????? ???>I?,t?b?PK??7?t(?em?A-P?Q?]?? ??8?.f?|?????V[?????=??K????VTm??~vw?
?2/ ??Wa???s?-?????p?lVs????H???u???? ?%?XF??k#??????????+??(??m5?St5?Fa?a??jN??8????>z???3MwS?%??????+?3x??`cw`?; $?(???????P?>????>?1b???QA??????>6o?=?-?((??pN???i????VOL?A???9 c?E3??XP????kj?s?????Y!&o??w(??3?+?"???????; ??R6eW????![?????r?O>O?????&???Y??r|????kz?:$?6"&x??{D71?t\Z??8dw?>*?h\t????ty??)B????n<?9l?N!3???z '???}???nV?,0uVe???????
j?????|B??d^7&KK?-
f("?9s??[?S>?W?;!6???2_?????s??3}/????hAa]x^|??j???`????wt??\i??V>?eL8?????9???W?#*?f.??,?T??)Y7) ?O^D???y?K?Z??%KX??T?{e@?L>^???QG,h????O???.?????J?
??@4??????b4p?J?u?3??#????o??0???????????????v??0?$`?^??:/???
???3??)]g?1v*?n????{???;Q????+?????????m?g?Z8p+???^??????.rE??j??6[??k0?jh?\m??e?s???????????t(i$??$??T????;$?:??W?v5G????0???$Wg?q9s???$r??????YT?Tz.+'??#?R?d????/v??}%???????f???C'T???F?y???{?\4???_??CU? $$?u??5?ujH? ????#(??????u??-;??&?9?njm???h?DQ??A6xT/??f???????????????????v??T???s?_?A*?E~???
-?l?-? 5????&?@???
-?????)?!d?9???.?????????eh???r ?y????I???Gg?;?u??N?:????@y???c???[D6? o?+???
-{?`??%?B??,P??%EZ?F?k????w!?9~0????`???X????????F????????eWX@????M???j??S?D????m?(`$???Q????I6??9??$An9?K????{.%??s??8H?Y}yZ?? "i?t??a??D2U'?? ^?????u?p?4e?(? ??1????` j????4G?KM??#????????t??2?.vU???P?/????*g%]:h?B????????y?QYh??d4?"???????? x?,:i???!???g?C__?"??????
-???@?+?????,?'p??J???h????=n??[?`?
-?L"???M???7?MPS????a?D????,??b?( ??Iz"2?a?p?F???>:j?T???D??=H??'?8" ??M???g??J?o$?"???zc ???G?h?},1{??=?x????|?n??jh??d??m?_[???`?\?xOr??A???I2?]J???'?i?;???r?!5??eb??`??S?Ex?t-(????Z?L?2?a?tA
-?|????????T?#H?2?s3{*/?.??~2?B??(?[???@???
-b??????.??? la??C0?c?Ud?+?S??q>t??v{N|{??l?????(A\?????s??????eN???'?*???E>P?????S?7P?tD9?ri??#w?/w?c2?G??????3E?Ms??b?i?????p??5f?*;z?})??h???_d???b??~?:???]???,?)?OU??bqG?j?t?G>?[?/???}?F??v??wJS?wPvE[?Qy????V?YT?\????U??J?????x?93?x????DU?????T??u3?y$??(?n??]s"?M?????7V!^o??L??*??S ?HTb???=???E>?3t?}9z@?G?????J?????Q?>B????pY???V?P??H3????4,?c????X?j
-y??"?Q7~?@L1???(??R?d??p/`93?*?A??9?:Fk?([?3h?HW?c?|?g?2???G?=?B?4?B`A?)fO?]????_0m?[?W??1??Jt???C???S\???(?A6??O???8cHV!|??.?????@??h?X??`??c:??w??2S?? Wp??????j??C????+?!??|Ff D???y?BS?;8F???0??,??~???mA
-?????n????0?'gm?n[O^g??!xwnm???u??????k4??????!N3????]??4?q????=?
-??????VO?46b??>;?D
-WJU?????)??>??^q2Y({?????>???gS!v?????&????????"N????4?e*y?}G?T?K?X7z???? L???u?3?&n??V?????_8???V=??q??M???bpYJ{??`????TYcx??O?g????4?j????m3;?>??????\?u?????????9x0.'????&A??g????fB4??0???(??`?K9?????m?(n???????g??r?e@???C???4?????l.?h?.?????HD??M-F???^?0?)?Z??`?4Hn;m?GH?Y?<'?]?;??4?IA}G??>0???zT??????$?M?;?Z??rbig!?J??N??I?2???d??w????w? +z??-$?;weyFc???A?0a?????^i??u?I0???U??.?:?Y?3[; W?Y??? ?)?>;?Z??K?????M???)?H+??l?????q???N?Q?8T????$>??EqwZ?+q?I?????9?`????>/??W???p???)?[?%d16p?? ?y????_.?s?hveo?cy?5Hv&BT^<w??j ??1?5b?.?(%Q??Q??pq????????0A?d?I??e?s???D????t???O??j ??)?[a 2??????]
-??Fi? ?9[???^/WR?~`-?*p?&!??N?%r"?S????K:%ir??????A?*?????jRa
-??+????
-%?4%??U???n??????O??mq?xZ?M?Q??V??????3?n?;???????? ???v??G??C??T??-????r?,??p ?=u?A??DIk:??|@??J??xv?
-|h?a?-??c?2|???K?m???? ?.?T??m????R???#?)l?Y8)1 g?5lC?? ??%;{v$?qn??OC????&:????????????m~?v?(?L??????S???I?y???a?
-????r.???p? G$A?L&dilE]RP?g#?
-(.?U?@
-}
-?r