Skip to content

Commit

Permalink
modify roxygen docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Jermiah committed Oct 26, 2023
1 parent bf5093f commit b78b62a
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 71 deletions.
3 changes: 0 additions & 3 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ export(scrapeRemoteFTPFilesTable)
export(zenodoMetadata)
import(R6)
import(checkmate)
import(httr)
importFrom(BiocParallel,"bplog<-")
importFrom(BiocParallel,"bpprogressbar<-")
importFrom(BiocParallel,"bpworkers<-")
Expand All @@ -68,8 +67,6 @@ importFrom(BiocParallel,bpparam)
importFrom(BiocParallel,bpprogressbar)
importFrom(BiocParallel,bptry)
importFrom(BiocParallel,bpworkers)
importFrom(CoreGx,.errorMsg)
importFrom(CoreGx,.warnMsg)
importFrom(R6P,Singleton)
importFrom(S4Vectors,"metadata<-")
importFrom(S4Vectors,mcols)
Expand Down
14 changes: 7 additions & 7 deletions R/getDrugBank.R
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,12 @@ listColToDT <- function(col) {
}

# Function testing scripts, not run unless this file is called as a script
if (sys.nframe() == 0) {
library(AnnotationGx)
library(xml2)
library(data.table)
library(BiocParallel)
# if (sys.nframe() == 0) {
# library(AnnotationGx)
# library(xml2)
# library(data.table)
# library(BiocParallel)

drugTargetDT <- getDrugTargets('local_data/drugbank.xml')
# drugTargetDT <- getDrugTargets('local_data/drugbank.xml')

}
# }
2 changes: 1 addition & 1 deletion R/getPubChem.R
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ getRequestPubChem <- function(id, domain='compound', namespace='cid', operation=

if (isTRUE(raw)) return(result)

.checkThrottlingStatus(result, verbose = verbose)
.checkThrottlingStatus(result, throttleMessage = verbose)

canParse <- tryCatch({ parseJSON(result, as='text'); TRUE },
error=function(e) FALSE)
Expand Down
27 changes: 13 additions & 14 deletions R/getUniProt.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,25 +30,24 @@ getUniProt <- function(url='') {
#' @return A httr::response object containing the query results as `format`.
#'
#' @import httr
#' @importFrom CoreGx .errorMsg .warnMsg
# #' @export
queryUniProt <- function(query, columns='', limit='', offset='', format='xml',
include=TRUE, compress=TRUE, ...,
url='https://www.uniprot.org/uniprot') {
stop("Not implemented yet!")
if (missing(query)) stop(.errorMsg(.context(), 'The query parameter is
missing! This parameter is mandatory.'))
# queryUniProt <- function(query, columns='', limit='', offset='', format='xml',
# include=TRUE, compress=TRUE, ...,
# url='https://www.uniprot.org/uniprot') {
# stop("Not implemented yet!")
# if (missing(query)) stop(.errorMsg(.context(), 'The query parameter is
# missing! This parameter is mandatory.'))

##TODO:: handle more errors
# ##TODO:: handle more errors

# parse parameters
include <- if (include) 'yes' else 'no'
compress <- if (compress) 'yes' else 'no'
# # parse parameters
# include <- if (include) 'yes' else 'no'
# compress <- if (compress) 'yes' else 'no'

response <- GET()
}
# response <- GET()
# }

#'
# #'
#'
#'
#'
46 changes: 0 additions & 46 deletions man/queryUniProt.Rd

This file was deleted.

0 comments on commit b78b62a

Please sign in to comment.