Skip to content

Commit

Permalink
re-add the not useless argument
Browse files Browse the repository at this point in the history
  • Loading branch information
maelle committed Nov 22, 2018
1 parent 9ebe5a8 commit 79559a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/codemeta_description.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ new_codemeta <- function() {

# Can add to an existing codemeta document
codemeta_description <-
function(f, codemeta = new_codemeta()) {
function(f, id = NULL, codemeta = new_codemeta()) {
if (file.exists(f)) {
descr <- desc::desc(f)
} else {
Expand Down
2 changes: 1 addition & 1 deletion R/create_codemeta.R
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ create_codemeta <- function(pkg = ".",
}
## get information from DESCRIPTION
cm <-
codemeta_description(file.path(root, "DESCRIPTION"), cm)
codemeta_description(file.path(root, "DESCRIPTION"), id = id, cm)

## Guess these only if not set in current codemeta
if ((is.null(cm$codeRepository) & force_update)){
Expand Down

0 comments on commit 79559a4

Please sign in to comment.