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

get_course_gradebook error #51

Open
Kuipermatthijs opened this issue Dec 16, 2020 · 5 comments
Open

get_course_gradebook error #51

Kuipermatthijs opened this issue Dec 16, 2020 · 5 comments

Comments

@Kuipermatthijs
Copy link

Hi,

first of all, love the work, and with this API we could manage to build a Shiny board to have an overview of our whole curriculum.

However I now run into an error with the get_course_gradebook()

get_course_gradebook(10633)
mutate_() is deprecated as of dplyr 0.7.0.
Please use mutate() instead.
See vignette('programming') for more help
This warning is displayed once every 8 hours.
Call lifecycle::last_warnings() to see where this warning was generated.Error in UseMethod("mutate_") :
no applicable method for 'mutate_' applied to an object of class "list"

I could create an instance where i still have dplyr 0.7.0, though would it be possible to have this as a fix?

@Kuipermatthijs
Copy link
Author

In addition, I did try to roll back to R version 3.3.0, however, that is obsolete with RStudio (current version).
Roll back to dplyr 0.5.0 did not work, as rlang would not be compatible.

If there is something I can do to help, please let me know.

@daranzolin
Copy link
Owner

Ah, bad timing for the end of the semester! Unfortunately, I'm no longer an active maintainer on this project, so if you want to get involved and submit a pull request, it would be more than welcomed. There are also a handful of other awesome maintainers, so maybe someone else will chime in.

@rmtrane
Copy link
Contributor

rmtrane commented Dec 16, 2020

I ran into this same problem earlier today. It seems that it is not necessarily related to mutate_ being deprecated (not sure why this shows up), but rather a problem in the process_response function. It seems that this one is easily fixed by using dplyr::bind_rows(d) rather than purr::flatten_df to create the data.frame.

I did also encounter a different issue where the first page wouldn't be downloaded in the paginate function. I also think I have an ad-hoc fix for this.

I'm not familiar with this package or the source code in general, so I don't know how well these fixes generalize, but I can share if you are interested.

Edit: you can find my forked repo with two changes here: https://github.com/rmtrane/rcanvas.

@Kuipermatthijs
Copy link
Author

I'll have a look at your updates tomorrow.
I found the error already somewhat off, somewhere i recall it from earlier days. Though i am not sure how i fixed it.

roll back has failed, there have been to many updates since june 2016 to make it run stable.

@jtr13
Copy link

jtr13 commented Feb 5, 2021

@rmtrane Your edits worked for me... maybe submit a PR?

daranzolin pushed a commit that referenced this issue Apr 27, 2021
* My ad-hoc fixes to get_course_gradebook.R

* Updated documentation

* Added HEAD to @importFrom for canvas_query

* Update NAMESPACE

Co-authored-by: rmtrane <[email protected]>
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