Skip to content

Commit

Permalink
up to cran to fix check issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Shixiang Wang (王诗翔) committed May 13, 2024
1 parent bf3ca4c commit 6d11439
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 11 deletions.
6 changes: 3 additions & 3 deletions CRAN-SUBMISSION
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
Version: 2.0.0
Date: 2024-03-14 01:56:10 UTC
SHA: b02b4e2383ccfa920f0c7799ab92ab93176731bc
Version: 2.1.0
Date: 2024-05-13 12:01:17 UTC
SHA: bf3ca4cfce6fe45d44ca50ba5b624bbc448c6a13
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# UCSCXenaShiny 2.1.0

- Handled error raised due to internet issue in CRAN check.
- Optimized data preloading of Shiny application.
- Dockerfile updated.

Expand Down
26 changes: 18 additions & 8 deletions R/vis_dim_dist.R
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,24 @@ vis_dim_dist <- function(ids = c("TP53", "KRAS", "PTEN", "MDM2", "CDKN1A"),
stop("The number of valid ids is less than three. Please inspect the input ids and data_type(?query_pancan_value)")
}

exp_raw <- purrr::map(ids, function(x) {
# x = ids[1]
data <- query_pancan_value(x, data_type = data_type, opt_pancan=opt_pancan)
data <- data[[1]]
data <- dplyr::tibble(Sample = names(data), y = as.numeric(data))
colnames(data)[2] <- x
data
}) %>% purrr::reduce(dplyr::full_join, by = "Sample")
exp_raw <- tryCatch(
{
purrr::map(ids, function(x) {
# x = ids[1]
data <- query_pancan_value(x, data_type = data_type, opt_pancan=opt_pancan)
data <- data[[1]]
data <- dplyr::tibble(Sample = names(data), y = as.numeric(data))
colnames(data)[2] <- x
data
}) %>% purrr::reduce(dplyr::full_join, by = "Sample")
},
error = function(e) {
rlang::warn("access data failed, the message is provided below")
print(e$message)
NULL
}
)
if (is.null(exp_raw)) return(NULL)


# meta_raw = query_tcga_group(...)$data
Expand Down

0 comments on commit 6d11439

Please sign in to comment.