Skip to content

minimal install#41

Closed
erwx wants to merge 0 commit intoCenterForAssessment:mainfrom
erwx:main
Closed

minimal install#41
erwx wants to merge 0 commit intoCenterForAssessment:mainfrom
erwx:main

Conversation

@erwx
Copy link
Contributor

@erwx erwx commented Aug 4, 2025

This PR adds minimal-install.R, which allows users to create a bare-bones R package without cloning the full template repository.

What it does:

  • Generates minimal R package structure
  • Prompts for user details and customizes DESCRIPTION
  • Creates basic Hello World function with roxygen documentation
  • Includes simple parameterized Quarto example
  • Initializes Git repository

Usage:

Mac/Unix:

curl -SL https://raw.githubusercontent.com/CenterForAssessment/packageSkeleton/main/minimal-install.R | Rscript -

Windows(PowerShell)

(Invoke-WebRequest -Uri "https://raw.githubusercontent.com/CenterForAssessment/packageSkeleton/main/minimal-install.R").Content | Rscript -

This complements the existing template approach by offering an alternative for users who want a minimal setup.

Nota bene: I don't know anything about PowerShell. That line is 100% Google Gemini.

@dbetebenner
Copy link
Member

Hi Eric,

One concern I have with this is that minimal-install.R script becomes an additional R file that isn't associated with the package itself and just resides in the main directory which I'd rather not have.

Two potential workarounds:

  1. Set up a separate repo that just has the R-package skeleton.
  2. Include these script in the README.md file instructing the user that if they want to utilize a trimmed down version of the repo, they can do this.

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.

2 participants