[Stacomir-commits] r178 - in pkg/stacomir: R man

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Wed Aug 24 20:53:15 CEST 2016


Author: briand
Date: 2016-08-24 20:53:15 +0200 (Wed, 24 Aug 2016)
New Revision: 178

Modified:
   pkg/stacomir/R/RefChoix.r
   pkg/stacomir/R/Refperiode.r
   pkg/stacomir/R/stacomi.r
   pkg/stacomir/man/choice-RefChoix-method.Rd
   pkg/stacomir/man/getvalue-Refperiode-method.Rd
   pkg/stacomir/man/stacomi.Rd
Log:
Examples pb for Rcheck

Modified: pkg/stacomir/R/RefChoix.r
===================================================================
--- pkg/stacomir/R/RefChoix.r	2016-08-24 16:43:13 UTC (rev 177)
+++ pkg/stacomir/R/RefChoix.r	2016-08-24 18:53:15 UTC (rev 178)
@@ -53,12 +53,13 @@
 #' Used by the graphical interface.
 #' @author Cedric Briand \email{cedric.briand"at"eptb-vilaine.fr}
 #' @examples 
+#' \dontrun{
 #'  object=new("RefChoix")
 #'  object<-charge(object,vecteur=c("oui","non"),label="essai",selected=as.integer(1))
 #' win=gwindow(title="test refChoix")
 #' group=ggroup(container=win,horizontal=FALSE)
 #' choice(object) 
-#' dispose(win)
+#' dispose(win)}
 setMethod("choice",signature=signature("RefChoix"),definition=function(object) {
 			hlist=function(h,...){
 				valeurchoisie=svalue(choice)

Modified: pkg/stacomir/R/Refperiode.r
===================================================================
--- pkg/stacomir/R/Refperiode.r	2016-08-24 16:43:13 UTC (rev 177)
+++ pkg/stacomir/R/Refperiode.r	2016-08-24 18:53:15 UTC (rev 178)
@@ -23,7 +23,9 @@
 #' @return "a character to be used in seq.POSIXt
 #' @author Cedric Briand \email{cedric.briand"at"eptb-vilaine.fr}
 #' @examples 
+#' \dontrun{
 #'  getvalue(new("Refperiode"),"quinzaine")
+#' }
 setMethod("getvalue",signature=signature("Refperiode"), definition=function(object,id,...)
   {return(as.character(object at data[object at data$id==id,"pgval"]))
   } ) 
\ No newline at end of file

Modified: pkg/stacomir/R/stacomi.r
===================================================================
--- pkg/stacomir/R/stacomi.r	2016-08-24 16:43:13 UTC (rev 177)
+++ pkg/stacomir/R/stacomi.r	2016-08-24 18:53:15 UTC (rev 178)
@@ -267,18 +267,16 @@
 #' @examples
 #' 
 #'  require(stacomiR)
-#'  \dontrun{
-#' 	 ## launch stacomi with the graphical interface
+#' #launch stacomi with the graphical interface
+#'  \dontrun{ 	
 #' 	stacomi()
 #' }
-#'  ## launch stacomi but do not prompt for password
-#'  \dontrun{
-#' 	 ## launch stacomi with the graphical interface
+#'  # launch stacomi but do not prompt for password
+#'  \dontrun{	
 #' 	stacomi(login_window=FALSE)
-#' } 
-#' ##
-#' launch stacomi without connection to the database
-#' stacomi(gr_interface=FALSE,pre_launch_test=FALSE)
+#' }  
+#' #launch stacomi without connection to the database
+#' stacomi(gr_interface=FALSE,login_window=FALSE,pre_launch_test=FALSE)
 #' @export
 stacomi=function(gr_interface=TRUE,login_window=TRUE,pre_launch_test=TRUE){
 	# first loading of connection and odbc info using chargexml()

Modified: pkg/stacomir/man/choice-RefChoix-method.Rd
===================================================================
--- pkg/stacomir/man/choice-RefChoix-method.Rd	2016-08-24 16:43:13 UTC (rev 177)
+++ pkg/stacomir/man/choice-RefChoix-method.Rd	2016-08-24 18:53:15 UTC (rev 178)
@@ -11,12 +11,13 @@
 Used by the graphical interface.
 }
 \examples{
+\dontrun{
  object=new("RefChoix")
  object<-charge(object,vecteur=c("oui","non"),label="essai",selected=as.integer(1))
 win=gwindow(title="test refChoix")
 group=ggroup(container=win,horizontal=FALSE)
 choice(object) 
-dispose(win)
+dispose(win)}
 }
 \author{
 Cedric Briand \email{cedric.briand"at"eptb-vilaine.fr}

Modified: pkg/stacomir/man/getvalue-Refperiode-method.Rd
===================================================================
--- pkg/stacomir/man/getvalue-Refperiode-method.Rd	2016-08-24 16:43:13 UTC (rev 177)
+++ pkg/stacomir/man/getvalue-Refperiode-method.Rd	2016-08-24 18:53:15 UTC (rev 178)
@@ -14,8 +14,10 @@
 Returns the POSIXt value of a given name
 }
 \examples{
+\dontrun{
  getvalue(new("Refperiode"),"quinzaine")
 }
+}
 \author{
 Cedric Briand \email{cedric.briand"at"eptb-vilaine.fr}
 }

Modified: pkg/stacomir/man/stacomi.Rd
===================================================================
--- pkg/stacomir/man/stacomi.Rd	2016-08-24 16:43:13 UTC (rev 177)
+++ pkg/stacomir/man/stacomi.Rd	2016-08-24 18:53:15 UTC (rev 178)
@@ -43,18 +43,16 @@
 \examples{
 
  require(stacomiR)
- \dontrun{
-	 ## launch stacomi with the graphical interface
+#launch stacomi with the graphical interface
+ \dontrun{ 	
 	stacomi()
 }
- ## launch stacomi but do not prompt for password
- \dontrun{
-	 ## launch stacomi with the graphical interface
+ # launch stacomi but do not prompt for password
+ \dontrun{	
 	stacomi(login_window=FALSE)
-} 
-##
-launch stacomi without connection to the database
-stacomi(gr_interface=FALSE,pre_launch_test=FALSE)
+}  
+#launch stacomi without connection to the database
+stacomi(gr_interface=FALSE,login_window=FALSE,pre_launch_test=FALSE)
 }
 \author{
 Cedric Briand \email{cedric.briand"at"eptb-vilaine.fr}



More information about the Stacomir-commits mailing list