-
Notifications
You must be signed in to change notification settings - Fork 237
Description
I am new on creating packages and I am very sorry if this is not a Roxygen related bug. I've been struggling hours trying to check what's the problem and any help is appreciated.
I am trying to roxygenise() my package (also tried with devtools::document()). However, I am running at the same problem all the time, whereas the compilation works but the final step isn't executed because it cannot find the package root (supposedly it's a temporary folder)
** checking absolute paths in shared objects and dynamic libraries ─ DONE (infPackage) Error in find_package_root(path) : Path does not exist: /var/folders/2z/n3hh9hls78sfgxccsssr10bc0000gn/T//RtmpKVYDIA/devtools_install_d45e52bbcf53/infPackage
I've tried many workarounds:
-
Ensured to delete all of the binaries
-
Run R CMD CHECK . and R CMD BUILD . without any problems. Indeed, I have been using my own package before by calling it without an absolute path via
library(myPackageName). The only problems I encountered are some C and CPP standards warnings that (such as printf, system rng's, etc), I suppose, aren't relevant towards solving my problem. -
Removed my library by uninstalling it. Also removed roxygen2, devtools, pkgmaker and usethis for later reinstalling them. Calling them in the R console via
library(roxygen2)works for every package. -
Tried running with
Sys.setenv(R_DISABLE_CHECK_PACKAGE_ROOT = "TRUE"), encountering the same issue as before. -
Defined an .Rbuildignore for ignoring any intermediate binaries and unuseful files. With unuseful files I refer to dot files regarding my lintr or other configurations and some executables.
My current folder structure looks as follow:
.
├── DESCRIPTION
├── NAMESPACE
├── R
├── compile_commands.json
├── data
├── infPackage_0.1.0.tar.gz
├── man
├── matTest.sh
├── packageMaker.sh
└── src
The thing that makes me suspect of roxygen's fault is that, compiling with R CMD works without any problem.
Platform: x86_64-apple-darwin23.6.0
R version: 4.4.2 (2024-10-31)
roxygen version: 7.3.2
Replicable everytime I run roxygenise() or devtools::document()