Skip to content

Commit

Permalink
Concatenate all codecheckers in a single string
Browse files Browse the repository at this point in the history
  • Loading branch information
angelina-momin committed Nov 12, 2024
1 parent 9b567e4 commit 3a01da7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/utils_render_cert_md.R
Original file line number Diff line number Diff line change
Expand Up @@ -301,8 +301,8 @@ add_codecheck_details_md <- function(md_content, repo_link){

# Adding the Codechecker name
codechecker_names <- c()
for (checker in config_yml$codecheck){

for (checker in config_yml$codechecker){
# Creating a hyperlink if the ORCID ID is available
if ("ORCID" %in% names(checker)){
codechecker <- paste0("[", checker$name, "](", CONFIG$HYPERLINKS["orcid"], checker$ORCID, ")")
Expand All @@ -313,6 +313,8 @@ add_codecheck_details_md <- function(md_content, repo_link){
}
codechecker_names <- append(codechecker_names, codechecker)
}
# Concatenate all entries into a single string separated by commas
codechecker_names <- paste(codechecker_names, collapse = ", ")

# Adjusting the codechecker name heading
# Multiple codecheckers
Expand Down

0 comments on commit 3a01da7

Please sign in to comment.