Closed ejharrit closed 10 years ago
I haven't been able to reproduce the problem. I'm using R 3.1.0 on a linux system, the development version of swirl and the latest version of Data Analysis. I don't think the relevant code or lesson material has changed in quite a while however. Thinking...
Okay, I'm using it on windows 8 and just installed the lesson yesterday.
It worked correctly on my 32 bit windows 7 machine with the current CRAN version of swirl, install.packages("swirl")
, and the current version of the course, install_from_swirl("Data Analysis")
. I quit and resumed as you did right before the problem question.
I see you've contributed to swirl at github, so I imagine you are using the current CRAN version of swirl as well. Does the problem persist if you start the lesson from the beginning and go through it without the quit/resume step?
Swirl is just supposed to be testing the symbol which you enter against the symbol, cars. Somehow, that test is failing on your system, so I'm trying to figure out how that can happen.
There's a slightly modified version of Data Analysis in a zip file at this link. If you have time and inclination, you can download and install it from the zip file install_course_zip("path/to/download/Data_Analysis.zip")
. You must start this from the beginning rather than resume the previous version.
The test which is failing on your system is a very old piece of code. In the zipped course, I've masked it with a test of the same name which wraps more up-to-date, and presumably more robust, equivalent code. If you find time to test it and it works for you, I'll issue a pull request to swirl_courses.
Perfect! Thanks! Yep, I'm using the most recent swirl. I tried both the old and the new data analysis class on my work computer which uses Windows 7 and they both work. On my computer (with Windows 8), even when I tried restarting the lesson from the beginning it still wouldn't get past "cars" but I just tried the new one and finished the lesson without any issues. Thanks again for the help! I really appreciate it!
Thanks for testing the fix! I'll issue the pull request at swirl courses.
It's possible this problem will crop up elsewhere. We should probably change the offending test in swirl itself, rather than just mask it as we did here.
Running the Data_Analysis lesson for Central_Tendency I reach the point where it wants to use the OpenItnro data and prompts me to type 'cars' and I do and it keeps saying I need to try again without caps, parentheses, etc. (which I don't use). When I try using skip it tells me I almost had the right answer but R put it in for me and then prompts me to type 'cars' again and the cycle continues. I would appreciate any help to continue this lesson. Thanks!
| Would you like to continue with one of these lessons?
1: Data Analysis Central Tendency 2: No. Let me start something new.
Selection: 1
| Attemping to load lesson dependencies...
| Package ‘plotrix’ loaded correctly!
| Package ‘openintro’ loaded correctly!
| To illustrate these concepts, we will now look at a real dataset from the 'openintro' R package, which has | already been loaded for you. Type 'cars' and press Enter to see the dataset we'll be working with.
| Keep trying! Or, type info() for more options.
| Type 'cars' and press Enter. Do not use quotes, spaces, or uppercase letters.
| I've entered the correct answer for you.
| You're close...I can feel it! Try it again. Or, type info() for more options.
| Type 'cars' and press Enter. Do not use quotes, spaces, or uppercase letters.