Closed mkrasmus closed 1 month ago
Hi, I agree with the need of checkmate, but I don't understand why you didn't install it from its binary package. Does Hmisc really need the latest source version of checkmate? Best.
I should note that the Rtools 4.3 I had previously installed did not install checkmate. Checkmate required the newest version, Rtools 4.4 to compile - easily the largest application on my laptop @ 2.8gb. So it's quite a dependency if new to Hmisc/checkmate.
I still don't understand why Rtools is needed. Which command do you use to install checkmate? I didn't switch to R4.4 yet, but here is how I installed checkmate (from RGui). It does not require Rtools, which would complexify the installation of Hmisc and checkmate.
> install.packages("checkmate")
--- Please select a CRAN mirror for use in this session ---
trying URL 'https://cloud.r-project.org/bin/windows/contrib/4.3/checkmate_2.3.2.zip'
Content type 'application/zip' length 725168 bytes (708 KB)
downloaded 708 KB
package ‘checkmate’ successfully unpacked and MD5 sums checked
"Hmisc" does not import any functionality from "checkmate" so it's not a direct dependency. It does import "htmlTable", which is how "checkmate" gets pulled into the web of dependencies. For some reason "htmlTable" was not included in your install with dependencies = TRUE
. So it must have already been installed (?), and did not include it's own dependencies (root of the problem). CRAN dependencies are a huge mess, and I don't know of a good solution. This is not something we can fix in Hmisc though.
@SamGG is right that you can skip the Rtools requirement for "checkmate" if you install the binary version from CRAN. Any package with low-level code (C/Fortran) that you install directly from GitHub will require Rtools.
I should note that the Rtools 4.3 I had previously installed did not install checkmate. Checkmate required the newest version, Rtools 4.4 to compile - easily the largest application on my laptop @ 2.8gb. So it's quite a dependency if new to Hmisc/checkmate.
And one more addition: Strictly speaking, Rtools 4.4 is not needed because of Checkmate, but because R-4.4.1 and R-devel need the current Rtools44 to build packages from the sources, see [1]
[1] https://cran.r-project.org/bin/windows/Rtools/rtools44/rtools.html
R version 4.4.1 (2024-06-14 ucrt) -- "Race for Your Life" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64
Installing Hmisc is successful and identified in package library. However, loading Hmisc returns the following:
This was not remedied by:
Installing checkmate works, but requires the latest Rtools to compile. Following this Hmisc can now load.
Not an issue without a solution, but still an issue if considering blindsided by the 'checkmate' dependency. Perhaps include checkmate as a dependency in the original install.