Set the HTTP user agent in the system Rprofile
This commit is contained in:
parent
a541837927
commit
685c8228ba
1 changed files with 3 additions and 2 deletions
|
|
@ -94,8 +94,9 @@ compile_r() {
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
|
|
||||||
# Add OS identifier to the default HTTP user agent
|
# Add OS identifier to the default HTTP user agent.
|
||||||
cat <<EOF >> /opt/R/${1}/lib/R/etc/Rprofile.site
|
# Set this in the system Rprofile so it works when R is run with --vanilla.
|
||||||
|
cat <<EOF >> /opt/R/${1}/lib/R/library/base/R/Rprofile
|
||||||
## Set the default HTTP user agent
|
## Set the default HTTP user agent
|
||||||
local({
|
local({
|
||||||
os_identifier <- if (file.exists("/etc/os-release")) {
|
os_identifier <- if (file.exists("/etc/os-release")) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue