@@ -6,27 +6,34 @@ that this process is minimally disruptive to your users.
6
6
7
7
## What to Deprecate?
8
8
9
- Any function, class, method, or data that is no longer used or needed.
9
+ Any function, class, method, data, or even package that is no longer used or
10
+ needed.
10
11
11
12
## When to Follow These Guidelines?
12
13
13
- If you introduce a function into the devel branch of your package,
14
- then soon after decide not to use it, you may simply remove the function
15
- without following these guidelines. It is expected that the devel
16
- branch is unstable and subject to API changes without notice (though
17
- you may decide to communicate these changes to your users via the
14
+ >|--- Bioconductor development cycle ---------------|>
15
+ >|--- o feature introduced --- o feature removed ---|>
16
+
17
+ Note that if you decide against using a function that you had introduced
18
+ ** within the same development cycle** , you may simply remove the function
19
+ without following the standard function deprecation guidelines. It is expected
20
+ that the devel branch be unstable and be subject to API changes without notice
21
+ (though you may decide to communicate these changes to your users via the
18
22
Bioconductor [ support site] [ ] ).
19
23
20
- However, if a function has existed in at least one released version
24
+ >| Bioconductor RELEASE_X_Y | Bioconductor development cycle |>
25
+ >|-- o feature introduced --|----- o feature removed --------|>
26
+
27
+ However, if a function was published in at least one release version
21
28
of Bioconductor, these guidelines _ must_ be followed. The process of removing
22
- a function, class, method, or any exported package object takes approximately
23
- three release cycles (about 18 months).
29
+ a feature such as a function, class, method, or exported package object
30
+ takes approximately three release cycles (about 18 months).
24
31
25
32
## How To Deprecate A Function {#deprecate-function}
26
33
27
34
### Step 1: Deprecate the function
28
35
29
- When you first decide to eliminate a function, you should mark it as
36
+ When you first decide to deprecate a function, you should mark it as
30
37
deprecated in the devel branch. Do this by calling <code >.Deprecated()</code >
31
38
inside the function. To do this, you must provide a replacement function
32
39
which should be used in place of the old function. Example:
0 commit comments