-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
48 lines (33 loc) · 1.05 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# sfsclient
<!-- badges: start -->
[](https://github.com/scienceuntangled/sfsclient/actions/workflows/R-CMD-check.yaml)
<!-- badges: end -->
An R package providing a minimal Synology File Station client.
## Installation
``` r
remotes::install_github("scienceuntangled/sfsclient")
```
## Example usage
```{r example, eval = FALSE}
library(sfsclient)
## provide user and pass directly, or via environment variables SFS_USER and SFS_PASS
sfs <- sfs_connect("https://my.sfs-domain.com/webapi", user = "myusername", pass = "mypassword")
## list shared folders
sfs_list_share(sfs)
## list folder contents
sfs_list(sfs, "/some/shared/folder")
## download file or folder
sfs_download(sfs, "/some/path/file.png")
```