Introduction 🐸
froggeR
streamlines Quarto workflows by providing a
robust, user-friendly framework for project setup and document creation.
This vignette demonstrates how froggeR
can enhance your
productivity while maintaining project consistency.
# Install from GitHub
remotes::install_github("kyleGrealis/froggeR")
Core Features
Project setup often involves repetitive tasks that can impede your
analysis workflow. froggeR
addresses this by providing:
- Automated project initialization with
quarto_project()
- Configurable document templates via
write_quarto()
- Reusable project configurations through
froggeR_settings()
- Consistent styling with
write_scss()
- Enhanced version control setup
Quick Start Guide
Create a new Quarto project with a single command:
froggeR::quarto_project(name = "frogs")
This command initializes a complete project structure with all necessary components:
Project Components
-
Quarto Document (
frogs.qmd
)- Pre-configured YAML header
- Professional styling
- Ready for immediate use
-
Style Sheet (
custom.scss
)- Modern design elements
- Customizable components
- Clear documentation
-
Project Configuration
-
.Rproj
for RStudio integration -
_variables.yml
for consistent metadata -
.gitignore
for secure version control
-
See vignette("customizing-quarto", package = "froggeR")
for more detailed configuration options.
Customization
Document Settings
Manage your document settings with the interactive configuration tool
(see ?froggeR_settings
for all options):
# Configure your settings
froggeR::froggeR_settings()
# Create a new document using your settings
froggeR::write_quarto(
filename = "analysis",
custom_yaml = TRUE # Use your configured settings
)
Visual Styling
Customize your document appearance with SCSS:
# Create or modify style sheets
froggeR::write_scss(name = "custom")
This creates a custom.scss
file with commented-out
examples. Uncomment and modify these to customize your document’s
appearance. For more information on Quarto styling, refer to:
Advanced Usage
Project Documentation
Generate comprehensive project documentation:
# Create structured README
froggeR::write_readme()
This creates:
- A detailed README.md
- Progress tracking notes
- Project structure documentation
Best Practices
For optimal results with froggeR
:
-
Project Organization
- Use consistent naming conventions
- Maintain clear directory structure
- Document project changes
-
Version Control
- Review
.gitignore
settings - Update progress notes regularly
- Maintain README documentation
- Review
-
Styling
- Test SCSS changes before implementation
- Document custom styling decisions
- Use variables for consistency
Troubleshooting and FAQs
Common Issues
-
Q: My YAML isn’t rendering correctly in the Quarto document.
A: Ensure that your
_variables.yml
file is properly formatted. Check for any extra spaces or incorrect indentation. -
Q: The SCSS styles aren’t applying to my document.
A: Make sure the SCSS file is properly linked in your YAML header. Check the console for any error messages during rendering.
-
Q: I’m getting an error when trying to create a new project.
A: Ensure you have the latest version of froggeR and Quarto installed. Also, check if you have write permissions in the target directory.
Tips for Smooth Hopping
- Always review the generated files after project creation to ensure everything is set up as expected.
- When customizing SCSS, make small changes and render frequently to see the effects.
- Keep your froggeR settings up-to-date, especially when working across multiple projects.
For more specific issues, consult the documentation or reach out through the GitHub issue tracker.
Getting Help
Need assistance? Several resources are available:
- Function documentation (e.g.,
?write_quarto
) - GitHub repository
- Issue tracker for bug reports and feature requests
- See
vignette("customizing-quarto", package = "froggeR")
for styling details
Future Developments
froggeR is continuously evolving to meet the needs of the R and Quarto community. Some exciting features on our roadmap include:
- Quarto Dashboard Integration: Streamlined creation and management of interactive Quarto dashboards.
- Enhanced Version Control Integration: More robust Git integration features.
- Expanded Customization Options: Additional templates and styling options for diverse project needs.
- Collaborative Tools: Features to enhance team workflows and project sharing.
Stay tuned to our GitHub repository for updates and new releases. We welcome feature requests and feedback from our user community to help shape the future of froggeR!