[Stacomir-commits] r558 - in pkg/stacomir: . R vignettes

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Wed Mar 4 16:05:06 CET 2020


Author: briand
Date: 2020-03-04 16:05:06 +0100 (Wed, 04 Mar 2020)
New Revision: 558

Modified:
   pkg/stacomir/DESCRIPTION
   pkg/stacomir/NEWS.md
   pkg/stacomir/R/report_mig_mult.R
   pkg/stacomir/vignettes/stacomir.html
Log:
added the good sign for test after changing 	
stopifnot(abs(round(sum(datasub$value,na.rm=TRUE),2)-round(sum(datasub2$value,na.rm=TRUE),2))<0.1) as
there seems to be rounding problems in the test server on CRAN

Modified: pkg/stacomir/DESCRIPTION
===================================================================
--- pkg/stacomir/DESCRIPTION	2020-03-04 10:40:12 UTC (rev 557)
+++ pkg/stacomir/DESCRIPTION	2020-03-04 15:05:06 UTC (rev 558)
@@ -1,6 +1,6 @@
 Package: stacomiR
 Version: 0.5.4.3
-Date: 2020-02-18
+Date: 2020-03-04
 Title: Fish Migration Monitoring
 Authors at R: c(person("Cedric", "Briand", role = c("aut", "cre"), email = "cedric.briand00 at gmail.com"),
 	      person("Marion", "Legrand", role = "aut", email="tableau-salt-loire at logrami.fr"),
@@ -7,7 +7,7 @@
 	      person("Timothee", "Besse", role = "aut", email="tableau-ang-loire at logrami.fr"))
 Description: Graphical outputs and treatment for a database of fish pass
     monitoring. It is a part of the 'STACOMI' open source project developed in
-    France by the French Agency for Biodiversity (AFB) institute to centralize
+    France by the French Office for Biodiversity (OFB) institute to centralize
     data obtained by fish pass monitoring. This version is available in French and
     English. See <http://stacomir.r-forge.r-project.org/> for more information on
     'STACOMI'.     

Modified: pkg/stacomir/NEWS.md
===================================================================
--- pkg/stacomir/NEWS.md	2020-03-04 10:40:12 UTC (rev 557)
+++ pkg/stacomir/NEWS.md	2020-03-04 15:05:06 UTC (rev 558)
@@ -1,17 +1,18 @@
 # stacomiR 0.5.4.XXX
 
-* The vignette crashes as the program finds difference between rounded numbers, I don't understand why, 
-    round(sum(datasub$value, na.rm = TRUE), 2) and round(sum(datasub2$value, na.rm = TRUE), 2) are not equal: 0.000996741
-    I don't see how this is possible but I'm changing the test.
 
+
 # stacomiR 0.5.4.3
 
+
 * fixed problem when report with just one line in one year where total number is zero
 * fixed bug in monthly report when there is just a single month
 * fixed new bug in report_interannual where no value returned from the database created a character which 
 was crashing the program
 * fixed bug in bilan interannual when quantiles were calculated on a single line, now reports exactly the value of that line for all quantiles and avoid crashes.
-* fixed problem in plot,report_sample_char,missing-method, a ... additional was documented but not present 
+* fixed problem in plot,report_sample_char,missing-method, a ... additional was documented but not present (sent from CRAN)
+* The vignette crashes as the program finds difference between rounded numbers, while I don't understand why, 
+    round(sum(datasub$value, na.rm = TRUE), 2) and round(sum(datasub2$value, na.rm = TRUE), 2) are not equal: and provide a difference that is not rounded (e.g. 0.000996741) I have changed the test.
 
 # stacomiR 0.5.4.2
 

Modified: pkg/stacomir/R/report_mig_mult.R
===================================================================
--- pkg/stacomir/R/report_mig_mult.R	2020-03-04 10:40:12 UTC (rev 557)
+++ pkg/stacomir/R/report_mig_mult.R	2020-03-04 15:05:06 UTC (rev 558)
@@ -955,7 +955,8 @@
 	#round(sum(datasub$value, na.rm = TRUE), 2) and round(sum(datasub2$value, na.rm = TRUE), 2) are not equal:
   # Mean relative difference: 0.000996741
 	# so rounded values by 2 digits are not equal ???? # changed test to 0.1
-	stopifnot(abs(round(sum(datasub$value,na.rm=TRUE),2)-round(sum(datasub2$value,na.rm=TRUE),2))>0.1)
+	#browser()
+	stopifnot(abs(round(sum(datasub$value,na.rm=TRUE),2)-round(sum(datasub2$value,na.rm=TRUE),2))<0.1)
   datasub3<-reshape2::dcast(datasub2, debut_pas+fin_pas+ope_dic_identifiant+lot_tax_code+lot_std_code+type_de_quantite~lot_methode_obtention,value.var="value")
   if (!"MESURE"%in%colnames(datasub3)) 	datasub3$MESURE=0
   if (!"CALCULE"%in%colnames(datasub3)) 	datasub3$CALCULE=0

Modified: pkg/stacomir/vignettes/stacomir.html
===================================================================
--- pkg/stacomir/vignettes/stacomir.html	2020-03-04 10:40:12 UTC (rev 557)
+++ pkg/stacomir/vignettes/stacomir.html	2020-03-04 15:05:06 UTC (rev 558)
@@ -11,205 +11,11 @@
 
 <meta name="author" content="Marion Legrand, Cedric Briand" />
 
-<meta name="date" content="2018-10-11" />
+<meta name="date" content="2020-03-04" />
 
 <title>StacomiR</title>
 
-<script>/*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */
[TRUNCATED]

To get the complete diff run:
    svnlook diff /svnroot/stacomir -r 558


More information about the Stacomir-commits mailing list