Skip to content

Commit

Permalink
* Do not duplicate irace-acotsp.Rdata. Regenerate examples.
Browse files Browse the repository at this point in the history
  • Loading branch information
MLopez-Ibanez committed Jul 14, 2024
1 parent ed47b84 commit 097696f
Show file tree
Hide file tree
Showing 8 changed files with 311 additions and 227 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ examples: quick-install
@echo "*** Makefile: Regenerating data for vignettes and examples. This will take time..."
cd devel-examples/vignette-example/ && R --vanilla --slave --file=create-example-file.R
mv -t vignettes/ devel-examples/vignette-example/*.Rdata devel-examples/vignette-example/irace-acotsp-stdout.txt
mv -t inst/exdata/ vignettes/log-ablation.Rdata
mv -t inst/exdata/ vignettes/log-ablation.Rdata vignettes/irace-acotsp.Rdata
$(MAKE) vignettes
$(MAKE) check

Expand Down
Binary file modified devel-examples/vignette-example/sann.rda
Binary file not shown.
1 change: 0 additions & 1 deletion inst/exdata/irace-acotsp.Rdata

This file was deleted.

Binary file added inst/exdata/irace-acotsp.Rdata
Binary file not shown.
Binary file modified inst/exdata/log-ablation.Rdata
Binary file not shown.
Binary file modified vignettes/examples.Rdata
Binary file not shown.
526 changes: 305 additions & 221 deletions vignettes/irace-acotsp-stdout.txt

Large diffs are not rendered by default.

Binary file removed vignettes/irace-acotsp.Rdata
Binary file not shown.
10 changes: 5 additions & 5 deletions vignettes/irace-package.Rnw
Original file line number Diff line number Diff line change
Expand Up @@ -221,8 +221,8 @@ library(knitr)
<<exampleload,eval=TRUE,include=FALSE>>=
library("irace")
load("examples.Rdata") # loads "experiment" and "output"
iraceResults <- irace::read_logfile("irace-acotsp.Rdata")
log_ablation_file <- file.path(system.file(package="irace"), "exdata", "log-ablation.Rdata")
iraceResults <- irace::read_logfile(system.file(package="irace", "exdata", "irace-acotsp.Rdata", mustWork=TRUE))
log_ablation_file <- system.file(package="irace", "exdata", "log-ablation.Rdata", mustWork = TRUE)
load(log_ablation_file)
options(width = 70)
@
Expand Down Expand Up @@ -1946,7 +1946,7 @@ The \aR data file created by \irace (by default as \code{irace.Rdata}, see optio
\code{iraceResults}. You can load this file in the \aR console with:
<<load_rdata, prompt=FALSE, eval=FALSE>>=
iraceResults <- read_logfile("irace-acotsp.Rdata")
iraceResults <- read_logfile(system.file(package="irace", "exdata", "irace-acotsp.Rdata", mustWork=TRUE))
@
The \code{iraceResults} object is a list, and the elements of a list can be
Expand Down Expand Up @@ -1992,7 +1992,7 @@ configuration corresponds to the first ID. To obtain the values of the
parameters of all elite configurations found by \irace use:
<<get_elites, prompt=TRUE, eval=TRUE, comment="">>=
getFinalElites("irace-acotsp.Rdata", n = 0)
getFinalElites(system.file(package="irace", "exdata", "irace-acotsp.Rdata", mustWork=TRUE), n = 0)
@
\item \code{iterationElites}: A vector containing the best candidate configuration ID of each iteration. The best configuration found corresponds to the last one
Expand Down Expand Up @@ -2737,7 +2737,7 @@ plotAblation(ablog)
@
<<testAb, fig.pos="htb!", fig.align="center", out.width="0.75\\textwidth", fig.cap="Example of plot generated by \\code{plotAblation()}.", prompt=FALSE, eval=TRUE, echo=FALSE>>=
logfile <- file.path(system.file(package="irace"), "exdata", "log-ablation.Rdata")
logfile <- system.file(package="irace", "exdata", "log-ablation.Rdata", mustWork=TRUE)
plotAblation(logfile)
@
Expand Down

0 comments on commit 097696f

Please sign in to comment.