-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fast_check.R failing #36
Comments
The current code is out-of-date as R libraries have changed a lot since we released the book. We will try to update it when we have a chance. |
I don't suppose you know versions that the code will run on? Could probably find a way to install old versions in the mean time. |
No, but the code ran correctly when the book was released in February 2012. |
I found if I change the code to :
I can get a nice plot. (with R version 3.3.1) |
I have the same issue with R version 3.4.1 (2017-06-30) in x86_64-w64-mingw32 : The problem lies in the ggplot function scale_x_date. In the original code this is coded as:
The breaks in scale_x_date has been adjusted to date_breaks. If you adjust the code to the following it works.
In the rest of the code where you see ggplot and scale_x_date, you will have to adjust the breaks into date_breaks. |
I'm new to R, so I do not have a great ability to debug issues yet. After setting up the R environment on Xubuntu and OSX, I keep running into the same issues when running fast_check.R as well as the script for the first chapter.
Here's my R version:
R version 3.2.3 (2015-12-10) -- "Wooden Christmas-Tree"
Is there a preferred environment/version for running the sample code, or am I really missing something?
The text was updated successfully, but these errors were encountered: