ANOVA R code for generalized randomized block design

#1
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.
 

Dason

Ambassador to the humans
#2
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
Code:
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.