简体   繁体   中英

Error loading R dev_mode from .Rprofile

I'm doing a lot of development in R at the moment, so I would like to enable dev_mode when R starts up.

I've tried adding dev_mode() to my .Rprofile, given here:

library("devtools")
library("testthat")

dev_mode()

But doing so gives the following error:

Error in is_library(path) : could not find function "file_test"

and dev_mode isn't loaded on startup. Would anyone know how to fix this?

R 2.15.1-2, devtools 1.0, testthat 0.7

file_test comes from the utils package, so maybe that's not getting loaded. Try:

library(utils)

before anything else in your .Rprofile .

As commented, this works for me without it... YMMV...

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM