Skip to content

Commit

Permalink
Fix 2624
Browse files Browse the repository at this point in the history
  • Loading branch information
JTPetter committed Jul 3, 2024
1 parent 9872301 commit 509750f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion R/doeFactorial.R
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ doeFactorial <- function(jaspResults, dataset, options, ...) {
df <- .doeRsmCategorical2df(options[["categoricalVariables"]])
designSpec <- .doeFactorialGetSelectedDesign(jaspResults, options)
if (length(designSpec) == 0) {
return()
stop("No generator provided.")
}
if (length(unique(df[["name"]])) != options[["numberOfCategorical"]]) {
stop("Duplicate factor names are not allowed.")
Expand Down
3 changes: 3 additions & 0 deletions R/doeResponseSurfaceMethodology.R
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,9 @@ doeResponseSurfaceMethodology <- function(jaspResults, dataset, options, ...) {
if (!dir.exists(dirname(outpath)))
return()

if (is.null(design))
return()

out_design <- design
colnames(out_design)[1:2] <- c("RunOrder", "StandardOrder")
out_design[["Response"]] <- ""
Expand Down

0 comments on commit 509750f

Please sign in to comment.