Skip to content

Commit

Permalink
vienna rna: fix try catch
Browse files Browse the repository at this point in the history
  • Loading branch information
matdoering committed Jan 17, 2024
1 parent 4346b8f commit 0b7b80e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
^NEWS\.md$ # A news file written in Markdown
^\.travis\.yml$ # Used for continuous integration testing with travis
^data-raw$ # Ignore raw data: not needed for the pkg itself
^doc$
^Meta$
2 changes: 1 addition & 1 deletion R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ check.tool.function <- function(frontend = FALSE) {
# need to require a specific version (2.4.1) of viennaRNA for support of the used commands
version <- NULL
try (version <- system2("RNAfold", "--version", stdout = TRUE, stderr = TRUE))
if (length(attr(version, "status")) == 0) {
if (!is(version, "try-error")) {
# the command worked -> check the version string
v <- strsplit(version, " ")[[1]]
if (length(v) >= 2) {
Expand Down

0 comments on commit 0b7b80e

Please sign in to comment.