Skip to content

Commit

Permalink
Fix doc warnings and missing package in action
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasWallrich authored Nov 9, 2024
2 parents cbe03b2 + 8ee138d commit 963c54b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/document-and-deploy-manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,11 @@ jobs:
- name: Set up R Dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: devtools

- name: set up devtools system
run: sudo apt install libharfbuzz-dev libfribidi-dev libtiff5-dev
extra-packages: devtools, plogr, roxygen2, remotes, rsconnect, pkgdown

- name: Create documentation
run: |
R -e "
install.packages(c('rcmdcheck', 'roxygen2', 'devtools'));
file.remove('NAMESPACE');
descr <- readLines('DESCRIPTION');
descr <- stringr::str_replace(descr, '^Date.*$', paste('Date:', Sys.Date()));
Expand All @@ -63,7 +59,6 @@ jobs:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
run: |
R -e "
install.packages(c('rsconnect', 'remotes'));
remotes::install_github('ESHackathon/CiteSource', force = TRUE);
rsconnect::setAccountInfo(name=${{secrets.SHINY_LUKAS_ACCOUNT}}, token=${{secrets.SHINY_LUKAS_TOKEN}}, secret=${{secrets.SHINY_LUKAS_SECRET}});
rsconnect::deployApp(appName = 'CiteSource_latest', appDir = './inst/shiny-app/CiteSource', forceUpdate = TRUE)"
Expand All @@ -74,7 +69,6 @@ jobs:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
run: |
R -e "
install.packages(c('rsconnect', 'remotes'));
remotes::install_github('ESHackathon/CiteSource', force = TRUE);
rsconnect::setAccountInfo(name=${{secrets.SHINY_LUKAS_ACCOUNT}}, token=${{secrets.SHINY_LUKAS_TOKEN}}, secret=${{secrets.SHINY_LUKAS_SECRET}});
rsconnect::deployApp(appName = 'CiteSource', appDir = './inst/shiny-app/CiteSource', forceUpdate = TRUE)"
Expand All @@ -84,7 +78,6 @@ jobs:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
run: |
R -e "
install.packages('pkgdown');
if (!require(CiteSource)) remotes::install_github('ESHackathon/CiteSource', force = TRUE);
pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)"
Expand Down
5 changes: 1 addition & 4 deletions R/CiteSource.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@
#' processing of results of various searches in different sources. It allows to
#' deduplicate results while retaining meta-data on where those results were
#' found and then enables users to compare the contribution of different sources
#'
#' @docType package
#' @name CiteSource
NULL
"_PACKAGE"

# Use magrittr rather than base R pipe to be compatible with older R versions
# And data pronoun .data to avoid issues/warnings due to dplyr non-standard evaluation
Expand Down
2 changes: 2 additions & 0 deletions R/import_export_helpers.R
Original file line number Diff line number Diff line change
Expand Up @@ -1144,6 +1144,8 @@ remove_factors <- function(z) {
return(z)
}

#' @export

as.data.frame.bibliography <- function(x, ...) {
# Solves https://github.com/mjwestgate/synthesisr/issues/25 - but could likely be faster
x <- purrr::map(x, \(x) {
Expand Down

0 comments on commit 963c54b

Please sign in to comment.