[Stacomir-commits] r235 - in pkg/stacomir: inst/examples man
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Wed Nov 16 10:22:34 CET 2016
Author: briand
Date: 2016-11-16 10:22:34 +0100 (Wed, 16 Nov 2016)
New Revision: 235
Modified:
pkg/stacomir/inst/examples/bilancarlot_example.R
pkg/stacomir/man/BilanArgentee-class.Rd
pkg/stacomir/man/Bilan_carlot-class.Rd
pkg/stacomir/man/envir_stacomi.Rd
Log:
Modified: pkg/stacomir/inst/examples/bilancarlot_example.R
===================================================================
--- pkg/stacomir/inst/examples/bilancarlot_example.R 2016-11-16 09:07:59 UTC (rev 234)
+++ pkg/stacomir/inst/examples/bilancarlot_example.R 2016-11-16 09:22:34 UTC (rev 235)
@@ -50,11 +50,11 @@
b_carlot at data$std_libelle[b_carlot at data$std_libelle=="civelle"]<-"Glass eel (ramp)"
# creating a boxplot with custom output : an example
# again if you use require(ggplot2) the :: argument is not needed
-\dontrun{
+
if (requireNamespace("ggplot2", quietly = TRUE)){
g<-ggplot2::ggplot(b_carlot at data)+
ggplot2::geom_boxplot(ggplot2::aes(x=annee,
- ymax =car_valeur_quantitatif,
+ y =car_valeur_quantitatif,
fill = std_libelle))+
ggplot2::xlab("size")+ggplot2::ylab("year")+
ggplot2::scale_fill_manual("stage & fishway",
@@ -64,7 +64,7 @@
ggplot2::theme_bw()
print(g)
}
-}
+
# get a simple summary using Hmisc::describe
summary(b_carlot)
# get the command line to create the object using choice_c
Modified: pkg/stacomir/man/BilanArgentee-class.Rd
===================================================================
--- pkg/stacomir/man/BilanArgentee-class.Rd 2016-11-16 09:07:59 UTC (rev 234)
+++ pkg/stacomir/man/BilanArgentee-class.Rd 2016-11-16 09:22:34 UTC (rev 235)
@@ -94,11 +94,11 @@
b_carlot at data$std_libelle[b_carlot at data$std_libelle=="civelle"]<-"Glass eel (ramp)"
# creating a boxplot with custom output : an example
# again if you use require(ggplot2) the :: argument is not needed
-\dontrun{
+
if (requireNamespace("ggplot2", quietly = TRUE)){
g<-ggplot2::ggplot(b_carlot at data)+
ggplot2::geom_boxplot(ggplot2::aes(x=annee,
- ymax =car_valeur_quantitatif,
+ y =car_valeur_quantitatif,
fill = std_libelle))+
ggplot2::xlab("size")+ggplot2::ylab("year")+
ggplot2::scale_fill_manual("stage & fishway",
@@ -108,7 +108,7 @@
ggplot2::theme_bw()
print(g)
}
-}
+
# get a simple summary using Hmisc::describe
summary(b_carlot)
# get the command line to create the object using choice_c
Modified: pkg/stacomir/man/Bilan_carlot-class.Rd
===================================================================
--- pkg/stacomir/man/Bilan_carlot-class.Rd 2016-11-16 09:07:59 UTC (rev 234)
+++ pkg/stacomir/man/Bilan_carlot-class.Rd 2016-11-16 09:22:34 UTC (rev 235)
@@ -86,11 +86,11 @@
b_carlot at data$std_libelle[b_carlot at data$std_libelle=="civelle"]<-"Glass eel (ramp)"
# creating a boxplot with custom output : an example
# again if you use require(ggplot2) the :: argument is not needed
-\dontrun{
+
if (requireNamespace("ggplot2", quietly = TRUE)){
g<-ggplot2::ggplot(b_carlot at data)+
ggplot2::geom_boxplot(ggplot2::aes(x=annee,
- ymax =car_valeur_quantitatif,
+ y =car_valeur_quantitatif,
fill = std_libelle))+
ggplot2::xlab("size")+ggplot2::ylab("year")+
ggplot2::scale_fill_manual("stage & fishway",
@@ -100,7 +100,7 @@
ggplot2::theme_bw()
print(g)
}
-}
+
# get a simple summary using Hmisc::describe
summary(b_carlot)
# get the command line to create the object using choice_c
Modified: pkg/stacomir/man/envir_stacomi.Rd
===================================================================
--- pkg/stacomir/man/envir_stacomi.Rd 2016-11-16 09:07:59 UTC (rev 234)
+++ pkg/stacomir/man/envir_stacomi.Rd 2016-11-16 09:22:34 UTC (rev 235)
@@ -5,7 +5,7 @@
\alias{envir_stacomi}
\title{Environment where most objects from the package are stored and then loaded
by the charge method}
-\format{An object of class \code{environment} of length 11.}
+\format{An object of class \code{environment} of length 9.}
\usage{
envir_stacomi
More information about the Stacomir-commits
mailing list