install_go {proffer} | R Documentation |
Install pprof and Go on Linux
Description
On Linux, this function actually installs Go,
which comes with its own
installation of pprof
. On Mac and Windows, the function
simply points the user to a link to download the installer.
Assumes amd64 architecture.
Usage
install_go(destination = Sys.getenv("HOME"), version = "1.19.5", quiet = FALSE)
Arguments
destination |
Only relevant to Linux,
full path to the Go installation with the |
version |
Character, a version string such as |
quiet |
Logical, whether to suppress console messages. |
Details
On Linux, users will need to set
the environment variables PROFFER_PPROF_BIN
and PROFFER_GO_BIN
using
usethis::edit_r_environ()
. Typically, if destination
is /home/you
,
then typically those lines look like
PROFFER_GO_BIN=/home/you/go/pkg/tool/linux_amd64/pprof
PROFFER_PPROF_BIN=/home/you/go/bin/go
.