Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 1.46 KB

package_lock.md

File metadata and controls

39 lines (29 loc) · 1.46 KB

패키지 설치중 강제종료로 인한 LOCK 문제 해결하기

문제상황

  • R dplyr 패키지 업데이트중 문제가 발생하여 강제 종료함
  • 다시 들어가서 작업하려 했더니 tidyverse 로드하는 과정에서 에러가 발생
> library('tidyverse')

S3 methods ‘[.fun_list’, ‘[.grouped_df’, ..............
were declared in NAMESPACE but not foundError: package or namespace load failed for ‘tidyverse’ in library.dynam(lib, package, package.lib):
 shared object ‘dplyr.so’ not found
  • 따라서 dplyr 재설치를 시도했는데 다음과 같은 에러가 발생함!!
ERROR: failed to lock directory ‘/usr/local/lib/R/site-library’ for modifying
Try removing ‘/usr/local/lib/R/site-library/00LOCK-dplyr’

The downloaded source packages are in
    ‘/tmp/RtmpgCPB3M/downloaded_packages’
Warning message:
In install.packages("dplyr") :
  installation of package ‘dplyr’ had non-zero exit status

해결방법

install.packages("dplyr", dependencies=TRUE, INSTALL_opts = c('--no-lock'))