Skip to content

interpolate_package #164

Closed
Closed

Description

@hadley

interpolate_package("foo") and interpolate_package("foo", "bar") which look into inst/prompt.md and inst/prompts/bar.md respectively.

Activity

  1. modified the milestone: 0.1.2 on Mar 13, 2025
  2. added this to the 0.2.0 milestone on Mar 28, 2025
  3. gadenbuie commented on Apr 1, 2025

    @gadenbuie
    Collaborator

    I love this idea! I don't think there's a lot to gain from having interpolate_package() fill in the path location, though. I'd recommend interpolate_pacakge(package, path, ...), making package and path required args. inst/prompts seems like the right place to put prompts, but it might be simpler and just as convenient to only assume inst/:

    interpolate_package("foo", "prompt.md", ...) # ... are template variables
    interpolate_package("foo", "prompts/bar.md", ...)
  4. added 3 commits that reference this issue on Apr 1, 2025
    10aa4f9
    5b63945
    b7a22db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions