philip
philip

Reputation: 31

could not find function "find_rtools"

R 3.5.1 windows 7 installed rTools35.exe while checking if rtools is installed properly, getting an error:

library(devtools) find_rtools() Error in find_rtools() : could not find function "find_rtools"

Screenshot of error:

enter image description here

Upvotes: 2

Views: 2555

Answers (1)

Darlesson
Darlesson

Reputation: 6162

You need to load "pkgbuild" for that version by running library(pkgbuild). Then you can call find_rtools().

> library(devtools)
> find_rtools()
Error in find_rtools() : could not find function "find_rtools"
> library(pkgbuild)

Attaching package: ‘pkgbuild’

The following object is masked from ‘package:devtools’:

    build

> find_rtools()
[1] TRUE

Upvotes: 4

Related Questions