swirldev / swirl

:cyclone: Learn R, in R.
http://swirlstats.com
Other
1.14k stars 599 forks source link

Can't demo course created in Swirlify #653

Open scaevola01 opened 6 years ago

scaevola01 commented 6 years ago

I'm trying to create an intro course in Swirlify to support a class on using R for Historical Linguistics at UCLA. However, when I try to demo the course that I've created, I get the following error message:

demo_lesson()

| Course installed successfully!

Error in lesson(df, lesson_name = meta$Lesson, course_name = meta$Course, : Argument 'df' must be a data frame!

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

As a result, I can't demo what I've created, and I can't currently justify to my partners investing more time in creating Swirl courses (which I really want to do). Does anyone understand the error, and can someone help me resolve it? I'm using Swirlify 0.5.1, Swirl 2.4.3, RStudio 1.0.153, R 3.4.2, and Mac OS 10.13.1.

seankross commented 6 years ago

What do you get as a result of test_course() or test_lesson()?

scaevola01 commented 6 years ago

Here's my results:

test_course() It seems this course does not contian a LICENSE.txt file. You can easily add a license with add_license().

Error in test_course() : It seems there's no MANIFEST file for this course. Please add one using add_to_manifest().

test_lesson()

Begin testing: Intro to R
End testing: Intro to R
seankross commented 6 years ago

It looks like you need to add a MANIFEST file with a listing for every lesson in your course.

scaevola01 commented 6 years ago

Unfortunately, that doesn't solve the problem:

add_to_manifest() demo_lesson()

| Course installed successfully!

Error in lesson(df, lesson_name = meta$Lesson, course_name = meta$Course, : Argument 'df' must be a data frame!

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

I also added a License file, which did not solve the problem, either.

seankross commented 6 years ago

Is the course on GitHub?

scaevola01 commented 6 years ago

No. I'm just trying to create a proof-of-concept on my local machine.

seankross commented 6 years ago

Can you zip up the course and email it to me?

scaevola01 commented 6 years ago

Sure. What's the best email?

seankross commented 6 years ago

sean at seankross dot com