swirldev / swirl

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

install_course_github produces an error #899

Open wagafo opened 2 years ago

wagafo commented 2 years ago

I have a set of courses. I see this error (in Windows):

install_course_github("wagafo","Data_Analysis_English",multi=TRUE) Downloading: 960 kB Error in if (file.copy(dirs_to_copy, swirl_courses_dir(), recursive = TRUE)) { : the condition has length > 1

Error in if (file.copy(dirs_to_copy, swirl_courses_dir(), recursive = TRUE)) { : the condition has length > 1

Despite the error, the courses run OK.

There are multiple courses, so if I try:

install_course_github("wagafo","Data_Analysis_English")

the error is not produced, but the courses are not installed correctly and they cannot be run.

In Linux instead of an error, a warning is produced:

install_course_github("wagafo","Data_Analysis_English",multi=TRUE) Downloading: 960 kB
| Course installed successfully!

Warning message: In if (file.copy(dirs_to_copy, swirl_courses_dir(), recursive = TRUE)) { : the condition has length > 1 and only the first element will be used