if (rlang::is_installed("ggplot2")) {
library(ggplot2)
two_param_l2 <- get_design(2, 100, type = "audze_eglais")
ggplot(two_param_l2, aes(X1, X2)) +
geom_point() +
coord_equal()
}
no_design <- try(get_design(2, 1000), silent = TRUE)
cat(as.character(no_design))
Run the code above in your browser using DataLab