Skip to content

Commit

Permalink
Fix R version check for system add-pak
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborcsardi committed Jul 19, 2023
1 parent 46226d9 commit 555c2fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/macos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -842,7 +842,7 @@ pub fn check_has_pak(ver: &String) -> Result<bool, Box<dyn Error>> {
let ver = ver + ".0";
let v350 = Version::parse("3.5.0")?;
let vv = Version::parse(&ver)?;
if vv <= v350 {
if vv < v350 {
bail!("Pak is only available for R 3.5.0 or later");
}
Ok(true)
Expand Down

0 comments on commit 555c2fd

Please sign in to comment.