Skip to content

Commit

Permalink
Add unlist() to eliminate R CMD check failures on GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
stitam committed Dec 6, 2021
1 parent dbcd3f7 commit e427a36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/chemid.R
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ ci_query <- function(query, from = c("rn", "inchikey"),
physprop <- NA
} else {
physprop <- html_table(xml_find_all(ttt, "//h2[contains(., 'Physical Prop')]/following-sibling::div//table"))[[1]]
physprop[ , 'Value'] <- as.numeric(physprop[ , 'Value'])
physprop[ , 'Value'] <- as.numeric(unlist(physprop[ , 'Value']))
#= same as physprop
}

Expand Down

0 comments on commit e427a36

Please sign in to comment.