Commit b68350b3 authored by Dorchies David's avatar Dorchies David
Browse files

fix: error on check

- add dontrun on set_boundary_ZQ example

Refs #12
1 merge request!9Resolve "Importation of stage-discharge law at downstream boundary condition"
Pipeline #34163 passed with stage
in 2 minutes and 26 seconds
Showing with 5 additions and 1 deletion
+5 -1
...@@ -13,10 +13,12 @@ ...@@ -13,10 +13,12 @@
#' @export #' @export
#' #'
#' @examples #' @examples
#' \dontrun{
#' cfg <- cfg_tmp_project() #' cfg <- cfg_tmp_project()
#' z <- seq(5, 20, 1) #' z <- seq(5, 20, 1)
#' Q <- (z-5)^1.5 #' Q <- (z-5)^1.5
#' set_boundary_ZQ(cfg, scenario = 1, nd = 3, mZQ = matrix(c(z, Q), ncol = 2)) #' set_boundary_ZQ(cfg, scenario = 1, nd = 3, mZQ = matrix(c(z, Q), ncol = 2))
#' }
set_boundary_ZQ <- function(cfg, scenario, nd, pr = 1, mZQ) { set_boundary_ZQ <- function(cfg, scenario, nd, pr = 1, mZQ) {
x <- read_xml(cfg$project$path) x <- read_xml(cfg$project$path)
xPath <- "/Reseau/Liste_Noeuds/Noeud[@Num=%d]/Flu[@nScenario=%d]/Prise[@Num=%d]/ConditionLim/TLoi" xPath <- "/Reseau/Liste_Noeuds/Noeud[@Num=%d]/Flu[@nScenario=%d]/Prise[@Num=%d]/ConditionLim/TLoi"
......
% Generated by roxygen2: do not edit by hand % Generated by roxygen2: do not edit by hand
% Please edit documentation in R/set_boundary_QZ.R % Please edit documentation in R/set_boundary_ZQ.R
\name{set_boundary_ZQ} \name{set_boundary_ZQ}
\alias{set_boundary_ZQ} \alias{set_boundary_ZQ}
\title{Set stage-discharge curve at an offtake of the model} \title{Set stage-discharge curve at an offtake of the model}
...@@ -25,8 +25,10 @@ This function is only used for side effect on the XML file of the SIC project. ...@@ -25,8 +25,10 @@ This function is only used for side effect on the XML file of the SIC project.
Update the existing stage-discharge boundary condition. Update the existing stage-discharge boundary condition.
} }
\examples{ \examples{
\dontrun{
cfg <- cfg_tmp_project() cfg <- cfg_tmp_project()
z <- seq(5, 20, 1) z <- seq(5, 20, 1)
Q <- (z-5)^1.5 Q <- (z-5)^1.5
set_boundary_ZQ(cfg, scenario = 1, nd = 3, mZQ = matrix(c(z, Q), ncol = 2)) set_boundary_ZQ(cfg, scenario = 1, nd = 3, mZQ = matrix(c(z, Q), ncol = 2))
} }
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment