Skip to content

Commit

Permalink
Merge pull request #1 from A2-ai/rcmdcheck
Browse files Browse the repository at this point in the history
fixes yaml for rcmdcheck gha
  • Loading branch information
jenna-a2ai authored Oct 28, 2024
2 parents bc4bbd4 + 3cf4fe5 commit 3c8f43f
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 28 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ permissions: read-all
jobs:
R-CMD-check:
runs-on: ${{ matrix.config.os }}
env:
GHQC_INFO_REPO: "https://github.com/A2-ai/ghqc.a2ai.git"

name: ${{ matrix.config.os }} (${{ matrix.config.r }})

strategy:
Expand Down
6 changes: 0 additions & 6 deletions R/download_packages.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,6 @@
#' @importFrom withr with_options
#'
#' @export
#'
#'
#' @examples
#' \dontrun{
#' install_ghqcapp_dependencies()
#' }
install_ghqcapp_dependencies <- function(lib_path = ghqc_libpath(),
pkgs = ghqc_depends,
use_pak = TRUE) {
Expand Down
8 changes: 3 additions & 5 deletions R/utils.R
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
#' The default install location for the ghqc package and its dependency. If it does not exist, it will be created
#' The default install location for the ghqc package and its dependencies. If it does not exist, it will be created.
#'
#' @return string containing the default lib path for the ghqc package and its dependencies
#' @return string containing the default lib path for the ghqc package and its dependencies (~/.local/share/ghqc/rpkgs)
#'
#' @importFrom fs dir_exists
#' @importFrom fs dir_create
#'
#' @export
#' @examples ghqc_libpath()
ghqc_libpath <- function() {
lib_path <- "~/.local/share/ghqc/rpkgs"
if (!fs::dir_exists(lib_path)) fs::dir_create(lib_path, recurse = TRUE)
Expand All @@ -15,9 +14,8 @@ ghqc_libpath <- function() {

#' The default install location for the ghqc customizing information repository
#'
#' @return string containing the default path to the ghqc information repository
#' @return string containing the default path to the ghqc information repository (~/.local/share/ghqc/&lt;info repo name here&gt;
#' @export
#' @examples ghqc_infopath()
ghqc_infopath <- function() {
file.path("~/.local/share/ghqc", info_repo_name())
}
5 changes: 1 addition & 4 deletions man/ghqc_infopath.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 3 additions & 6 deletions man/ghqc_libpath.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 0 additions & 5 deletions man/install_ghqcapp_dependencies.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3c8f43f

Please sign in to comment.