Skip to content

document() and build_manual(): Could not find package root #2583

@telenskyt

Description

@telenskyt

When I run document() orbuild_manual(), I get the following error:

Error in `package_file()`:
! Could not find package root.
ℹ Is '.' inside a package?
Run `rlang::last_trace()` to see where the error occurred.
> rlang::last_trace()
<error/rlang_error>
Error in `package_file()`:
! Could not find package root.
ℹ Is '.' inside a package?
---
Backtrace:
    ▆
 1. └─devtools::build_manual()
 2.   └─devtools::as.package(pkg)
 3.     └─devtools::package_file(path = x)
Run rlang::last_trace(drop = FALSE) to see 2 hidden frames.

My current directory is a root directory of my package, with DESCRIPTION file and everything.

This was working several months ago. Now it doesn't.

I have devtools version 2.4.5 on R 4.4.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions