-
Notifications
You must be signed in to change notification settings - Fork 3
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
Ensure PACKAGES are discovered via available.packages()
#88
Comments
The Instead of |
Ah, of course. This snippet from @borgmaan's script Should instead be - setwd(file.path(here::here(), "ubuntu-22.04/4.4"))
+ setwd(file.path(here::here(), "ubuntu-22.04/4.4/riskscore"))
options(repos = c("Local Repo" = "file:.")) Such that I'll need to test it out, but I'm confident this is at least part of the issue here. |
I am not sure I explained myself well: If a There are two options:
Instead of + file.rename(file.path(here::here(), "ubuntu-22.04/4.4/riskscore/src/contrib/PACKAGES"),
+ file.path(here::here(), "PACKAGES"))
- setwd(file.path(here::here(), "ubuntu-22.04/4.4"))
+ setwd(file.path(here::here())
options(repos = c("Local Repo" = "file:."))
Of course this needs to be tested. |
Ah, I see. You explained it perfectly fine, I just failed to grasp that detail. Thanks for the emphasizing the part I misunderstood. |
Going back to this after the pharmapkgs package. path <- file.path(package = getwd(), repo = "inst/repos/ubuntu-22.04/4.4")
ap2 <- available.packages(
repos = c(pharmapkgs = file.path("file://", path)),
fields = readLines(file.path(path, "src", "contrib", "RISKFIELDS"))
) |
Following on #74,
@borgmaan had mentioned that the modified
PACKAGES
file is not getting picked up byavailable.packages(repos = "file:.")
.@llrs suggested a few helpers from the
tools
package that might be able to help with this.The text was updated successfully, but these errors were encountered: