Skip to content

Commit

Permalink
Add 'RemoteBuildPlatform' to installed metadata
Browse files Browse the repository at this point in the history
This is useful to decide what platform a package was
installed on.
  • Loading branch information
gaborcsardi committed Apr 30, 2023
1 parent 9fa7eaa commit 721a43a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/install-binary.R
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ install_extracted_binary <- function(filename, lib_cache, pkg_cache, lib,

#' @importFrom utils modifyList
add_metadata <- function(pkg_path, metadata) {
if (!length(metadata)) return()
if (! "RemoteBuildPlatform" %in% names(metadata)) {
metadata[["RemoteBuildPlatform"]] <- current_r_platform()
}

## During installation, the DESCRIPTION file is read and an package.rds
## file created with most of the information from the DESCRIPTION file.
Expand Down

0 comments on commit 721a43a

Please sign in to comment.