Prophet problems

Hi R Com.

i have some problems installing the prophet package. I am using the following code:


WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
Installing package into ‘C:/Users/JRNH/OneDrive - Columbus Global/Documents/R/win-library/4.1’
(as ‘lib’ is unspecified)
trying URL ''
Content type 'application/zip' length 2051255 bytes (2.0 MB)
downloaded 2.0 MB

package ‘prophet’ successfully unpacked and MD5 sums checked
Error in install.packages : ERROR: failed to lock directory ‘C:\Users\JRNH\OneDrive - Columbus Global\Documents\R\win-library\4.1’ for modifying
Try removing ‘C:\Users\JRNH\OneDrive - Columbus Global\Documents\R\win-library\4.1/00LOCK’


I think you have two issues.

  1. having your installations default to a onedrive path
  2. not having Rtools and potentially wanting to compile R Packages on a windows platform.

to solve your immediate issue (1) see : How to fix RStudio’s package installation on Windows 10 | by José Duarte, PhD | Medium
to address (2) simply install Rtools
Using Rtools4 on Windows (

Did you try to delete this file? Might have to close R first.

Hi both, problem solved :slight_smile: thx

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.