Skip to content
Snippets Groups Projects
Commit db35707c authored by Steffen Neumann's avatar Steffen Neumann
Browse files

remove dontrun from CTS examples to catch CTS errors.

parent c8a9a625
No related branches found
No related tags found
No related merge requests found
...@@ -143,11 +143,9 @@ getPcId <- function(search) ...@@ -143,11 +143,9 @@ getPcId <- function(search)
#' \url{http://cts.fiehnlab.ucdavis.edu} #' \url{http://cts.fiehnlab.ucdavis.edu}
#' #'
#' @examples #' @examples
#' \dontrun{
#' data <- getCtsRecord("UHOVQNZJYSORNB-UHFFFAOYSA-N") #' data <- getCtsRecord("UHOVQNZJYSORNB-UHFFFAOYSA-N")
#' # show all synonym "types" #' # show all synonym "types"
#' types <- unique(unlist(lapply(data$synonyms, function(i) i$type))) #' types <- unique(unlist(lapply(data$synonyms, function(i) i$type)))
#' }
#' \dontrun{print(types)} #' \dontrun{print(types)}
#' #'
#' @author Michele Stravs, Eawag <stravsmi@@eawag.ch> #' @author Michele Stravs, Eawag <stravsmi@@eawag.ch>
...@@ -172,9 +170,7 @@ getCtsRecord <- function(key) ...@@ -172,9 +170,7 @@ getCtsRecord <- function(key)
#' @return An unordered array with the resulting converted key(s). #' @return An unordered array with the resulting converted key(s).
#' #'
#' @examples #' @examples
#' \dontrun{
#' k <- getCtsKey("benzene", "Chemical Name", "InChIKey") #' k <- getCtsKey("benzene", "Chemical Name", "InChIKey")
#' }
#' @author Michele Stravs, Eawag <stravsmi@@eawag.ch> #' @author Michele Stravs, Eawag <stravsmi@@eawag.ch>
#' @export #' @export
getCtsKey <- function(query, from = "Chemical Name", to = "InChIKey") getCtsKey <- function(query, from = "Chemical Name", to = "InChIKey")
......
...@@ -18,10 +18,8 @@ ...@@ -18,10 +18,8 @@
Convert a single ID to another using CTS. Convert a single ID to another using CTS.
} }
\examples{ \examples{
\dontrun{
k <- getCtsKey("benzene", "Chemical Name", "InChIKey") k <- getCtsKey("benzene", "Chemical Name", "InChIKey")
} }
}
\author{ \author{
Michele Stravs, Eawag <stravsmi@eawag.ch> Michele Stravs, Eawag <stravsmi@eawag.ch>
} }
......
...@@ -27,11 +27,9 @@ ...@@ -27,11 +27,9 @@
scores are all 0, formula and exact mass return zero. scores are all 0, formula and exact mass return zero.
} }
\examples{ \examples{
\dontrun{
data <- getCtsRecord("UHOVQNZJYSORNB-UHFFFAOYSA-N") data <- getCtsRecord("UHOVQNZJYSORNB-UHFFFAOYSA-N")
# show all synonym "types" # show all synonym "types"
types <- unique(unlist(lapply(data$synonyms, function(i) i$type))) types <- unique(unlist(lapply(data$synonyms, function(i) i$type)))
}
\dontrun{print(types)} \dontrun{print(types)}
} }
\author{ \author{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment