-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.Rmd
65 lines (46 loc) · 2.58 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
aspacer
=======
[](http://www.repostatus.org/#active)

```{r echo=FALSE}
knitr::opts_chunk$set(
comment = "#>",
collapse = TRUE,
warning = FALSE,
message = FALSE,
comment = "#>",
fig.path = "README-"
)
```
ArchiveSpace API R client
[ArchiveSpace API docs](https://github.com/archivesspace/archivesspace/blob/4c26d82b1b0e343b7e1aea86a11913dcf6ff5b6f/docs/slate/source/index.md)
## Package status and installation
[](https://ci.appveyor.com/project/sckott/aspacer)
[](https://travis-ci.org/)
[](https://codecov.io/gh/sckott/aspacer)
[](https://github.com/metacran/cranlogs.app)
__Installation instructions__
__Development version__
```{r eval=FALSE}
remotes::install_github("sckott/aspacer")
```
```{r eval=F}
library("aspacer")
```
## Usage
### setup authentication
Login using `asp_login()`. Before logging in: You can pass in your username and password to the function. We strongly recommend not doing that though, and instead storing your credentials as environment variables, that are then read in within the package like `Sys.getenv('ARCHIVESPACE_USER')`. Store two env vars in your `.Renviron` file (create it if you don't have one): `ARCHIVESPACE_USER` and `ARCHIVESPACE_PWD`. You can alternatively use R options that are stored in your `.Rprofile` file as `archivespace_user` and `archivespace_pwd`, but env vars are preferred. You can
optionally set env vars during the R session by running `Sys.setenv(ARCHIVESPACE_USER = 'your user name')` and
`Sys.setenv(ARCHIVESPACE_PWD = 'your password')`, or similarly with R options like
`options(archivespace_user = 'your user name')` and
`options(archivespace_pwd = 'your password')` - but these only last for the
current R session.
You can logout with `asp_logout()`
### Search
```{r}
```
## Citation
Get citation information for `aspacer` in R by running: `citation(package = 'aspacer')`
## Code of Conduct
Please note that this project is released with a [Contributor Code of Conduct](CONDUCT.md).
By participating in this project you agree to abide by its terms.