Skip to content

Conversation

@awunderground
Copy link
Contributor

  • I removed @export from a few functions
  • Most of the other fixes are adding @return and @examples

@awunderground awunderground added this to the version0.1.2 milestone Nov 2, 2025
Copy link
Collaborator

@jhseeman jhseeman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for doing this! One general style comment: there are places throughout where we have local objects clashing with global package names (ex: roadmap <- roadmap()). I think the examples will be clearer if we avoid this behavior.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for adding this!

NAMESPACE Outdated
S3method(print,visit_sequence)
export("%>%")
export(.calc_bandwidths)
export(.construct_workflows)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can probably remove this export

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed!

#'
#' @examples
#'
#' noise()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be pretty easy to add self-contained examples here, yes?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added!

#'
#' @examples
#'
#' start_method(start_func = start_resample)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should add some example arguments to be passed to start_resample

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I add a couple of examples!

R/invert.R Outdated
#' @param predictions A data frame with .pred
#' @param ... Other arguments
#'
#' @return A tibble with inverted model-generated values
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are we intending two different @return statements here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. Updated!

command.
# Or the development version from GitHub:
# install.packages("pak")
pak::pak("UrbanInstitute/tidysynthesis")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is there a reason we're switching from install_github to pak?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm emulating tidymodels, which now uses pak: https://github.com/tidymodels/tidymodels

@awunderground
Copy link
Contributor Author

I responded to your feedback. I switched roadmap <- in examples to rm <-

@jhseeman jhseeman merged commit 3654f90 into version0.1.2 Nov 4, 2025
5 checks passed
Copy link
Collaborator

@jhseeman jhseeman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants