[Stacomir-commits] r219 - in pkg/stacomir: R man
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Sat Sep 24 12:02:08 CEST 2016
Author: briand
Date: 2016-09-24 12:02:07 +0200 (Sat, 24 Sep 2016)
New Revision: 219
Modified:
pkg/stacomir/R/BilanFonctionnementDF.r
pkg/stacomir/R/BilanMigration.r
pkg/stacomir/R/BilanMigrationMult.r
pkg/stacomir/man/BilanFonctionnementDF-class.Rd
pkg/stacomir/man/BilanMigrationMult-class.Rd
Log:
Modified: pkg/stacomir/R/BilanFonctionnementDF.r
===================================================================
--- pkg/stacomir/R/BilanFonctionnementDF.r 2016-09-24 08:28:47 UTC (rev 218)
+++ pkg/stacomir/R/BilanFonctionnementDF.r 2016-09-24 10:02:07 UTC (rev 219)
@@ -25,7 +25,7 @@
#' \code{\linkS4class{BilanMigrationInterAnnuelle}}
#' \code{\linkS4class{BilanMigrationPar}}
#' @concept Bilan Object
-#' @examples examples/bilanFonctionnementDF_example.R
+#' @example inst/examples/bilanFonctionnementDF_example.R
#' @export
setClass(Class="BilanFonctionnementDF",
representation= representation(data="data.frame",
Modified: pkg/stacomir/R/BilanMigration.r
===================================================================
--- pkg/stacomir/R/BilanMigration.r 2016-09-24 08:28:47 UTC (rev 218)
+++ pkg/stacomir/R/BilanMigration.r 2016-09-24 10:02:07 UTC (rev 219)
@@ -26,7 +26,7 @@
#' \code{\linkS4class{BilanMigrationInterAnnuelle}},
#' \code{\linkS4class{BilanMigrationPar}}
#' @concept Bilan Object
-#' @example examples/bilanMigration_Arzal.R
+#' @example inst/examples/bilanMigration_Arzal.R
#' @export
setClass(Class="BilanMigration",
representation=
Modified: pkg/stacomir/R/BilanMigrationMult.r
===================================================================
--- pkg/stacomir/R/BilanMigrationMult.r 2016-09-24 08:28:47 UTC (rev 218)
+++ pkg/stacomir/R/BilanMigrationMult.r 2016-09-24 10:02:07 UTC (rev 219)
@@ -25,7 +25,7 @@
#' method if any weight are found in the data slot.
#' @slot time.sequence A POSIXt time sequence
#' @export
-#' @example examples/bilanMigrationMult_Arzal.R
+#' @example inst/examples/bilanMigrationMult_Arzal.R
#' @author Cedric Briand \email{cedric.briand"at"eptb-vilaine.fr}
setClass(Class="BilanMigrationMult",
representation=
Modified: pkg/stacomir/man/BilanFonctionnementDF-class.Rd
===================================================================
--- pkg/stacomir/man/BilanFonctionnementDF-class.Rd 2016-09-24 08:28:47 UTC (rev 218)
+++ pkg/stacomir/man/BilanFonctionnementDF-class.Rd 2016-09-24 10:02:07 UTC (rev 219)
@@ -18,8 +18,33 @@
\code{new("BilanFonctionnementDF")}.
}
\examples{
-inst/examples/bilanFonctionnementDF_example.R
+require(stacomiR)
+stacomi(gr_interface=FALSE,
+ login_window=FALSE,
+ database_expected=FALSE)
+## An example that will work with the database installed only
+\dontrun{
+ bfDF=new("BilanFonctionnementDF")
+ bfDF<-choice_c(bfDF,
+ 1,
+ horodatedebut="2015-01-01",
+ horodatefin="2015-12-31",
+ silent=TRUE)
+ # the times at Arzal are recorded continuously
+ # they are converted to date when a time appears while the hour is changing
+ # hence the following
+ Sys.setenv(TZ='GMT')
+ bfDF<-charge(bfDF)
+ plot(bfDF,plot.type="1")
+ plot(bfDF,plot.type="2",title="A nice title")
+ plot(bfDF,plot.type="3",title="A nice title")
+ plot(bfDF,plot.type="4")
}
+
+
+
+
+}
\author{
Cedric Briand \email{cedric.briand"at"eptb-vilaine.fr}
}
Modified: pkg/stacomir/man/BilanMigrationMult-class.Rd
===================================================================
--- pkg/stacomir/man/BilanMigrationMult-class.Rd 2016-09-24 08:28:47 UTC (rev 218)
+++ pkg/stacomir/man/BilanMigrationMult-class.Rd 2016-09-24 10:02:07 UTC (rev 219)
@@ -24,7 +24,7 @@
\item{\code{calcdata}}{A "list" of calculated daily data, one per dc, filled in by the calcule method}
-\item{\code{coef_conversion}}{A data.frame of daily weight to number conversion coefficients, filled in by the connect
+\item{\code{coef_conversion}}{A data frame of daily weight to number conversion coefficients, filled in by the connect
method if any weight are found in the data slot.}
\item{\code{time.sequence}}{A POSIXt time sequence}
More information about the Stacomir-commits
mailing list