Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swirl not updated yet! Couldn't find contains() in "purrr" package. #634

Closed
RominR opened this issue Aug 12, 2017 · 4 comments
Closed

Swirl not updated yet! Couldn't find contains() in "purrr" package. #634

RominR opened this issue Aug 12, 2017 · 4 comments

Comments

@RominR
Copy link

RominR commented Aug 12, 2017

There's a problem in the following course:
Mastering Software Development in R
Course 2: Advance R Programming.
Week 2: Quiz Portion.

OS: macOS Sierra 10.12.6
R Version: 3.4.1
Swirl Version: 2.4.3

One of the quiz questions (in the completion of 69% of the total quiz) in the above mentioned swirl course still asks to answer the question regarding contains() which we cannot find in purrr package anymore. I am not able to proceed further. Every time, I try to solve the problem, I stuck there by getting an error saying:

Error in contains(random_ints, 45) : could not find function "contains"
Could anyone please help me proceed this question?

@Nirajpaija
Copy link

same problem happened to me. if you solve this plz let me know

@seankross
Copy link
Member

This should now be fixed if you reinstall the course.

@Nirajpaija
Copy link

Thank you, i do it before fixed....

@HemdaLevy
Copy link

I've just bumped into the same problem. I didn't want to lose all the previous swirl work so I just defined a function like this:

has_element <- function(x,y){contains(x,y)}
and then used it as swirl expected it:
has_element(random_ints, 45)
and passed ... :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants