-
Notifications
You must be signed in to change notification settings - Fork 93
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
no package 'macos' was found #3775
Comments
I've never seen this. Do you have any "interesting" startup files? Meaning: site or user-level or project-specific |
Oh, yeah, I see this is an renv project. Can you reproduce this warning outside of Positron? |
This renv vignette on "renv in packages" has this
Note the
that certainly seems like a place to start. Possibly this issue only comes up when using renv in an R package |
It seems like the addition of the |
I wonder @kevinushey will immediately spot the problem. |
@abduazizR if there is anything else you can provide (like a video) of what you were doing when this warning popped up, that would be helpful. I've got R 4.5.0 along with the latest renv in an renv project and don't see these warnings
|
I tried working the last couple of days running different things to get the message but I don't get it anymore for some reason! I will post it if I see it gain |
I'm going to optimistically chalk this up to some unhappy renv state that you have successfully worked through 🤞 |
I'm getting this warning too. Also on a renv project, but not a package. R 4.4.1. Typically use VSCode, but trying out positron. Haven't seen the warning before in VSC. Seems to happen fairly regularly when I run |
@baslat If you are able to come up with a clear example where this happens for you, we would be super appreciative! |
No luck getting it reproducible yet, but I can confirm that the {rlang} functions below don't capture the warning. rlang::global_entrace()
options(rlang_backtrace_on_warning_report = "full")
# do something to make the warning appear
rlang::last_warnings() # shows nothing
last.warning # shows the 'macos' warning |
I'm getting something similar, while using renv and targets in conjunction with positron (latest build as of writing). It seems to happen when using tab completion... I am not able to isolate this either.
|
If you can get it to reliably reproduce, then you could try:
It is possible that could help us |
@DavisVaughan I have been trying to set |
I wonder if this would help identify the issue:
(replace "macos" with "linux-pop-jammy" as appropriate) |
Sorry, I should clarify. After running that code, you need to then try to trigger the unexpected warning messages again; if the warning occurs, you should also hopefully get an R backtrace printed to the console. |
Here is an example of what gets printed:
|
Oh that's super helpful @VLucet thanks! It looks like we are somehow extracting the wrong Note that we are looking for a pattern like
And the match there would indeed be So it looks like we need to reinvestigate how Maybe we can follow the same heuristics as > utils:::.getHelpFile
function (file)
{
path <- dirname(file)
dirpath <- dirname(path)
if (!file.exists(dirpath))
stop(gettextf("invalid %s argument", sQuote("file")),
domain = NA)
pkgname <- basename(dirpath)
RdDB <- file.path(path, pkgname)
if (!file.exists(paste0(RdDB, ".rdx")))
stop(gettextf("package %s exists but was not installed under R >= 2.10.0 so help cannot be accessed",
sQuote(pkgname)), domain = NA)
tools:::fetchRdDB(RdDB, basename(file))
} |
FWIW I'm also seeing this (the |
I'm seeing this too in an renv project on R 4.4.1:
|
QA - See this note about a reliable way to reproduce the original issue posit-dev/ark#537 (comment) |
Verified FixedPositron Version(s) : 2024.09.0-95 Test scenario(s)Using repro steps provided, works as expected. Link(s) to TestRail test cases run or created: |
I keep getting this warning message in R console and I am not sure if there is an R package called
macos
that I need to installSession Info
The text was updated successfully, but these errors were encountered: