Skip to content

feat: add project_path() function for Quarto-aware path construction #265

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

Merged
merged 24 commits into from
Jul 8, 2025

Conversation

cderv
Copy link
Collaborator

@cderv cderv commented Jul 4, 2025

  • Add project_path() function with intelligent project root detection
  • Support Quarto environment variables (QUARTO_PROJECT_ROOT, QUARTO_PROJECT_DIR)
  • Fallback to extended project detection (_quarto.yml, DESCRIPTION, .Rproj)
  • Add get_running_project_root() to detect Quarto execution context
  • Add find_project_root() to detect Quarto project structure
  • Mark as experimental with lifecycle badge

This is experimental as it could be easier to use than here::i_am() but not sure. Always best to use here R 📦

@cderv cderv linked an issue Jul 4, 2025 that may be closed by this pull request
@cderv cderv force-pushed the project-root-path branch 3 times, most recently from 0d9d5fa to 3fbe567 Compare July 7, 2025 17:43
cderv added 24 commits July 8, 2025 12:48
- Add project_path() function with intelligent project root detection
- Support Quarto environment variables (QUARTO_PROJECT_ROOT, QUARTO_PROJECT_DIR)
- Fallback to extended project detection (_quarto.yml, .vscode, DESCRIPTION, .Rproj)
- Add is_running_quarto_project() to detect Quarto execution context
- Add is_quarto_project() to detect Quarto project structure
- Mark as experimental with lifecycle badge
as when getwd() and tmpdir() are on different drive, this could lead to issues
@cderv cderv force-pushed the project-root-path branch from 3fbe567 to 8d712e9 Compare July 8, 2025 10:48
@cderv cderv merged commit ed6e6e4 into main Jul 8, 2025
16 checks passed
@cderv cderv deleted the project-root-path branch July 8, 2025 11:04
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.

Add a helper to compute a path for a quarto project root
1 participant