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

shared link bug fix #232

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

shared link bug fix #232

wants to merge 1 commit into from

Conversation

mcdonohue
Copy link

x$shared_link was coming through as a list and causing an error with subsequent cat() call. This fix selects the url item from that list (if x$shared_link is a list).

Copy link
Member

@nathancday nathancday left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this patch, and sorry I didn't see this for 3 months.

shared_link <- x$shared_link
if (is.list(x$shared_link))
shared_link <- x$shared_link$url
if (!is.list(x$shared_link))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can this just be an ifelse() all on 1 line `shared_link = ifelse(is.list....))?

@nathancday
Copy link
Member

Was it always causing an error? Or was it only sometimes? I want to reproduce it and maybe add a test for the error

@itsmevictor
Copy link

Just commenting to say that the error still arises. I have just started using the package so I cannot attest to how widespread the issue is, but I am ready to test things if need be.

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.

3 participants