-
Notifications
You must be signed in to change notification settings - Fork 1
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
Verify r version matches during activate #136
Conversation
@dpastoor, If you can review the edited content for activate.R in consts to make sure the R code makes sense (i.e. ordering of the messages makes sense) |
src/main.rs
Outdated
let context = CliContext::new(&cli.config_file)?; | ||
|
||
if r_version { | ||
println!("{}", context.config.r_version()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We probably want to show context.config.r_version().original
I think?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's what the display trait of Version does
Lines 90 to 94 in 28d2496
impl fmt::Display for Version { | |
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { | |
write!(f, "{}", self.original) | |
} | |
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor tweaks but like the idea!
r.version.check.mp4 |
124be6c
to
c1f87ef
Compare
Minimal
rv info
with--r-version
flag to allow for easy R version comparison