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

Use file.path for update_wpage #49

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Conversation

vnijs
Copy link
Collaborator

@vnijs vnijs commented Nov 1, 2020

Wonderful package! I use Rmarkdown to create my syllabus and can now use update_wpage to put all the pages up on canvas. Really nice!

I found a (very) minor issue with update_wpage however. canvas_url() returns https://my-canvas-site/api/v1 so the url becomes something like https://my-canvas-site/api/v1courses/123/pages/my-page. Note the missing / between v1 and courses. Using file.path would fix this.

@vnijs
Copy link
Collaborator Author

vnijs commented Nov 3, 2020

As I'm using the package more it seems that this issue comes up everywhere canvas_url is used. Adding a / at the end of the url created by this function may be a more efficient way to address this issue.

@daranzolin
Copy link
Owner

@vnijs Are you interested in becoming a maintainer of this package? rcanvas is no longer relevant to my work, so I've been looking for additional maintainers...and perhaps the repository should live in a different location as well...

We have a few collaborators at present, but I'd be more than willing to toss you the keys as well.

@vnijs
Copy link
Collaborator Author

vnijs commented Nov 5, 2020

@daranzolin I'd be happy to be one of the maintainers since I expect we will be using the package a fair amount in the future. Not really ready for more responsibility than that however since I already maintain several packages on CRAN :)

FYI I'm building a demo canvas site for our faculty now so it seems plausible that I'll add a few more things to this PR in the next week or so. Is that ok?

@daranzolin
Copy link
Owner

@vnijs that's fine with me! @bbbruce and @vanatteveldt have been an awesome help, but the package likely needs a longerish term solution. Sent you an invite.

@djhunter
Copy link

djhunter commented Nov 6, 2020

@vnijs Thanks for pointing out the file.path fix. It also fixed a problem I was having with grade_submission. It's possible there are several places where this needs to be changed.

@lennonab
Copy link

As I'm using the package more it seems that this issue comes up everywhere canvas_url is used. Adding a / at the end of the url created by this function may be a more efficient way to address this issue.

This worked well for me when I encountered a similar issue with get_submission_single(). It also fixes the issue of @drmankin (#50 (comment))

@dhicks
Copy link
Contributor

dhicks commented Apr 27, 2021

file.path() is platform-specific — it's intended to be used for constructing paths for the local OS. The function make_canvas_url() constructs Unix-style paths that are what you want for URLs.

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

Successfully merging this pull request may close these issues.

6 participants