Fix yaml scanner error - #508
Conversation
Previously I saw this error when trying to load the "Manipulating data with dplyr" lesson: Error in yaml.load(readLines(con, warn = readLines.warn), error.label = error.label, : (/home/gdb/R/x86_64-pc-linux-gnu-library/4.2/swirl/Courses/Getting_and_Cleaning_Data/Manipulating_Data_with_dplyr/lesson.yaml) Scanner error: while scanning a tag at line 205, column 9 did not find expected whitespace or line break at line 205, column 19 Enclosing the string that starts with a '!' in single quotes fixes this.
|
Has this been added? I can't access this lesson for the same error so I'm quite stuck.. |
@kommaqueen no, it has not been fixed, but you can fix it on your machine yourself by finding where swirl is installed and editing the file
You should only need to add single quotes; the line should look exactly as above minus the quotes. |
@
Your answere was quite helpful! |
This fixes an error that prevents me from loading the "Manipulating Data with dplyr" lesson in the "Getting and Cleaning Data" course.
I'm not the only one suffering from this; it also closes #504 #502 #498
Previously I saw this error:
Error in yaml.load(readLines(con, warn = readLines.warn), error.label = error.label, :
(/home/gdb/R/x86_64-pc-linux-gnu-library/4.2/swirl/Courses/Getting_and_Cleaning_Data/Manipulating_Data_with_dplyr/lesson.yaml) Scanner error: while scanning a tag at line 205, column 9 did not find expected whitespace or line break at line 205, column 19
It looks as though beginning a string with a '!' became problematic. Fixed by adding single quotes.