-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNOTES
More file actions
32 lines (20 loc) · 662 Bytes
/
NOTES
File metadata and controls
32 lines (20 loc) · 662 Bytes
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
Notes from the course
Useful commands
#installing all packages in the project
renv::install()
#installing all packages
renv::restore()
#can update all packages, if needed
renv::update()
#can deactivate renv
renv::deactivate()
#Adding a package to the description file
usethis::use_package("packagename")
#Initiate renv - here specifying that it should only use the description file
renv::init(bare = TRUE)
#.Rprofile
Can set things it should always do once you restart
#renv workflow
#types of dependencies
- import: build - to run the code and build
- suggest: workflow - to work on the workflow, e.g. usethis, renv. This is not necessary to build.