Skip to content

Commit

Permalink
Fix use of untar
Browse files Browse the repository at this point in the history
fixes #1029
  • Loading branch information
jgabry committed Nov 14, 2024
1 parent b762c54 commit 3c840ef
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions R/install.R
Original file line number Diff line number Diff line change
Expand Up @@ -203,8 +203,7 @@ install_cmdstan <- function(dir = NULL,
} else {
untar_rc <- utils::untar(
dest_file,
exdir = dir_cmdstan,
extras = "--strip-components 1"
exdir = dir
)
if (untar_rc != 0) {
stop("Problem extracting tarball. Exited with return code: ", untar_rc, call. = FALSE)
Expand Down

0 comments on commit 3c840ef

Please sign in to comment.