Skip to content
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

package_version() #30

Open
HenrikBengtsson opened this issue Jun 13, 2019 · 0 comments
Open

package_version() #30

HenrikBengtsson opened this issue Jun 13, 2019 · 0 comments

Comments

@HenrikBengtsson
Copy link

FYI, instead of

eval(parse(text=paste0("RStudio.Version()$version ", " >= ", "\"", threshold, "\""))))

you can use:

package_version(RStudio.Version()$version) >= threshold

If my RStudio 1.2.1335, it would be enough to do:

RStudio.Version()$version >= threshold

because that 'version' field is already a package_version object, but maybe that's not the case for the older version of RStudio that you wanna test.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant