missing local R library

meik michalke meik.michalke at uni-duesseldorf.de
Wed Jun 30 08:42:57 BST 2021


hi,

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. 


viele grüße :: m.eik

-- 
  dipl. psych. meik michalke
  institut f"ur experimentelle psychologie
  abt. f"ur diagnostik und differentielle psychologie
  heinrich-heine-universit"at d-40204 d"usseldorf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/rkward-devel/attachments/20210630/b5e3c987/attachment.sig>


More information about the rkward-devel mailing list