missing local R library
Thomas Friedrichsmeier
thomas.friedrichsmeier at kdemail.net
Wed Jun 30 16:45:02 BST 2021
Hi,
Am Wed, 30 Jun 2021 09:42:57 +0200
schrieb meik michalke <meik.michalke at uni-duesseldorf.de>:
> i'm running into a problem after upgrading R, it is likely also one
> with a fresh installation:
>
> RKWard should install packages to "$HOME/R/%v", as configured. this
> directory does not exist until the first package is installed using
> RKWard's package installation dialog, hence .libPaths() does not
> include it either. only after an initial installation of any package
> to that library location, it is added to .libPaths(). this, however,
> makes it hard to use install.packages() for an initial installation,
> which defaults to .libPaths()[1] as its target directory.
>
> since each upgrade of R also changes the effective value of "%v", i'm
> having this issue all the time.
>
> an easy fix would be to check for custom library locations that are
> configured in RKWard, and if they don't exist, try to create the
> directories sometime before .libPaths() is set.
added in master.
Regards
Thomas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: Digitale Signatur von OpenPGP
URL: <http://mail.kde.org/pipermail/rkward-devel/attachments/20210630/8b681689/attachment.sig>
More information about the rkward-devel
mailing list