Skip to content
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

setup quarto; fix #2; fix #3; fix #4; fix #5; fix #6; fix #7; fix #9 #16

Merged
merged 4 commits into from
Jan 22, 2025
Merged
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
6 changes: 0 additions & 6 deletions .Rbuildignore

This file was deleted.

1 change: 1 addition & 0 deletions .Rprofile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
source("renv/activate.R")
55 changes: 55 additions & 0 deletions .github/workflows/netlify.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Test book render

on:
pull_request:
branches: [main, master]
workflow_dispatch:

jobs:
test-book-render:
runs-on: ubuntu-latest
container: rocker/tidyverse:4.4.2
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v4

- name: Install system dependencies
run: |
apt-get update && apt-get install -y --no-install-recommends \
libxt6 libglpk-dev gh curl jq

- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2
with:
tinytex: true

- name: Install packages from renv.lock (with cache)
if: ${{ !env.ACT }}
uses: r-lib/actions/setup-renv@v2
with:
cache-version: 2

- name: Install packages from renv.lock (local, no cache)
if: ${{ env.ACT }}
run: |
renv::restore()
shell: Rscript {0}

- name: Render document
run: quarto render

- name: Deploy to Netlify
uses: nwtgck/[email protected]
with:
publish-dir: './_site'
production-branch: main
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message:
'Deploy from GHA: ${{ github.event.pull_request.title || github.event.head_commit.message }} (${{ github.sha }})'
# these default to 'true'
enable-commit-comment: false
enable-github-deployment: false
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
38 changes: 38 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
on:
workflow_dispatch:
push:
branches: main

name: Quarto Publish

jobs:
build-deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up Quarto
uses: quarto-dev/quarto-actions/setup@v2

- name: Install tinytex
run: quarto install tinytex

- name: Install R
uses: r-lib/actions/setup-r@v2
with:
r-version: '4.4.2'

- name: Install R Dependencies
uses: r-lib/actions/setup-renv@v2
with:
cache-version: 1

- name: Render and Publish
uses: quarto-dev/quarto-actions/publish@v2
with:
target: gh-pages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@
.RData
.Ruserdata
.DS_Store


/_site/
/.quarto/
8 changes: 0 additions & 8 deletions .travis.yml

This file was deleted.

187 changes: 70 additions & 117 deletions 02-sampling.Rmd → 02-sampling.qmd

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions 09-references.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# References
21 changes: 0 additions & 21 deletions DESCRIPTION

This file was deleted.

6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
# Rapid Assessment Method for Older People (RAM-OP): The Manual <img src="figures/ramOP.png" width="200px" align="right" />

[![Travis-CI Build Status](https://travis-ci.org/rapidsurveys/ramOPmanual.svg?branch=master)](https://travis-ci.org/rapidsurveys/ramOPmanual)
[![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/rapidsurveys/ramOPmanual?branch=master&svg=true)](https://ci.appveyor.com/project/rapidsurveys/ramOPmanual)
[![DOI](https://zenodo.org/badge/125880132.svg)](https://zenodo.org/badge/latestdoi/125880132)
# Rapid Assessment Method for Older People (RAM-OP): The Manual <img src="images/rapidsurveys.png" width="200px" align="right" />

[HelpAge International](http://www.helpage.org), [VALID International](http://www.validinternational.org), and [Brixton Health](http://www.brixtonhealth.com), with financial assistance from the [Humanitarian Innovation Fund (HIF)](http://www.elrha.org/hif/home/), have developed a **Rapid Assessment Method for Older People (RAM-OP)** that provides accurate and reliable estimates of the needs of older people. The method uses simple procedures, in a short time frame (i.e. about two weeks including training, data collection, data entry, and data analysis), and at considerably lower cost than other methods. The **RAM-OP** method is based on the following principles:

Expand Down
10 changes: 0 additions & 10 deletions _bookdown.yml

This file was deleted.

31 changes: 0 additions & 31 deletions _output.yml

This file was deleted.

46 changes: 46 additions & 0 deletions _quarto.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
project:
type: book
output-dir: _site

book:
title: Rapid Assessment Method for Older People (RAM-OP)
subtitle: The Manual
author:
- Pascale Fritsch
- Ernest Guevarra
- Katja Siling
- Mark Myatt
date: last-modified
date-format: "DD MMMM YYYY"
chapters:
- index.qmd
- 02-sampling.qmd
- 03-indicators.qmd
- 04-questionnaire.qmd
- 05-datasets.qmd
- 06-practical.qmd
- 07-ram_op_software.qmd
- 08-conclusion.qmd
- 09-references.qmd
cover-image: figures/coverImage.jpg
search: true
repo-url: https://github.com/rapidsurveys/ramOPmanual/
repo-actions: [edit]
downloads: [pdf, epub]
#sharing: [mastodon, bluesky, linkedin]
google-analytics:
tracking-id: "G-SE438KE5DS"
anonymize-ip: true

bibliography: references.bib

format:
html:
theme: cosmo
highlight-style: breeze
# pdf:
# documentclass: scrreprt
# highlight-style: breeze
# epub:
# cover-image: figures/coverImage.jpg
# highlight-style: breeze
45 changes: 0 additions & 45 deletions appveyor.yml

This file was deleted.

1 change: 0 additions & 1 deletion before_body.tex

This file was deleted.

Loading
Loading