Skip to content

Commit

Permalink
fix: add dontrun{} to examples to satistfy CRAN NOTE
Browse files Browse the repository at this point in the history
  • Loading branch information
ainefairbrother committed May 19, 2023
1 parent 6c3d71c commit 55eb415
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ ensemblQueryR.Rproj
.rprof.log
rprof.log
CRAN-SUBMISSION
cran-commends.md
1 change: 1 addition & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Imports:
rlang,
tibble,
tidyr,
utils,
vroom,
xml2
Suggests:
Expand Down
3 changes: 2 additions & 1 deletion R/ensemblQueryLDregionEndpoint.R
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ ensemblQueryLDwithSNPregion = function(chr, start, end, pop="1000GENOMES:phase_3
#' @export
#'
#' @examples
#' \dontrun{
#' library(magrittr)
#'
#' data.frame(
Expand All @@ -148,7 +149,7 @@ ensemblQueryLDwithSNPregion = function(chr, start, end, pop="1000GENOMES:phase_3
#' pop="1000GENOMES:phase_3:EUR",
#' cores = 1
#' )
#'
#'}
ensemblQueryLDwithSNPregionDataframe = function(in.table, pop="1000GENOMES:phase_3:EUR", cores=1){

# # Test
Expand Down
3 changes: 2 additions & 1 deletion R/ensemblQueryLDwindowEndpoint.R
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ ensemblQueryLDwithSNPwindow = function(rsid, pop="1000GENOMES:phase_3:EUR", r2=N
#' @export
#'
#' @examples
#' \dontrun{
#' in.table = data.frame(rsid = rep(c("rs7153434","rs1963154","rs12672022",
#' "rs3852802","rs12324408","rs56346870"), 5))
#'
Expand All @@ -144,7 +145,7 @@ ensemblQueryLDwithSNPwindow = function(rsid, pop="1000GENOMES:phase_3:EUR", r2=N
#' d.prime=0.8,
#' window.size=500,
#' cores=1)
#'
#'}
ensemblQueryLDwithSNPwindowDataframe = function(in.table, pop="1000GENOMES:phase_3:EUR", r2=NA, d.prime=NA, window.size=NA, cores=1){

#------------------------------ test -------------------------------
Expand Down
6 changes: 6 additions & 0 deletions R/globals.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
library(utils)

utils::globalVariables(c("variation1", "variation2", "query1",
"query2", "r2", "d_prime", "population_name",
".", "query_chr", "query_start", "query_end",
"rsid1", "rsid2", "snp_in_ld", "query"))

0 comments on commit 55eb415

Please sign in to comment.