Skip to content

devtools::release() trashes NAMESPACE #1437

@friendly

Description

@friendly

I have a legacy package developed without using roxygen for the .Rd files. When I tried to use devtools::release() to submit the package, rogygen2 was run, resulting in an empty NAMESPACE file, with no prompt for 'first time use of roxygen2`. This seems to be a bug, but certainly unexpected.
Is there any way to prevent this?

> devtools::release()
Warning: DR_DEVTOOLS FOUND PROBLEMS
* R is out of date (3.2.5 vs 3.3.2)
* RStudio is out of date (0.99.1266 vs 1.0.136)
Proceed anyway?
1: Uhhhh... Maybe?
2: I agree
3: I forget

Selection: 2
Building and checking HistData ===========================================================================================
Updating HistData documentation
Loading HistData
First time using roxygen2. Upgrading automatically...
Updating roxygen version in  C:\R\projects\histdata\pkg/DESCRIPTION 
Writing NAMESPACE

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurea feature request or enhancementrelease

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions