Skip to content

attempt to apply non-function error. #388

@trivialfis

Description

@trivialfis

Hi, I'm trying to check the xgboost project but ran into the following error, which stops the check:

Error in desc$get_field("BugReports", default = character()) : 
  attempt to apply non-function
Calls: revdep_check ... lapply -> FUN -> cat_package_info -> paste0 -> pkg_github
Execution halted

I don't know why desc is null yet, but patching the pkg_github function with:

pkg_github <- function(desc) {
  if (is.null(desc)) {
    return (NA_character_)
  }
...
}

can help workaround the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions