-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
check_if_installed()
issue on R old-release?
#804
Comments
Probably |
See current changes I made. It seems that if no version was given in the description, an element of length 0 was returned, and This should be fixed now, but I wonder why tests did not fail for insight? |
Weird thing is that it seems to work OK on macOS, Windows, and ubuntu release and oldrel, but not ubuntu oldrel-2 and oldrel-3. I'd like to troubleshoot this but I only have access to a Windows machine... What's the recommended approach in these scenarios? In any case, it seems like the |
Thanks, that should settle it. The only potential issue is that by setting |
I think I already removed the check for R version, see https://github.com/easystats/insight/blob/main/R/check_if_installed.R |
I guess this should be fixes (e.g., performance no longer fails). @easystats/maintainers should we submit a "hotfix" of insight to CRAN? Last update of that package was just a few days ago. |
Yes, but it's a critical enough fix, CRAN won't complain at all. We just need to mention this in CRAN comments doc. |
Which R versions are oldrel-2 and oldrel-3 (and oldrel)? |
|
hm, it's weird that there's an issue in R 4.1, but not in R 4.2 for See https://github.com/easystats/parameters/actions/runs/6158994652/job/16712908066: mapply(rep, times = 1:4, x = 4:1)
#> [[1]]
#> [1] 4
#>
#> [[2]]
#> [1] 3 3
#>
#> [[3]]
#> [1] 2 2 2
#>
#> [[4]]
#> [1] 1 1 1 1
mapply(rep, times = 1:4, x = c())
#> list() Created on 2023-09-13 with reprex v2.0.2 See
Now, after making changes to |
Could be due to https://bugs.r-project.org/show_bug.cgi?id=18164 (implemented in R 4.1.2)? Random guess, it's the only thing I saw in the NEWS of R |
@rempsyc @etiennebacher @IndrajeetPatil Not sure what's going on, it seems we have no issues on old-R for insight, however, in other packages, we have:
https://github.com/easystats/parameters/actions/runs/6151829558/job/16692707814
The affected code seems to be this part:
insight/R/check_if_installed.R
Lines 73 to 80 in 7ee2d31
My first guess was that
package_version()
causes issues with old-R, but then it would fail for insight as well, which is not happening. Another guess is that the function that checks for dependency-versions has some issues, but I'm not sure why?insight/R/check_if_installed.R
Lines 154 to 167 in 7ee2d31
Any ideas?
The text was updated successfully, but these errors were encountered: