Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is this error: File does not exist error with roxygenise?

Tags:

r

roxygen2

I have been using roxygen2::roxygenise quite successfully with my package to build exported and imported functions. However, I recently ran into this error which I am unable to resolve:

> roxygen2::roxygenise()
First time using roxygen2. Upgrading automatically...
Error: File file does not exist

This is not the first time I have used roxygen2 with this package. In addition, I am not quite sure what "File file does not exist" means. Has anyone else seen this and been able to resolve it?

like image 839
Alex Avatar asked May 10 '17 01:05

Alex


2 Answers

I think you have to set the working directory of R to be the package folder

like image 117
sunxd Avatar answered Oct 20 '22 17:10

sunxd


I got the same error when using:

roxygen2::roxygenise("mypackage")

But, I didn't get the error when I instead used:

library(roxygen2)
roxygenise()

I know this is no explanation and I can't comment upon whether this works beyond my case.

like image 1
Syrphus7 Avatar answered Oct 20 '22 17:10

Syrphus7