Adds tests for whether all designers work when all arguments are fixed
Note
Current use of substitute does not preserve comments in line. It only preserves comment lines that are separated from previous and subsequent code lines by a new line. For example, all of the below are preserved:
population <- declare_population(
N = N,
X = rbinom(N, 1, prob_X) == 1,
Y = (X & causal_process == "X_causes_Y") | # 1. X causes Y
(!X & causal_process == "X_causes_not_Y") | # 2. Not X causes Y
(causal_process == "Y_regardless") # 3. Y happens irrespective of X
)
Issue #246: Designers were retuning error when all arguments were fixed for some designers. For example:
PR
Note
Current use of substitute does not preserve comments in line. It only preserves comment lines that are separated from previous and subsequent code lines by a new line. For example, all of the below are preserved:
But not the following: