Skip to content

Commit

Permalink
add authors, r script to make applicatio html, and application file
Browse files Browse the repository at this point in the history
  • Loading branch information
lwjohnst86 committed May 2, 2022
1 parent d59d832 commit d315c7e
Show file tree
Hide file tree
Showing 3 changed files with 3,717 additions and 0 deletions.
35 changes: 35 additions & 0 deletions R/tag-and-archive.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# library(tidyverse)
library(here)
library(gert)

# Generate HTML of application for archiving -------------------------------
# 1. Comment out the d-title element in the theme.css
# 2. Comment out the navbar in the _site.yml

rmarkdown::render(
here("index.Rmd"),
output_format = distill::distill_article(self_contained = TRUE, toc = TRUE, toc_float = FALSE),
output_file = here("nnf-dif-application.html")
)

# Then add and commit to the Git repo.

repo_version <- "v2021.05.04"
version_tag <- git_tag_create(
name = repo_version,
message = "Grant application submitted to Novo Nordisk Foundation for the Data Science Infrastructure funding. This is the version submitted to NNF, even though the tag date is off by a year."
)
git_push()
git_tag_push(repo_version)
if (interactive()) browseURL("https://gitlab.com/rostools/r-cubed/-/releases/new")

# This is for when we upload to Zenodo
# tag_archive_file <- str_c("dif-project", repo_version, ".zip")
# git_archive_zip(tag_archive_file)

# zenodo <- ZenodoManager$new(
# # url = "https://sandbox.zenodo.org/api",
# url = "https://zenodo.org/api",
# logger = "INFO",
# token = askpass::askpass()
# )
4 changes: 4 additions & 0 deletions index.Rmd
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
---
title: "A framework for an open and scalable infrastructure for health data exemplified by the DD2 initiative"
author:
- Luke W. Johnston
- Alisa Devedzic Kjærgaard
- Annelli Sandbæk
site: distill::distill_website
bibliography: "resources/references.bib"
csl: "resources/vancouver.csl"
Expand Down
Loading

0 comments on commit d315c7e

Please sign in to comment.