-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackages.qmd
149 lines (111 loc) · 4.24 KB
/
packages.qmd
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
---
title: "Package Installation & Dependencies"
execute:
eval: false
---
## Update Your Version of R
The examples and workflows described here are all developed with **R version 4.2**
and you are strongly encouraged to update your version to 4.2 _or greater_. In
general, the code and examples provided should work reliably with any version
of R greater than 4.0.
## Install Core Packages
The focus of this site, and the example workflows we describe, is on animal
movement modeling in R using the `{crawl}` package. In addition, the recently
developed `{pathroutr}` and `{crawlUtils}` packages are key enhancements that
extend the capabilities of `{crawl}` and improve the user experience.
You are strongly encouraged to install the latest available versions of each
package.
### Install `{crawl}`
#### Install via CRAN
`{crawl}` is currently available on CRAN and R >= 4.0 is highly recommended.
```{r}
# install latest version of crawl from CRAN
install.packages("crawl")
```
#### Install via R-Universe
The latest version of `{crawl}` is also available via R-Universe.
```{r}
# Install crawl from my R-Universe repository
# Enable repository from dsjohnson
options(repos = c(
dsjohnson = 'https://dsjohnson.r-universe.dev',
CRAN = 'https://cloud.r-project.org'))
# Download and install crawl in R
install.packages('crawl')
# Browse the crawl manual pages
help(package = 'crawl')
```
You can also add the repository to your local list of repositories in your
*.Rprofile* and this will ensure `update.packages()` pulls any new releases
of `{crawl}` from R-Universe
```{r}
#install.packages("usethis")
usethis::edit_r_profile()
# add the following text or replace existing repos option
options(repos = c(dsjohnson = 'https://dsjohnson.r-universe.dev',
CRAN = 'https://cloud.r-project.org'))
```
#### Install via Github
A development version of `{pathroutr}` is also available from
[GitHub](https://github.com/NMML/crawl). This version should be used with
caution and only after consulting with package authors.
```{r}
# install.packages("remotes")
remotes::install_github("NMML/crawl@devel")
```
### Install `{pathroutr}`
`{pathroutr}` is currently not available on CRAN and also requires R >= 4.0. Please
upgrade your version of R, if needed, before proceeding. Future versions of
`{pathroutr}` may support pre-4.0 versions of R. But, for now, only 4.0+ is supported.
#### Install via R-Universe
Starting with v0.2.1, `{pathroutr}` is available via R-Universe.
```{r}
# Install new pathroutr version from my R-Universe repository
install.packages("pathroutr", repos = "https://jmlondon.r-universe.dev")
```
You can also add my repository to your local list of repositories in your
*.Rprofile* and this will ensure `update.packages()` pulls any new releases
of `{pathroutr}`
```{r}
#install.packages("usethis")
usethis::edit_r_profile()
# add the following text or replace existing repos option
options(repos = c(jmlondon = 'https://jmlondon.r-universe.dev',
CRAN = 'https://cloud.r-project.org'))
```
#### Install via Github
The development version of `{pathroutr}` is available from
[GitHub](https://github.com/jmlondon/pathroutr) with:
```{r}
# install.packages("remotes")
remotes::install_github("jmlondon/pathroutr")
```
### Install `{crawlUtils}`
#### Install via R-Universe
```{r}
# Install crawlUtils from Devin's R-Universe repository
options(repos = c(
dsjohnson = 'https://dsjohnson.r-universe.dev',
CRAN = 'https://cloud.r-project.org'))
# Download and install crawlUtils in R
install.packages('crawlUtils')
# Browse the crawlUtils manual pages
help(package = 'crawlUtils')
```
You can also add the repository to your local list of repositories in your
*.Rprofile* and this will ensure `update.packages()` pulls any new releases
of `{crawlUtils}` from R-Universe
```{r}
#install.packages("usethis")
usethis::edit_r_profile()
# add the following text or replace existing repos option
options(repos = c(dsjohnson = 'https://dsjohnson.r-universe.dev',
CRAN = 'https://cloud.r-project.org'))
```
#### Install via Github
The development version of `{crawlUtils}` is available from
[GitHub](https://github.com/dsjohnson/crawlUtils) with:
```{r}
# install.packages("remotes")
remotes::install_github("dsjohnson/crawlUtils")
```