Skip to content

Commit 2c0eb54

Browse files
TimTayloryihui
authored andcommitted
fix #50: coerce a person's comment to list before accessing its URL element (#49)
1 parent e84f91a commit 2c0eb54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

site/_footer.Rmd

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ get_authors = function() {
55
a = Filter(function(x) 'aut' %in% x$role, eval(xfun::parse_only(a)))
66
a = unlist(lapply(a, function(x) {
77
name = paste(x$given, x$family)
8-
link = x$comment[['URL']]
9-
if (length(link) != 1 || is.na(link)) return(name)
8+
link = as.list(x$comment)[['URL']]
9+
if (length(link) != 1) return(name)
1010
sprintf('[%s](%s)', name, link)
1111
}))
1212
xfun::join_words(a)

0 commit comments

Comments
 (0)