I was informed that you had some problems with error messages in exercise 20 of this course:
User first comment: " In section 20, "ANOVA" of this course, between steps 4 and 5, the R console crashes and gives the error:
Oops, something went wrong.
If the problem persists, please report an issue.
refreshing does not fix this. I am not sure what I have done wrong, perhaps something in the SCT on the previous question?
Exercise 20 (ANOVA) is a sequential exercise, and variables are not saved in-between steps of sequential exercises. So in step 5, we try to call TukeyHSD(ANOVA1) when ANOVA1 is not available for that step.
To solve this, the code to create ANOVA1 can be added to the Pre-Exercise Code for this exercise OR be added to the sample/solution code in this step:
# Perform ANOVA using the function aov(data~category)
ANOVA1 <- aov(walk$speed~walk$treatment)
# Run a Tukey test using TukeyHSD()
TukeyHSD(ANOVA1)
Also, I noticed from the build log that chapter 1 exercise 9 uses check_arg(., "x") in the SCT section when it should most likely be check_arg(., "formula"):
Hi @kirstyflower,
I was informed that you had some problems with error messages in exercise 20 of this course:
Exercise 20 (ANOVA) is a sequential exercise, and variables are not saved in-between steps of sequential exercises. So in step 5, we try to call
TukeyHSD(ANOVA1)
whenANOVA1
is not available for that step.To solve this, the code to create
ANOVA1
can be added to the Pre-Exercise Code for this exercise OR be added to the sample/solution code in this step:Also, I noticed from the build log that chapter 1 exercise 9 uses![datacamp_-_course_overview](https://user-images.githubusercontent.com/22865592/51271549-d8d26780-1995-11e9-8a04-e992a83bad25.png)
check_arg(., "x")
in the SCT section when it should most likely becheck_arg(., "formula")
: