Skip to content

Commit 872c043

Browse files
committed
update docs
1 parent 46d5eb5 commit 872c043

File tree

4 files changed

+53
-7
lines changed

4 files changed

+53
-7
lines changed

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: antaresEditObject
22
Type: Package
33
Title: Edit an 'Antares' Simulation
4-
Version: 0.1.3
4+
Version: 0.1.4
55
Authors@R: c(
66
person("Victor", "Perrier", email = "[email protected]", role = c("aut", "cre")),
77
person("Baptiste", "Seguinot", email = "[email protected]", role = "ctb"),

R/editLink.R

+5-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@
4040
#'
4141
#' @examples
4242
#' \dontrun{
43-
#' createLink(from = "myarea", to = "myarea2")
43+
#' editLink(
44+
#' from = "area1",
45+
#' to = "area2",
46+
#' transmission_capacities = "infinite"
47+
#' )
4448
#' }
4549
editLink <- function(from, to, hurdles_cost = NULL,
4650
transmission_capacities = NULL,

README.md

+47-3
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,14 @@ You need to set the path to an Antares simulation in "input" mode :
3737
antaresRead::setSimulationPath(path = "path/to/study", simulation = "input")
3838
```
3939

40+
Or you can simply create a new study :
41+
42+
```r
43+
createStudy("path/to/study")
44+
```
45+
46+
47+
4048
## Save simulation
4149

4250
Before modifying your simulation, you can save it in an archive :
@@ -78,7 +86,7 @@ You can initialize a cluster with some parameters :
7886

7987
```r
8088
createCluster(
81-
area = "fr",
89+
area = "myarea",
8290
cluster_name = "myareacluster",
8391
group = "other",
8492
unitcount = 1,
@@ -89,13 +97,23 @@ createCluster(
8997
)
9098
```
9199

100+
You can edit the settings of an existing cluster :
101+
102+
```r
103+
editCluster(
104+
area = "myarea",
105+
cluster_name = "myareacluster",
106+
nominalcapacity = 10600.000
107+
)
108+
```
109+
92110

93111
## Create a new link
94112

95113
```r
96114
createLink(
97-
from = "fr",
98-
to = "myarea",
115+
from = "area1",
116+
to = "area2",
99117
propertiesLink = propertiesLinkOptions(
100118
hurdles_cost = FALSE,
101119
transmission_capacities = "enabled"
@@ -104,6 +122,16 @@ createLink(
104122
)
105123
```
106124

125+
You can edit the settings of an existing link :
126+
127+
```r
128+
editLink(
129+
from = "area1",
130+
to = "area2",
131+
transmission_capacities = "infinite"
132+
)
133+
```
134+
107135

108136

109137
## Create a binding constraint
@@ -167,3 +195,19 @@ removeArea("myarea")
167195
```
168196

169197

198+
## Run an Antares simulation
199+
200+
Launch an Antares simulation from R :
201+
202+
```r
203+
runSimulation(
204+
name = "myAwesomeSimulation",
205+
mode = "economy",
206+
path_solver = "C:/path/to/antares-solver.exe",
207+
show_output_on_console = TRUE
208+
)
209+
```
210+
211+
212+
213+

antaresEditObject.Rproj

-2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,4 @@ LaTeX: pdfLaTeX
1515
BuildType: Package
1616
PackageUseDevtools: Yes
1717
PackageInstallArgs: --no-multiarch --with-keep.source
18-
PackageBuildArgs: --keep-empty-dirs
19-
PackageBuildBinaryArgs: --keep-empty-dirs
2018
PackageRoxygenize: rd,collate,namespace

0 commit comments

Comments
 (0)