Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion R/boxr_s3_classes.R
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,10 @@ print.boxr_file_reference <- function(x, ...) {
)
cat(" uploaded by :", x$modified_by$login, "\n")
cat(" owned by :", x$owned_by$login, "\n")
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....))?

shared_link <- x$shared_link
if (is.null(shared_link))
shared_link <- "None"
cat(" shared link :", shared_link, "\n\n")
Expand Down