[Stacomir-commits] r319 - in pkg/stacomir: data inst/config
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Sat Mar 18 21:53:37 CET 2017
Author: briand
Date: 2017-03-18 21:53:37 +0100 (Sat, 18 Mar 2017)
New Revision: 319
Added:
pkg/stacomir/data/bil_CE.rda
Modified:
pkg/stacomir/inst/config/generate_data.R
Log:
generate data for BilanConditionEnv
Added: pkg/stacomir/data/bil_CE.rda
===================================================================
(Binary files differ)
Property changes on: pkg/stacomir/data/bil_CE.rda
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Modified: pkg/stacomir/inst/config/generate_data.R
===================================================================
--- pkg/stacomir/inst/config/generate_data.R 2017-03-18 20:36:00 UTC (rev 318)
+++ pkg/stacomir/inst/config/generate_data.R 2017-03-18 20:53:37 UTC (rev 319)
@@ -490,3 +490,21 @@
bmi_vichy at dc@data[,"type_dc"]<-iconv(bmi_vichy at dc@data[,"type_dc"],from="latin1",to="UTF8")
bmi_vichy at dc@data[,"dif_localisation"]<-iconv(bmi_vichy at dc@data[,"dif_localisation"],from="latin1",to="UTF8")
devtools::use_data(bmi_vichy,internal=FALSE,overwrite=TRUE)
+
+#################################
+# generates dataset for bilanConditionEnv
+##################################
+setwd("F:/workspace/stacomir/pkg/stacomir")
+require(stacomiR)
+stacomi(gr_interface=FALSE,
+ login_window=FALSE,
+ database_expected=FALSE)
+bil_CE<-new("BilanConditionEnv")
+bil_CE<-choice_c(bil_CE,
+ stationMesure=c("temp_gabion","coef_maree"),
+ datedebut="2008-01-01",
+ datefin="2008-12-31",
+ silent=FALSE)
+bil_CE<-connect(bil_CE)
+bil_CE at stationMesure@data$stm_description<-iconv(bil_CE at stationMesure@data$stm_description,from="latin1",to="UTF8")
+devtools::use_data(bil_CE,internal=FALSE,overwrite=TRUE)
\ No newline at end of file
More information about the Stacomir-commits
mailing list