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_discussion_id() errors due to row combine procedure #44

Open
coatless opened this issue Feb 5, 2020 · 6 comments
Open

get_discussion_id() errors due to row combine procedure #44

coatless opened this issue Feb 5, 2020 · 6 comments
Assignees

Comments

@coatless
Copy link

coatless commented Feb 5, 2020

While attempting to retrieve discussion components with get_discussion_id(), I'm receiving an error of:

get_discussion_id(discussion_id, object_id)
Error: Argument 5 is a list, must contain atomic vectors

The API call issues is found under get a single topic with structure:

/api/v1/groups/:group_id/discussion_topics/:topic_id

The error is being triggered inside rcanvas:::process_response()

Specifically, when it attempts to bind multiple data frames together, e.g.

df <- tryCatch({
df %>% purrr::map_df(purrr::flatten_df)
},
error = function(e) {
df %>% dplyr::bind_rows()
}
)

@wsphd
Copy link
Contributor

wsphd commented Feb 6, 2020 via email

@coatless
Copy link
Author

coatless commented Feb 6, 2020

@wsphd Thanks for the fast response. If that's the case, mind if I fork the package?

I'd like to setup some bindings as UIUC recently started piloting Canvas (https://illinoisedu.instructure.com/)

@wsphd
Copy link
Contributor

wsphd commented Feb 6, 2020 via email

@daranzolin
Copy link
Owner

Yes, sorry everyone--rcanvas is no longer relevant to my work, and I'm happy to add maintainers beyond @vanatteveldt. @coatless are you interested? The repo could also hypothetically be transferred.

@vanatteveldt
Copy link
Contributor

Hey guys, yeah sorry for not being very active so far. I had plenty of plans, but teaching (and writing a book) got into my way so far. I would be happy to contribute if someone else take's over the lead as well, otherwise I hope to have more time in the coming month. Whether this is best done as a fork, a transfer, or a github organization I'm not quite sure.

It might also be good to have a discussion somewhere on what the goals/priorities are that everyone has. I would like to get it on CRAN asap as that would make it a lot easier to get working esp. for mac/windows users, and we can think about other calls that we would like to wrap.

bbbruce added a commit that referenced this issue Aug 23, 2020
… file upload #46.  Left response as list if unable to flatten to data.frame likely fixing #44.  Other changes to simplify code.
@bbbruce
Copy link
Collaborator

bbbruce commented Aug 23, 2020

Please see if the changes I pushed a10c15d just now solved this problem. It appears this occurs because the data returned cannot always be coerced into a data.frame. Please note that I've changed the "setup" in two ways. First, the API token is now more securely stored in your OS's keyring and that setting the domain is a per session setting.

@bbbruce bbbruce self-assigned this Aug 23, 2020
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

5 participants