* using log directory 'd:/Rcompile/CRANpkg/local/3.4/ctrdata.Rcheck' * using R version 3.4.4 (2018-03-15) * using platform: x86_64-w64-mingw32 (64-bit) * using session charset: ISO8859-1 * checking for file 'ctrdata/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'ctrdata' version '0.18' * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'ctrdata' can be installed ... ERROR Installation failed. See 'd:/Rcompile/CRANpkg/local/3.4/ctrdata.Rcheck/00install.out' for details. * DONE The installation logfile: ERROR: failed to lock directory 'd:/Rcompile/CRANpkg/lib/3.4' for modifying Try removing 'd:/Rcompile/CRANpkg/lib/3.4/00LOCK-ctrdata' In R CMD INSTALL