ANOVA R code for generalized randomized block design

Does anyone know how to write R code for an ANOVA using a generalized randomized block design? I have two blocks (random) and three treatments (fixed) each with two reps at each block. I know the RCBD code is aov(object~Block*Trt), but I'm not sure how to specify the error term for the GRBD.


Ambassador to the humans
Do you want to have blocks be a random term with a normal distribution? You should be able to do that pretty easy using the lme4 package
o <- lmer(y ~ trt + (1 | block), data = dat)
That gives you fixed effects for your treatments, a random block effect (normally distributed), and it assumes the response is normally distributed.