Skip to content

Commit

Permalink
update docs to put values returned + some cleaning references to priv…
Browse files Browse the repository at this point in the history
…ate function with (:::)
  • Loading branch information
berthetclement committed Jul 23, 2024
1 parent c2b5ff8 commit 67f5051
Show file tree
Hide file tree
Showing 13 changed files with 47 additions and 12 deletions.
13 changes: 8 additions & 5 deletions R/aggregateResult.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
#' @importFrom stringr str_split
#' @importFrom stringi stri_replace_last_fixed
#' @importFrom memuse Sys.meminfo
#'
#' @return Object `list` of data.tables, each element representing one type
#' of element (areas, links, clusters)
#'
#' @export
#'
Expand Down Expand Up @@ -1417,21 +1420,22 @@ pmax.fast <- function(k,x) (x+k + abs(x-k))/2


# From antaresFlowbased duplicated necessary
#' Write ini file from list obtain by antaresRead:::readIniFile and modify by user
#' Write ini file from list obtain by antaresRead::readIniFile and modify by user
#'
#' @param listData \code{list}, modified list obtained by antaresRead:::readIniFile.
#' @param listData \code{list}, modified list obtained by antaresRead::readIniFile.
#' @param pathIni \code{Character}, Path to ini file.
#' @param overwrite logical, should file be overwritten if already exist?
#'
#' @examples
#'
#' \dontrun{
#' pathIni <- "D:/exemple_test/settings/generaldata.ini"
#' generalSetting <- antaresRead:::readIniFile(pathIni)
#' generalSetting <- antaresRead::readIniFile(pathIni)
#' generalSetting$output$synthesis <- FALSE
#' writeIni(generalSetting, pathIni)
#' }
#'
#' @keywords internal
#'
.writeIni <- function(listData, pathIni, overwrite = FALSE) {
if (file.exists(pathIni)) {
Expand Down Expand Up @@ -2159,8 +2163,7 @@ aggregateResult_old <- function(opts, verbose = 1,
#' @importFrom pbapply pblapply pboptions
#' @importFrom doParallel registerDoParallel
#'
#'
#' @rdname aggregatate_mc_all_old
#' @noRd
#'
parAggregateMCall_old <- function(opts,
nbcl = 8,
Expand Down
2 changes: 2 additions & 0 deletions R/giveSize.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
#'
#' @param x \code{numeric} RAM limit in Go
#'
#' @return `list` (returned by [options()])
#'
#' @examples
#' \dontrun{
#' #Set maximum ram to used to 50 Go
Expand Down
3 changes: 3 additions & 0 deletions R/hvdcModification.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
#' @param removeHvdcAreas \code{boolean} remove HVDC areas.
#' @param reafectLinks \code{boolean} .
#'
#' @return Object of class "antaresDataList" is returned.
#' It is a list of data.tables, each element representing one type of element (areas, links, clusters)
#'
#' @examples
#' \dontrun{
#'
Expand Down
3 changes: 3 additions & 0 deletions R/ponderateMcAggregation.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
#' @param fun \code{function} function to use
#' @param ... \code{args} others args pass to fun
#'
#' @return
#' Object of class "antaresDataTable".
#'
#' @examples
#' \dontrun{
#' data <- readAntares(areas = 'all', mcYears = 'all')
Expand Down
3 changes: 2 additions & 1 deletion R/setHvdcAreas.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
#'
#'
#'
#' @return A list with three elements:
#' @return Object of class "antaresDataList" is returned.
#' It is a list of data.tables, each element representing one type of element (areas, links, clusters)
#'
#'
#' @examples
Expand Down
4 changes: 4 additions & 0 deletions R/utils_api.R
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,10 @@ setSimulationPathAPI <- function(host, study_id, token, simulation = NULL,
#' list of simulation parameters returned by the function
#' \code{\link{setSimulationPathAPI}}
#' @param timeout \code{numeric} API timeout (seconds). Default to 60.
#'
#' @return
#' Object of class `simOptions`, list of options used to read the data contained in the last
#' simulation read by \code{\link{setTimeoutAPI}}.
#'
#' @export
#'
Expand Down
4 changes: 4 additions & 0 deletions man/aggregatate_mc_all.Rd

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

10 changes: 5 additions & 5 deletions man/dot-writeIni.Rd

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

4 changes: 4 additions & 0 deletions man/hvdcModification.Rd

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

3 changes: 3 additions & 0 deletions man/ponderateMcAggregation.Rd

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

3 changes: 2 additions & 1 deletion man/setHvdcAreas.Rd

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

3 changes: 3 additions & 0 deletions man/setRam.Rd

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

4 changes: 4 additions & 0 deletions man/setTimeoutAPI.Rd

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

0 comments on commit 67f5051

Please sign in to comment.