Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
telenskyt opened this issue Nov 5, 2024 · 2 comments
Closed

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

telenskyt opened this issue Nov 5, 2024 · 2 comments

Comments

@telenskyt
Copy link

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.

@telenskyt
Copy link
Author

I am sorry, this was my mistake! I was indeed in a wrong directory. Please ignore this.

@telenskyt
Copy link
Author

I am sorry, this was my mistake! I was indeed in a wrong directory. Please ignore this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant