System: Slackware Linux (version 15.0)
CPUs: Intel(R) Core(TM) i5-3230M CPU @2.60GHz
GPU: Mesa DRI Intel(R) HD Graphics 4000
Deps: R-4.4.1.tar.xz, libgit2-1.8.1.tar.gz
Installation of the devtools package.
http://slackbuilds.org/repository/15.0/libraries/libgit2/
bash-5.1# installpkg libgit2-1.8.1-x86_64-1_SBo.tgz
....
bash-5.1#
The above library is a dependency for the gert package.
$ R -q
> install.packages("devtools", quiet = TRUE)
also installing the dependencies ‘Rcpp’, ‘utf8’, ‘askpass’, ‘credentials’, ‘sys’, ‘zip’, ‘gitcreds’, ‘ini’, ‘fastmap’, ‘httpuv’, ‘mime’, ‘xtable’, ‘sourcetools’, ‘later’, ‘promises’, ‘base64enc’, ‘jquerylib’, ‘sass’, ‘fansi’, ‘systemfonts’, ‘textshaping’, ‘tinytex’, ‘xfun’, ‘pillar’, ‘pkgconfig’, ‘highr’, ‘diffobj’, ‘rematch2’, ‘clipr’, ‘crayon’, ‘curl’, ‘gert’, ‘gh’, ‘glue’, ‘jsonlite’, ‘purrr’, ‘rappdirs’, ‘rprojroot’, ‘rstudioapi’, ‘whisker’, ‘yaml’, ‘R6’, ‘cachem’, ‘shiny’, ‘htmltools’, ‘callr’, ‘processx’, ‘bslib’, ‘digest’, ‘downlit’, ‘fontawesome’, ‘httr2’, ‘openssl’, ‘ragg’, ‘rmarkdown’, ‘tibble’, ‘xml2’, ‘htmlwidgets’, ‘stringr’, ‘vctrs’, ‘prettyunits’, ‘xopen’, ‘brew’, ‘commonmark’, ‘knitr’, ‘stringi’, ‘cpp11’, ‘brio’, ‘evaluate’, ‘magrittr’, ‘praise’, ‘ps’, ‘waldo’, ‘usethis’, ‘cli’, ‘desc’, ‘ellipsis’, ‘fs’, ‘lifecycle’, ‘memoise’, ‘miniUI’, ‘pkgbuild’, ‘pkgdown’, ‘pkgload’, ‘profvis’, ‘rcmdcheck’, ‘remotes’, ‘rlang’, ‘roxygen2’, ‘rversions’, ‘sessioninfo’, ‘testthat’, ‘urlchecker’, ‘withr’
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
> quit()
Save workspace image? [y/n/c]: n
$
The install provides devtools::build_readme() for updating a README.md from a README.Rmd file.
01 August 2024
22 August 2023
roxygen
System: Slackware Linux (version 15.0)
CPUs: Intel(R) Core(TM) i5-3230M CPU @2.60GHz
GPU: Mesa DRI Intel(R) HD Graphics 4000
Installation of the roxygen2 package.
bash-5.1$ R -q
> install.packages("roxygen2", quiet = TRUE)
also installing the dependencies 'rprojroot', 'evaluate', 'highr', 'xfun', 'yaml', 'crayon', 'fs', 'glue', 'lifecycle', 'magrittr', 'vctrs', 'brew', 'cli', 'commonmark', 'desc', 'knitr', 'pkgload', 'purrr', 'R6', 'rlang', 'stringi', 'stringr', 'withr', 'xml2', 'cpp11'
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
> quit()
Save workspace image? [y/n/c]: n
bash-5.1$
Running roxygen2::roxygenise() requires your package's DESCRIPTION file Imports are installed.
When comments are modified running roxygen2::roxygenise() will regenerate the relevant .Rd files.
CPUs: Intel(R) Core(TM) i5-3230M CPU @2.60GHz
GPU: Mesa DRI Intel(R) HD Graphics 4000
Installation of the roxygen2 package.
bash-5.1$ R -q
> install.packages("roxygen2", quiet = TRUE)
also installing the dependencies 'rprojroot', 'evaluate', 'highr', 'xfun', 'yaml', 'crayon', 'fs', 'glue', 'lifecycle', 'magrittr', 'vctrs', 'brew', 'cli', 'commonmark', 'desc', 'knitr', 'pkgload', 'purrr', 'R6', 'rlang', 'stringi', 'stringr', 'withr', 'xml2', 'cpp11'
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
> quit()
Save workspace image? [y/n/c]: n
bash-5.1$
Running roxygen2::roxygenise() requires your package's DESCRIPTION file Imports are installed.
When comments are modified running roxygen2::roxygenise() will regenerate the relevant .Rd files.
Indsendt af
Eric Lindblad
kl.
00:16
16 August 2023
R
System: Slackware Linux (version 15.0)
CPUs: Intel(R) Core(TM) i5-3230M CPU @2.60GHz
Deps: R-4.3.1.tar.gz
For PDF vignettes and package manuals to be rendered optimally you'll need the LaTeX package inconsolata or bera installed.
The previous Post is about the bera package.
The inconsolata package uses a slashed zero and some have commented its tilde is too high.
Set the variable R_RD4PDF=beramono to use the bera package when building R.
bash-5.1$ cat build.sh
#!/bin/bash
# Slackware build script for for R
PRGNAM=R
VERSION=${VERSION:-4.3.1}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
else
SLKCFLAGS="-O2"
fi
set -e
rm -rf $HOME/R
rm -rf $PRGNAM-$VERSION
tar xvf $PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
R_RD4PDF=beramono \
./configure \
--prefix=$HOME/R \
--mandir=$HOME/R/man \
--enable-R-shlib \
--enable-BLAS-shlib \
--build=$ARCH-slackware-linux
make
make install
make install-tests
cat <<EOF > $HOME/R.sh
export MANPATH="\${MANPATH}:\${HOME}/R/man"
export PATH="\${PATH}:\${HOME}/R/bin"
EOF
cat <<EOF > $HOME/R.csh
#!/bin/csh
setenv MANPATH \${MANPATH}:\${HOME}/R/man
setenv PATH \${PATH}:\${HOME}/R/bin
EOF
find $HOME/R -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
find $HOME/R/man -type f -exec gzip -9 {} \;
for i in $( find $HOME/R/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
bash-5.1$
Set a default CRAN "repo" mirror.
bash-5.1$ cat <<EOF > $HOME/.Rprofile
> options(repos = c(CRAN = "https://mirrors.dotsrc.org/cran/"))
> EOF
bash-5.1$
The timezone workaround as of the configuration change (2020-12-09) is redundant.
For building certain external programs you may want to append $PKG_CONFIG_PATH.
CPUs: Intel(R) Core(TM) i5-3230M CPU @2.60GHz
Deps: R-4.3.1.tar.gz
For PDF vignettes and package manuals to be rendered optimally you'll need the LaTeX package inconsolata or bera installed.
The previous Post is about the bera package.
The inconsolata package uses a slashed zero and some have commented its tilde is too high.
Set the variable R_RD4PDF=beramono to use the bera package when building R.
bash-5.1$ cat build.sh
#!/bin/bash
# Slackware build script for for R
PRGNAM=R
VERSION=${VERSION:-4.3.1}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i586 ;;
arm*) ARCH=arm ;;
*) ARCH=$( uname -m ) ;;
esac
fi
if [ "$ARCH" = "i586" ]; then
SLKCFLAGS="-O2 -march=i586 -mtune=i686"
elif [ "$ARCH" = "i686" ]; then
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
elif [ "$ARCH" = "x86_64" ]; then
SLKCFLAGS="-O2 -fPIC"
else
SLKCFLAGS="-O2"
fi
set -e
rm -rf $HOME/R
rm -rf $PRGNAM-$VERSION
tar xvf $PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION
CFLAGS="$SLKCFLAGS" \
CXXFLAGS="$SLKCFLAGS" \
R_RD4PDF=beramono \
./configure \
--prefix=$HOME/R \
--mandir=$HOME/R/man \
--enable-R-shlib \
--enable-BLAS-shlib \
--build=$ARCH-slackware-linux
make
make install
make install-tests
cat <<EOF > $HOME/R.sh
export MANPATH="\${MANPATH}:\${HOME}/R/man"
export PATH="\${PATH}:\${HOME}/R/bin"
EOF
cat <<EOF > $HOME/R.csh
#!/bin/csh
setenv MANPATH \${MANPATH}:\${HOME}/R/man
setenv PATH \${PATH}:\${HOME}/R/bin
EOF
find $HOME/R -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
find $HOME/R/man -type f -exec gzip -9 {} \;
for i in $( find $HOME/R/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
bash-5.1$
Set a default CRAN "repo" mirror.
bash-5.1$ cat <<EOF > $HOME/.Rprofile
> options(repos = c(CRAN = "https://mirrors.dotsrc.org/cran/"))
> EOF
bash-5.1$
The timezone workaround as of the configuration change (2020-12-09) is redundant.
For building certain external programs you may want to append $PKG_CONFIG_PATH.
Indsendt af
Eric Lindblad
kl.
20:39
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
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/"))
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$
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
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$
bash-4.3$ mkdir -p ~/R/i586-slackware-linux-gnu-library/4.0
bash-4.3$
Indsendt af
Eric Lindblad
kl.
11:12
![[ ]](https://raw.githubusercontent.com/nurmi-labs/nurmi-labs.github.io/main/img/r.png)