Skip to content

Commit 61d1b68

Browse files
author
Aleksandr Popov
committed
CRAN fixes
1 parent c24e48f commit 61d1b68

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

NAMESPACE

-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,6 @@ importFrom(readr,read_tsv)
212212
importFrom(readr,write_lines)
213213
importFrom(readxl,read_xlsx)
214214
importFrom(reshape2,melt)
215-
importFrom(rlang,current_env)
216215
importFrom(rlang,sym)
217216
importFrom(rlist,list.remove)
218217
importFrom(scales,percent)

R/germline.R

+4-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
#'
1010
#' @aliases repGermline
1111
#'
12-
#' @importFrom rlang current_env
1312
#' @importFrom stringr str_sub str_length str_replace fixed
1413
#' @importFrom purrr imap
1514
#' @importFrom magrittr %>% %<>% extract2
@@ -56,8 +55,10 @@
5655
#' @export repGermline
5756
repGermline <- function(.data, species = "HomoSapiens", min_nuc_outside_cdr3 = 5, ref_only_first = TRUE) {
5857
# prepare reference sequences for all alleles
59-
data("genesegments", envir = rlang::current_env())
60-
reference <- GENE_SEGMENTS %>% filter(species == species)
58+
genesegments_env <- new.env()
59+
data("genesegments", envir = genesegments_env)
60+
reference <- genesegments_env$GENE_SEGMENTS %>% filter(species == species)
61+
rm(genesegments_env)
6162
reference <- reference[c("sequence", "allele_id")]
6263
if (ref_only_first) {
6364
reference <- reference[!duplicated(reference$allele_id), ]

vignettes/v2_data.Rmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ immdata <- repLoad(path)
9797
**Working with sample files**
9898

9999

100-
You could find a folder with example files [here](https://github.com/immunomind/immunarch/releases/download/0.6.7/test_data.zip) and use it to test data loading without your own files.
100+
You could find a folder with example files [here](https://github.com/immunomind/immunarch/releases/tag/0.6.7) (download and extract test_data.zip or test_data.tar.gz) and use it to test data loading without your own files.
101101

102102
If you are not familiar with file paths, you can download example data to your working directory.
103103
You can obtain you working directory with `getwd()` command

0 commit comments

Comments
 (0)