Skip to content

Commit

Permalink
Use R universe for building/distributing aaltobda package
Browse files Browse the repository at this point in the history
  • Loading branch information
andrjohns committed Aug 13, 2024
1 parent d1969e1 commit cf32ac1
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 134 deletions.
115 changes: 0 additions & 115 deletions .github/workflows/build-rpackage.yml

This file was deleted.

11 changes: 3 additions & 8 deletions .github/workflows/render.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
on:
push:
branches:
- master
- r-universe-aaltobda
# paths: ['**.Rmd']

name: Render and Publish Website
Expand Down Expand Up @@ -31,17 +31,12 @@ jobs:
uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true
extra-repositories: 'https://stan-dev.r-universe.dev'
extra-repositories: 'https://stan-dev.r-universe.dev https://avehtari.r-universe.dev'

- name: Install R dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
packages:
any::rmarkdown
any::sessioninfo
any::tidyr
local::rpackage
any::cmdstanr
packages: rmarkdown, sessioninfo, tidyr, rpackage, cmdstanr, aaltobda

- name: Render Main Rmarkdown Website
run: rmarkdown::render_site()
Expand Down
3 changes: 1 addition & 2 deletions FAQ.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ The course has its own R package `aaltobda` with data and
functionality to simplify coding. `aaltobda` has been pre-installed in
Aalto JupyterHub. To install the package to your own computer just run the following:

1. `install.packages("aaltobda", repos = c("https://avehtari.github.io/BDA_course_Aalto/", getOption("repos")))`
1. `install.packages("aaltobda", repos = c("https://avehtari.r-universe.dev", getOption("repos")))`

If during the course there is announcement that `aaltobda` has been
updated (e.g. some error has been fixed), you can get the latest
Expand Down Expand Up @@ -244,4 +244,3 @@ Here are some great Aalto courses that are using Bayesian inference
- [CS-E4895 - Gaussian Processes](https://mycourses.aalto.fi/course/view.php?id=44810)
- [CS-E5795 - Computational Methods in Stochastics](https://mycourses.aalto.fi/course/info.php?id=40704) (more about MC, MCMC, HMC)
- [MS-E1654 - Computational Inverse Problems](https://mycourses.aalto.fi/course/info.php?id=40592)

2 changes: 1 addition & 1 deletion assignments/assignment6.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ JupyterHub has all the needed packages pre-installed.
The following installs and loads the `aaltobda` package:
```{r}
if(!require(aaltobda)){
install.packages("aaltobda", repos = c("https://avehtari.github.io/BDA_course_Aalto/", getOption("repos")))
install.packages("aaltobda", repos = c("https://avehtari.r-universe.dev", getOption("repos")))
library(aaltobda)
}
```
Expand Down
4 changes: 2 additions & 2 deletions assignments/includes/_general_info.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
To install the package on your own system, run
the following code (upgrade=\"never\" skips question about updating other packages):
```{.r}
install.packages("aaltobda", repos = c("https://avehtari.github.io/BDA_course_Aalto/", getOption("repos")))
install.packages("aaltobda", repos = c("https://avehtari.r-universe.dev", getOption("repos")))
```
- Many of the exercises can be checked automatically using the R
package `markmyassignment` (pre-installed in JupyterHub).
Expand Down Expand Up @@ -71,4 +71,4 @@ install.packages("aaltobda", repos = c("https://avehtari.github.io/BDA_course_Aa
If the pdf is blank, nonsense, or something like only a copy of the questions, 1) report it as problematic in Peergrade-interface to get another report to review, and 2) send a message to TAs.
* Is the report anonymous?

:::
:::
2 changes: 1 addition & 1 deletion assignments/simple_template3.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ set_assignment(assignment_path)
The following installs and loads the `aaltobda` package:
```{r}
if(!require(aaltobda)){
install.packages("aaltobda", repos = c("https://avehtari.github.io/BDA_course_Aalto/", getOption("repos")))
install.packages("aaltobda", repos = c("https://avehtari.r-universe.dev", getOption("repos")))
library(aaltobda)
}
```
Expand Down
2 changes: 1 addition & 1 deletion assignments/template2.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ The following installs the `aaltobda` package:
```{r}
#| cache: true
# Caching should be fine here
install.packages("aaltobda", repos = c("https://avehtari.github.io/BDA_course_Aalto/", getOption("repos")))
install.packages("aaltobda", repos = c("https://avehtari.r-universe.dev", getOption("repos")))
```

:::
Expand Down
2 changes: 1 addition & 1 deletion assignments/template3.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ set_assignment(assignment_path)
The following installs and loads the `aaltobda` package:
```{r}
if(!require(aaltobda)){
install.packages("aaltobda", repos = c("https://avehtari.github.io/BDA_course_Aalto/", getOption("repos")))
install.packages("aaltobda", repos = c("https://avehtari.r-universe.dev", getOption("repos")))
library(aaltobda)
}
```
Expand Down
2 changes: 1 addition & 1 deletion assignments/template4.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ set_assignment(assignment_path)
The following installs and loads the `aaltobda` package:
```{r}
if(!require(aaltobda)){
install.packages("aaltobda", repos = c("https://avehtari.github.io/BDA_course_Aalto/", getOption("repos")))
install.packages("aaltobda", repos = c("https://avehtari.r-universe.dev", getOption("repos")))
library(aaltobda)
}
```
Expand Down
2 changes: 1 addition & 1 deletion assignments/template5.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ set_assignment(assignment_path)
The following installs and loads the `aaltobda` package:
```{r}
if(!require(aaltobda)){
install.packages("aaltobda", repos = c("https://avehtari.github.io/BDA_course_Aalto/", getOption("repos")))
install.packages("aaltobda", repos = c("https://avehtari.r-universe.dev", getOption("repos")))
library(aaltobda)
}
```
Expand Down
2 changes: 1 addition & 1 deletion assignments/template6.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ JupyterHub has all the needed packages pre-installed.
The following installs and loads the `aaltobda` package:
```{r}
if(!require(aaltobda)){
install.packages("aaltobda", repos = c("https://avehtari.github.io/BDA_course_Aalto/", getOption("repos")))
install.packages("aaltobda", repos = c("https://avehtari.r-universe.dev", getOption("repos")))
library(aaltobda)
}
```
Expand Down

0 comments on commit cf32ac1

Please sign in to comment.