swirldev / swirl_courses

:mortar_board: A collection of interactive courses for the swirl R package.
http://swirlstats.com
Other
4.25k stars 7.25k forks source link

Problem starting Manipulating Data with dplyr #502

Closed kanyhub closed 1 year ago

kanyhub commented 2 years ago

HI, I can't start the course on manipulating data with deplyr.

This is what I get when trying to start it

| Attempting to load lesson dependencies...

| Package ‘dplyr’ loaded correctly!

Error in yaml.load(readLines(con, warn = readLines.warn), error.label = error.label, : (/Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/library/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

| Leaving swirl now. Type swirl() to resume.

I have already tried this and this.

Anyone with another idea?

josevillajulca commented 2 years ago

Hi,

From this post: https://github.com/swirldev/swirl_courses/issues/394 , i put a # in the 205 line in the lesson.yaml file and work fine!!!

Hope this help!

salhamdani commented 2 years ago

@josevillajulca, thank you so much! I'm an R newbie (for now) and this fixed the same issue for me.

ViniMig commented 2 years ago

Hi guys, I was also facing this issue, and I tried doing something similar to what @josevillajulca did, instead of commenting the whole line 205 (I don't know much of yaml but guessing it will probably make the Hint not appear in the course) I just put the whole text after "Hint" between quotation marks and it solved the issue for me:

Line 205 -> Hint: "!is.na(c(3, 5, NA, 10)) will negate the previous command, thus telling us what is NOT NA."

Guessing the problem is because of the '!' but just throwing my 2 cents in this! 😄

Something small anyways, i was trying to find a solution and @josevillajulca 's works.

ankeetkumar commented 1 year ago

Hi,

From this post: #394 , i put a # in the 205 line in the lesson.yaml file and work fine!!!

Hope this help!

Resolved my issue as well

cfsobral commented 1 year ago

Hi Guys. So, I'm newbie here. This is my first participation here. First, Thank you for tips from ViniMig and anakeetkuma, but I did the following.

I put after Hint: the word "Try" and worked fine for me!

ncarchedi commented 1 year ago

This should be fixed now: https://github.com/swirldev/swirl_courses/pull/517