devtools Error: Could not find package root

Main reasons:
The problem is not the root package, but that the current path is not in the directory where the R package was developed

Error: Could not find package root.

Solutions:
Setwd ()
just go back to the directory where you developed the R package.

Read More: