Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
^renv$
^renv\.lock$
^commons\.Rproj$
^\.Rproj\.user$
^\.claude$
Expand Down
1 change: 1 addition & 0 deletions .Rprofile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
source("renv/activate.R")
34 changes: 34 additions & 0 deletions .github/scripts/generate-connect-manifest.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
project <- getwd()
ref <- Sys.getenv("COMMONS_REF")
project_library <- renv::paths$library(project = project)

if (!nzchar(ref)) {
stop("COMMONS_REF must contain the Git commit being deployed.", call. = FALSE)
}

renv::install(
sprintf("github::posit-dev/commons@%s", ref),
library = project_library,
project = project,
rebuild = TRUE,
prompt = FALSE
)
.libPaths(c(project_library, .libPaths()))

app_files <- c(
"app.R",
"www/commons-chat/commons-chat.css",
"www/commons-chat/commons-chat.js"
)

if (!all(file.exists(file.path("inst", app_files)))) {
stop("The Connect app files are missing from inst/.", call. = FALSE)
}

rsconnect::writeManifest(
appDir = "inst",
appFiles = app_files,
appMode = "shiny",
dependencyResolution = "strict",
quiet = FALSE
)
2 changes: 2 additions & 0 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ jobs:
- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-r@v2
with:
r-version: "4.5.2"
use-public-rspm: true
- uses: r-lib/actions/setup-renv@v2
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::rcmdcheck, local::.
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,18 @@ jobs:
steps:
- uses: actions/checkout@v7

- uses: r-lib/actions/setup-r@v2
with:
r-version: "4.5.2"
use-public-rspm: true

- uses: r-lib/actions/setup-renv@v2

- name: Generate Connect manifest
run: Rscript .github/scripts/generate-connect-manifest.R
env:
COMMONS_REF: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}

- name: Deploy to Connect (dev)
uses: posit-dev/connect-actions/deploy@main
with:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ jobs:
- uses: r-lib/actions/setup-pandoc@v2

- uses: r-lib/actions/setup-r@v2
with:
r-version: "4.5.2"
use-public-rspm: true

- uses: r-lib/actions/setup-renv@v2

- uses: r-lib/actions/setup-r-dependencies@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ inst/resources/
inst/tiles/
inst/tiles-agent/
inst/pkgs
.Rprofile
inst/manifest.json
docs
src/*.o
src/*.so
Expand Down
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ Suggests:
yaml
VignetteBuilder: knitr
Remotes:
tidyverse/ellmer,
posit-dev/shinychat/pkg-r
tidyverse/ellmer@dd1c8965c8e35d94a0fcaa6b452234e7e95e432d,
posit-dev/shinychat/pkg-r@be8b827c2238055650e63748ccd36860a2b99361
Config/testthat/edition: 3
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
Expand Down
2,545 changes: 0 additions & 2,545 deletions inst/manifest.json

This file was deleted.

3,552 changes: 3,552 additions & 0 deletions renv.lock

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions renv/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
library/
local/
cellar/
lock/
python/
sandbox/
staging/
Loading
Loading