Skip to content

Commit 84791b2

Browse files
committed
init github pages pkgdown, pkgdown fixes
1 parent da66283 commit 84791b2

31 files changed

+399
-17
lines changed

.Rbuildignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,6 @@
33
^LICENSE\.md$
44
^sandbox$
55
^\.github$
6+
^_pkgdown\.yml$
7+
^docs$
8+
^pkgdown$

.github/workflows/pkgdown.yaml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
2+
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
branches: [main, master]
8+
release:
9+
types: [published]
10+
workflow_dispatch:
11+
12+
name: pkgdown
13+
14+
jobs:
15+
pkgdown:
16+
runs-on: ubuntu-latest
17+
# Only restrict concurrency for non-PR jobs
18+
concurrency:
19+
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
20+
env:
21+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
22+
permissions:
23+
contents: write
24+
steps:
25+
- uses: actions/checkout@v3
26+
27+
- uses: r-lib/actions/setup-pandoc@v2
28+
29+
- uses: r-lib/actions/setup-r@v2
30+
with:
31+
use-public-rspm: true
32+
33+
- uses: r-lib/actions/setup-r-dependencies@v2
34+
with:
35+
extra-packages: any::pkgdown, local::.
36+
needs: website
37+
38+
- name: Build site
39+
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
40+
shell: Rscript {0}
41+
42+
- name: Deploy to GitHub pages 🚀
43+
if: github.event_name != 'pull_request'
44+
uses: JamesIves/[email protected]
45+
with:
46+
clean: false
47+
branch: gh-pages
48+
folder: docs

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
.Rhistory
33
.RData
44
.Ruserdata
5+
docs

DESCRIPTION

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@ Package: cloudfs
22
Title: Streamlined interface to interact with cloud storage platforms
33
Version: 0.0.1
44
Authors@R: c(
5-
person("Tom", "Vladeck", email = "[email protected] ", role = c("aut")),
6-
person("Stefan", "Musch", email = "[email protected]", role = c("aut")),
75
person("Iaroslav", "Domin", email = "[email protected]", role = c("aut", "cre")),
6+
person("Stefan", "Musch", email = "[email protected]", role = c("aut")),
87
person("Michal", "Czyz", email = "[email protected]", role = c("aut")),
98
person("Emmanuel", "Ugochukwu", email = "[email protected]", role = c("aut")),
10-
person("Gradient Metrics", role = c("cph"))
9+
person("Gradient Metrics", role = c("cph", "fnd"))
1110
)
1211
Description: This package offers a unified interface for simplifying cloud
1312
storage interactions, including uploading, downloading, reading, and writing
@@ -40,3 +39,4 @@ Suggests:
4039
VignetteBuilder:
4140
knitr
4241
Config/testthat/edition: 3
42+
URL: https://g6t.github.io/cloudfs/, https://github.com/g6t/cloudfs

NAMESPACE

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Generated by roxygen2: do not edit by hand
22

3-
export(check_bool)
43
export(cloud_drive_attach)
54
export(cloud_drive_browse)
65
export(cloud_drive_download)

R/cli.R

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
#' cli_yeah("{.field Yes} or {.field No}?", straight = TRUE)
3030
#' }
3131
#'
32-
#' @noRd
32+
#' @keywords internal
3333
cli_yeah <- function(x, straight = FALSE, .envir = parent.frame()) {
3434
check_scalar(x, arg_class = "character")
3535
check_scalar(straight, arg_class = "logical")
@@ -103,7 +103,7 @@ cli_yeah <- function(x, straight = FALSE, .envir = parent.frame()) {
103103
#' check_scalar(num_s, arg_class = "integer")
104104
#' check_scalar(logical_v, arg_class = "integer", alt_null = TRUE)
105105
#' }
106-
#' @noRd
106+
#' @keywords internal
107107
check_scalar <- function(..., arg_class, alt_null = FALSE) {
108108

109109
.args <- check_args(...)
@@ -191,7 +191,7 @@ check_numeric <- function(x) {
191191
#' check_class(nl1, arg_class = "character", alt_null = TRUE)
192192
#' check_class(n2, arg_class = "character", alt_null = TRUE)
193193
#' }
194-
#' @noRd
194+
#' @keywords internal
195195
check_class <- function(x, arg_class, alt_null = FALSE, add_msg = NULL) {
196196
if(!(inherits(arg_class, "character") & length(arg_class) == 1)) {
197197
cli::cli_abort(
@@ -264,7 +264,7 @@ check_class <- function(x, arg_class, alt_null = FALSE, add_msg = NULL) {
264264
#' nl1, arg_length = 2L, alt_null = TRUE, add_msg = "{.arg {x_name}} should be short"
265265
#' )
266266
#' }
267-
#' @noRd
267+
#' @keywords internal
268268
check_length <- function(x, arg_length = 1L, alt_null = FALSE, add_msg = NULL) {
269269
if(!inherits(arg_length, "integer") | length(arg_length) != 1) {
270270
cli::cli_abort(
@@ -303,7 +303,7 @@ check_length <- function(x, arg_length = 1L, alt_null = FALSE, add_msg = NULL) {
303303
#'
304304
#' @param ... unqouted arguments names
305305
#'
306-
#' @noRd
306+
#' @keywords internal
307307
check_args <- function(...) {
308308
rlang::quos(...)
309309
}
@@ -317,7 +317,7 @@ check_args <- function(...) {
317317
#' @param x Argument to check if is NULL.
318318
#' @param alt_null Logical. If `TRUE` it will check if `x` is `NULL`.
319319
#'
320-
#' @noRd
320+
#' @keywords internal
321321
check_null_cond <- function(x, alt_null){
322322
if(!(isTRUE(alt_null) | isFALSE(alt_null) | length(alt_null) != 1)) {
323323
cli::cli_abort(
@@ -367,7 +367,7 @@ check_null_cond <- function(x, alt_null){
367367
#' check_bool(l1)
368368
#' check_bool(l2)
369369
#' }
370-
#' @export
370+
#' @keywords internal
371371
check_bool <- function(x, alt_null = FALSE, add_msg = NULL) {
372372

373373
check_class(add_msg, arg_class = "character", alt_null = TRUE)

R/cloud_local.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,8 @@ cloud_object_ls <- function(x, path, extension, prefix = "", suffix = "") {
172172
#' @param content (data.frame) output of `cloud_object_ls()`
173173
#' @param quiet all caution messages may be turned off by setting this parameter
174174
#' to `TRUE`.
175-
#'
175+
#'
176+
#' @keywords internal
176177
cloud_object_prep_bulk <- function(content, quiet = FALSE) {
177178
check_class(content, "data.frame")
178179
stopifnot(all(c("object", "name", "type") %in% names(content)))

R/common.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ cloud_get_roots <- function(project = ".") {
1919
#' @inheritParams validate_desc
2020
#' @param key Character. What field to search for in DESCRIPTION file.
2121
#'
22+
#' @keywords internal
2223
proj_desc_get <- function(key, project = ".") {
2324
check_string(key)
2425
check_string(project)
@@ -37,7 +38,8 @@ proj_desc_get <- function(key, project = ".") {
3738
#' letters, digits, '-', '_', '.', spaces and '/' symbols.
3839
#' @param error if `TRUE` (default), throws an error if `file` is not a valid
3940
#' file path.
40-
#'
41+
#'
42+
#' @keywords internal
4143
cloud_validate_file_path <- function(file, error = TRUE) {
4244
check_string(file)
4345
res <- grepl("^([A-Za-z]|[0-9]|-|_|\\.| |/)+$", file)
@@ -149,6 +151,7 @@ validate_desc <- function(project = ".") {
149151
#' @param full_names (logical) If `TRUE`, folder path is appended to object
150152
#' names to give a relative file path.
151153
#'
154+
#' @keywords internal
152155
cloud_prep_ls <- function(data, path, recursive, full_names) {
153156
check_class(data, arg_class = "data.frame")
154157
required_cols <- c("short_name", "last_modified", "size_b")

R/drive_setup.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,8 @@ cloud_drive_get_root <- function(project = ".") {
127127
#' \dontrun{
128128
#' cloud_drive_find_path("1ul0MYeHb0nJtnuaPinKV1WtH0n3igmN2", "models/kmeans")
129129
#' }
130-
#'
130+
#'
131+
#' @keywords internal
131132
cloud_drive_find_path <- function(root, path = "", create = FALSE) {
132133
check_string(path)
133134
check_string(root)

R/drive_transfer_bulk.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#' @param quiet All caution messages may be turned off by setting this parameter
2121
#' to `TRUE`.
2222
#'
23+
#' @keywords internal
2324
cloud_drive_prep_bulk <- function(content, what = c("read", "download"),
2425
safe_size = 5e7, quiet = FALSE) {
2526
check_class(content, "data.frame")

0 commit comments

Comments
 (0)