You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+7
Original file line number
Diff line number
Diff line change
@@ -83,6 +83,13 @@ Most importantly:
83
83
84
84
**Step 7:** Have fun :)
85
85
86
+
## Tips and Tricks
87
+
88
+
* You can use the [link](https://cran.r-project.org/web//packages//link/index.html) package to create dynamic links for a function to its package down website in a blog post. For example,
89
+
instead of doing function_name with markdown syntax for url linking, i.e [link](https://cran.r-project.org/web//packages//link/index.html), you can just do `admiral::derive_vars_dy()`
90
+
and it will create the link in your blog post. See the raw code in this post [admiral 1.0.0](https://pharmaverse.github.io/blog/posts/2023-12-18_admiral_1_0/admiral_1_0.html) to see
91
+
it in action.
92
+
86
93
## How to Use the `blog` Docker Image for Local Development
87
94
88
95
Contributors can benefit from using the [`blog` Docker image](https://github.com/pharmaverse/blog/pkgs/container/blog) when creating their blog posts.
<!--------------- post begins here ----------------->
@@ -29,7 +31,7 @@ This blog post will discuss our commitment to stability, walk you through the ne
29
31
30
32
# Commitment to Stability
31
33
32
-
`{admiral}` was born out of a conversation between Thomas Neitmann and Michael Rimler almost three years ago. Check out this [history blog post](https://pharmaverse.github.io/blog/posts/2023-10-10_pharmaverse_story/pharmaverse_story.html) for some of additional context on its development. Over the last three years, we have worked at a furious pace to produce functions that can do almost all derivations needed for common ADaMs. However, we have noticed that some functions are very similar to others and with some minor tweaks could be made redundant in favor of other functions. This has lead to some deprecation of either whole functions or arguments as we have sought to consolidate. Unfortunately, this creates a lot of frustration for users.
34
+
{admiral} was born out of a conversation between Thomas Neitmann and Michael Rimler almost three years ago. Check out this [history blog post](https://pharmaverse.github.io/blog/posts/2023-10-10_pharmaverse_story/pharmaverse_story.html) for some of additional context on its development. Over the last three years, we have worked at a furious pace to produce functions that can do almost all derivations needed for common ADaMs. However, we have noticed that some functions are very similar to others and with some minor tweaks could be made redundant in favor of other functions. This has lead to some deprecation of either whole functions or arguments as we have sought to consolidate. Unfortunately, this creates a lot of frustration for users.
33
35
34
36
Enter Superseded!!
35
37
@@ -40,18 +42,18 @@ Now with the release of `1.0.0` we are going to _supersede_ functions going forw
40
42
41
43
We have 3 new functions available in this release:
and a new option in [derive_var_atoxgr_dir()](https://pharmaverse.github.io/admiral/reference/derive_var_atoxgr_dir.html) and [derive_var_anrind()](https://pharmaverse.github.io/admiral/reference/derive_var_anrind.html) to handle floating point issues.
49
+
and a new option in admiral::derive_var_atoxgr_dir() and admiral::derive_var_anrind() to handle floating point issues.
48
50
49
51
## `derive_vars_extreme_event()`
50
52
51
-
This function takes available records from user-defined events by selecting the extreme observations and appending them as a variable(s) to your dataset. [derive_vars_extreme_event()](https://pharmaverse.github.io/admiral/reference/derive_vars_extreme_event.html) works similar to [`derive_extreme_event()`](https://pharmaverse.github.io/admiral/reference/derive_extreme_event.html), but instead of adding observations the function will add variable(s).
53
+
This function takes available records from user-defined events by selecting the extreme observations and appending them as a variable(s) to your dataset. admiral::derive_vars_extreme_event() works similar to admiral::derive_extreme_event(), but instead of adding observations the function will add variable(s).
52
54
53
55
Let's take a peek with a very simple example where we just use ADSL! The documentation for
54
-
[derive_vars_extreme_event()](https://pharmaverse.github.io/admiral/reference/derive_vars_extreme_event.html) has a much richer example with events from other domains that is more aligned to where you would use this function.
56
+
admiral::derive_vars_extreme_event() has a much richer example with events from other domains that is more aligned to where you would use this function.
55
57
56
58
Let us make some dummy `ADSL` data and load up our packages. The goal here is to add two new variables `LSTALVDT` and `DTHFL` based on a list of objects that are used to specify the following:
57
59
@@ -107,7 +109,7 @@ out the more detailed example in the [function documentation](https://pharmavers
107
109
108
110
## `derive_var_merged_ef_msrc()`
109
111
110
-
This function has some similarity to [derive_vars_extreme_event()](https://pharmaverse.github.io/admiral/reference/derive_vars_extreme_event.html), but now we are only looking at adding a single flag variable based on checking conditions across multiple datasets.
112
+
This function has some similarity to admiral::derive_vars_extreme_event(), but now we are only looking at adding a single flag variable based on checking conditions across multiple datasets.
111
113
112
114
We develop some _simple_ dummy data for `ADSL`, `CM` and `PR`. Our goal is to flag patients who have `CMCAT = "ANTI-CANCER"` in the `CM` dataset or have records in the `PR` dataset. Any participants who meet these conditions will have our new variable `CANCTRFL` set as `"Y"`.
113
115
@@ -160,7 +162,7 @@ Let's go! We searched over multiple datasets, `CM` and `PR`, with multiple condi
160
162
161
163
## `derive_vars_computed()`
162
164
163
-
This function is very similar to [derive_param_computed()](https://pharmaverse.github.io/admiral/reference/derive_param_computed.html), but instead of adding observations we are going to add variable(s). Very handy when wanting to add some additional variables to `ADSL`, e.g. baseline variables.
165
+
This function is very similar to admiral::derive_param_computed(), but instead of adding observations we are going to add variable(s). Very handy when wanting to add some additional variables to `ADSL`, e.g. baseline variables.
164
166
165
167
Let's make some dummy data for an `ADSL` and `ADVS`. Our goal is to derive a `BMIBL` variable pulled from `ADVS` and append to `ADSL`.
166
168
@@ -211,7 +213,7 @@ Alright! Simple enough. We just took records from `ADVS`to help us calculate the
211
213
212
214
A huge push was made for `1.0.0` to help align our arguments across all of `{admiral}` functions. What does this mean? We identified arguments in functions where the argument did the same things but was slightly named differently. For `1.0.0`, we really want users to have a solid API for `{admiral}` functions.
213
215
214
-
Let's take a peak at the function [`consolidate_metadata()`](https://pharmaverse.github.io/admiral/reference/consolidate_metadata.html) to even better understand our goal here.
216
+
Let's take a peak at the function admiral::consolidate_metadata() to even better understand our goal here.
215
217
216
218
```
217
219
consolidate_metadata(
@@ -224,7 +226,7 @@ consolidate_metadata(
224
226
)
225
227
```
226
228
227
-
In previous versions of `{admiral}` the `consolidate_metadata()` function had the argument `check_keys`, which helps to check uniqueness. Other functions had a similar argument, but were called `check_unique`. Therefore, to better align our common API for `{admiral}` functions we decided to rename the `check_keys` argument to `check_unique`. You can follow the discussion around this renaming effort in this [GitHub Issue](https://github.com/pharmaverse/admiral/issues/2184).
229
+
In previous versions of {admiral} the admiral::consolidate_metadata() function had the argument `check_keys`, which helps to check uniqueness. Other functions had a similar argument, but were called `check_unique`. Therefore, to better align our common API for {admiral} functions we decided to rename the `check_keys` argument to `check_unique`. You can follow the discussion around this renaming effort in this [GitHub Issue](https://github.com/pharmaverse/admiral/issues/2184).
0 commit comments