Closed nick-ulle closed 5 years ago
Can the student install the reprex package, run the example, and post the output here? The most likely scenario is a typo in the code the student ran, e.g. they didn’t actually call the data frame df
or they forgot to execute that line.
Because they’re running an outdated version of ggplot2, it’s difficult for me to know exactly what caused this error message, but I believe using df
without defining it could be the reason.
I ran the code on their machine myself -- it's not a problem with df
being undefined.
I will have them update ggplot2 and see if the example still causes an error.
Updating to the latest version of ggplot2 solved the issue.
Thanks!
A student in a class I'm teaching encounters an error for the following example:
I'm not able to reproduce the error on my machine. The
sessionInfo()
from the student's machine isAny guidance on how to solve this problem is much appreciated!