Skip to content

Commit

Permalink
fixed check
Browse files Browse the repository at this point in the history
  • Loading branch information
pvictor committed Dec 16, 2021
1 parent e80ddae commit 1f2e259
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ test_case/
^docs$
^pkgdown$
^\.github$
man-roxygen/
8 changes: 5 additions & 3 deletions R/API.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,18 @@
#' @description Use this to generate command without an active API connection,
#' it allow to use function to edit a study to later on get API commands.
#'
#' @template opts
#' @template opts-value
#' @export
#'
#' @examples
#' \dontrun{
#' # Mock simulation API
#' mockSimulationAPI()
#' # Create an area
#' createArea("new area")
#' # Get commands
#' getAPIcommands()
#' getVariantCommands()
#' }
mockSimulationAPI <- function() {
opts <- list(
typeLoad = "api",
Expand Down Expand Up @@ -97,7 +99,7 @@ getVariantCommands <- function(last = NULL, actions = NULL, opts = antaresRead::
#'
#' @importFrom jsonlite write_json
writeVariantCommands <- function(path, last = NULL, actions = NULL, ..., opts = antaresRead::simOptions()) {
commands <- getAPIcommands(last = last, actions = actions, opts = opts)
commands <- getVariantCommands(last = last, actions = actions, opts = opts)
jsonlite::write_json(x = commands, path = path, auto_unbox = TRUE, ...)
}

Expand Down
1 change: 1 addition & 0 deletions man-roxygen/opts-value.R
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#' @return An updated list containing various information about the simulation.
8 changes: 3 additions & 5 deletions man/mockSimulationAPI.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion test.json

This file was deleted.

0 comments on commit 1f2e259

Please sign in to comment.