Skip to content

shared link bug fix#232

Open
mcdonohue wants to merge 1 commit intor-box:mainfrom
mcdonohue:shared-link
Open

shared link bug fix#232
mcdonohue wants to merge 1 commit intor-box:mainfrom
mcdonohue:shared-link

Conversation

@mcdonohue
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown

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