swirldev / swirl_courses

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

Running "Manipulating Data with dplyr" under Getting and Cleaning Data #514

Closed smallpotatopublichealth closed 1 year ago

smallpotatopublichealth commented 1 year ago

I got this error message when running the lesson:

| Attempting to load lesson dependencies...

| Package ‘dplyr’ loaded correctly!

Error in yaml.load(readLines(con, warn = readLines.warn), error.label = error.label, : (C:/Users/user/AppData/Local/R/win-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 In addition: Warning message: tbl_df() was deprecated in dplyr 1.0.0. ℹ Please use tibble::as_tibble() instead. ℹ The deprecated feature was likely used in the swirl package. Please report the issue to the authors. This warning is displayed once every 8 hours. Call lifecycle::last_lifecycle_warnings() to see where this warning was generated.

joakimlinde commented 1 year ago

I have the same problem with swirl when trying to run the 'Manipulating Data with dplyr' section. I get the following error message from swirl (on a mac):

library(swirl)

| Hi! I see that you have some variables saved in your workspace. | To keep things running smoothly, I recommend you clean up before | starting swirl.

| Type ls() to see a list of the variables in your workspace. | Then, type rm(list=ls()) to clear your workspace.

| Type swirl() when you are ready to begin.

swirl()

| Welcome to swirl! Please sign in. If you've been here before, | use the same name as you did then. If you are new, call yourself | something unique.

What shall I call you?

| Please choose a course, or type 0 to exit swirl.

1: Getting and Cleaning Data 2: R Programming 3: Take me to the swirl course repository!

Selection: 1

| Please choose a lesson, or type 0 to return to course menu.

1: Manipulating Data with dplyr 2: Grouping and Chaining with dplyr 3: Tidying Data with tidyr 4: Dates and Times with lubridate

Selection: 1

| 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 In addition: Warning message: tbl_df() was deprecated in dplyr 1.0.0. ℹ Please use tibble::as_tibble() instead. ℹ The deprecated feature was likely used in the swirl package. Please report the issue to the authors. This warning is displayed once every 8 hours. Call lifecycle::last_lifecycle_warnings() to see where this warning was generated.

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

krogersmith commented 1 year ago

I have the same issue: Error in yaml.load(readLines(con, warn = readLines.warn), error.label = error.label, : (/usr/local/lib/R/site-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.

ncarchedi commented 1 year ago

This should be fixed now, but please let me know if not: https://github.com/swirldev/swirl_courses/pull/517