Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

mdneuzerling
Copy link
Contributor

system_requirements supports specifying an operating system like "ubuntu-16.04", in which case it's intended that the input is split along the hyphen and os = "ubuntu", os_release = "16.04". Currently, the following code causes a "non-character argument" error when this is attempted, as strsplit attempts to run on a NULL value:

  if (is.null(os_release)) {
    os_release <- strsplit(os_release, "-", fixed = TRUE)[[1]]
    # ...
  }

This PR changes the above line to os_release <- strsplit(os, "-", fixed = TRUE)[[1]], and adds a unit test to ensure that we can determine system dependencies for the curl package when the operating system is specified as "ubuntu-16.04".

@jimhester jimhester merged commit 22c504d into r-lib:master Jun 2, 2021
@jimhester
Copy link
Member

Thanks a watt!

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

Successfully merging this pull request may close these issues.

2 participants