Debian Codegraph @

R/equip.R

raw
1
2 #' Install required system libraries
3 #'
4 #' Equip your system with libraries commonly-used during compilation of
5 #' base and recommended \R packages. This was previously useful with older
6 #' versions of R on windows, but is no longer terribly helpful.
7 #'
8 #' @return This function is normally called for its side effects.
9 #' @export
10 #' @keywords internal
11 #' @examples
12 #' \dontrun{
13 #'
14 #' # download useful build tools
15 #' renv::equip()
16 #'
17 #' }
18 equip <- function() {
19
20 renv_scope_error_handler()
21
22 case(
23 renv_platform_windows() ~ renv_equip_windows(),
24 renv_platform_macos() ~ renv_equip_macos(),
25 renv_platform_linux() ~ renv_equip_linux()
26 )
27
28 invisible(NULL)
29
30 }
31
32 renv_equip_windows <- function() {
33 invisible(renv_extsoft_install() && renv_extsoft_use())
34 }
35
36 renv_equip_linux <- function() {
37 stopf("renv::equip() not yet implemented for Linux")
38 }