-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New rd_section_minidesc
error with roxygen2 7.2.1
#1421
Comments
Use |
Cool thanks I'll try that! |
I'm running into the same issue. I think it is related to a Line 29 in 07e4d1d
This returns NULL instead of a string, and roxygen2:::rd_section_minidesc(...) chokes expecting is_string(name) to be true. In this case I would assume that object_name() should return the equivalent of block$object$topic , the topic in which the block should be described.
For context, below is the code that lead to the issue. For that block the output of See code# -------------------------------------------------------------------------
#' sspm boundary structure
#'
#' One of the first step in the `sspm` workflow is to create one or more
#' object(s) of class `sspm_boundary` from an `sf` object.
#'
#' @slot boundaries **\[sf\]** Spatial boundaries (polygons).
#' @slot boundary **\[character\]** The column of `data` that represents the
#' spatial boundaries.
#' @slot boundary_area **\[character\]** The column of `data` that represents the
#' area of spatial boundaries.
#' @slot method **\[[discretization_method][discretization_method-class]\]**
#' *(if discrete)* discretization method used.
#' @slot patches **\[sf\]** *(if discrete)* Patches resulting from
#' discretization.
#' @slot points **\[sf or NULL\]** *(if discrete)* Sample points used for
#' discretization.
#' @slot patches_area **\[character\]** The column of `data` that represents the
#' area of patches.
#'
#' @name sspm_boundary-class
#' @rdname sspm_boundary-class
#'
setClass("sspm_boundary",
slots = list(boundaries = "sf",
boundary = "character",
boundary_area = "character")
)
#' @describeIn sspm_boundary-class sspm_discrete_boundary
setClass("sspm_discrete_boundary",
slots = list(method = "discretization_method",
patches_area = "character",
patches = "sf",
points = "ANY"),
contains = "sspm_boundary"
) |
I'm running into this same issue. It is really hard to track, especially as I'm not even given a file name, so I don't know where to start. There needs to be better handling of context information when running into even an unexpected error. |
This should be better in the dev version, but no one provided a reprex, so I can't be sure. |
With the roxygen2 7.2.1 update, I'm now seeing this error in one of my packages, and I'm having trouble locating the source:
Any ideas on how to improve the stack trace here? Would it be possible to modify the error handling to return which file is problematic?
Best,
Mike
The text was updated successfully, but these errors were encountered: