Browse code

Use S4Vectors:::normarg_names() instead of S4Vectors:::normalize_names_replacement_value()

Hervé Pagès authored on 12/06/2019 15:24:37
Showing 2 changed files

... ...
@@ -1,5 +1,5 @@
1 1
 Package: bsseq
2
-Version: 1.21.0
2
+Version: 1.21.1
3 3
 Encoding: UTF-8
4 4
 Title: Analyze, manage and store bisulfite sequencing data
5 5
 Description: A collection of tools for analyzing and visualizing bisulfite
... ...
@@ -23,7 +23,7 @@ Imports:
23 23
     locfit,
24 24
     gtools,
25 25
     data.table (>= 1.11.8),
26
-    S4Vectors,
26
+    S4Vectors (>= 0.23.11),
27 27
     R.utils (>= 2.0.0),
28 28
     DelayedMatrixStats (>= 1.5.2),
29 29
     permute,
... ...
@@ -118,7 +118,7 @@ setReplaceMethod(
118 118
 )
119 119
 
120 120
 set_FWIRanges_names <- function(x, value) {
121
-    x@NAMES <- S4Vectors:::normalize_names_replacement_value(value, x)
121
+    x@NAMES <- S4Vectors:::normarg_names(value, class(x), length(x))
122 122
     # NOTE: No need to validate an FWIRanges object after setting its names so
123 123
     #       this should be safe.
124 124
     x