12 June 2020

R

System: Slackware Linux (version 14.2)
CPUs: Intel(R) Atom(TM) CPU N270 @1.60GHz

R >=4.0.0 requires pcre2.

See the previous Posts regarding sbopkg and the inconsolata font.

bash-4.3$ su -
Password:
root@darkstar:~# cd /tmp
root@darkstar:/tmp# sbopkg -i pcre2

...

pcre2:
  Checking GPG for pcre2.tar.gz ... OK
  Processing pcre2 10.35-1
  Using original .info file
  Using original SlackBuild file
  No build options selected.

...

Do you wish to proceed based on the search results above? Packages not
found will be skipped during the process.

(P)roceed or (Q)uit?: P

...

Done upgrading/installing package.

...

root@darkstar:/tmp# sbopkg -ki R

...

R:
  Checking GPG for R.tar.gz ... OK
  Processing R 4.0.0-1
  Using original .info file
  Using original SlackBuild file
  No build options selected.

...

Do you wish to proceed based on the search results above? Packages not
found will be skipped during the process.

(P)roceed or (Q)uit?: P

...

Done upgrading/installing package.

...

root@darkstar:/tmp# exit
bash-4.3$

In uxterm if you want natural language support.

bash-4.3$ echo $LANG
en_US.UTF-8
bash-4.3$ LANG=da_DK.UTF-8; export LANG
bash-4.3$

Deal with Sys.timezone() output and set a default CRAN "repo" mirror.

bash-4.3$ cat ~/.Rprofile
local({
  zoneinfopath <- Sys.readlink("/etc/localtime-copied-from")
  tz <- sub("/usr/share/zoneinfo/", "", zoneinfopath, fixed = TRUE)
  Sys.setenv(TZ = tz)
})

options(repos = c(CRAN = "https://mirrors.dotsrc.org/cran/"))
bash-4.3$

If you want a default directory for locally installed packages.

bash-4.3$ mkdir -p ~/R/i586-slackware-linux-gnu-library/4.0
bash-4.3$

[   ]