-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Documentation: create vignettes #184
base: main
Are you sure you want to change the base?
Conversation
b663d6f
to
33564da
Compare
33564da
to
2836bdc
Compare
Co-authored-by: Jana Spinner <[email protected]>
Co-authored-by: Jana Spinner <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the vignettes, they look amazing! Only thing I wanted to propose also solve #180 by:
- Suggestion: add in
Step 1: Data upload
the format requirements of the dataset expected (data.frame display / image...).
I think this can be a good idea based on the feedback I received yesterday on the pdf. Not sure what do you think is the best way to represent this. Either putting a link that directs the user to the sample dataset in a new window, embedding the dataset directly into this guide or using an image with the specifications. However I will provide all of them, feel free to modify!
Expected dataset format in R code
df <- tibble::tibble(
STUDYID = character(), # Character
USUBJID = character(), # Character/Numeric (Study ID + Subject ID format)
TRT01A = character(), # Character (Actual Treatment Group Identifier)
TRT01P = character(), # Character (Planned Treatment Group Identifier)
AGE = numeric(), # Numeric (Age of Subject)
RACE = character(), # Character (Race of Subject)
SEX = character(), # Character (Sex of Subject)
ANALYTE = character(), # Character (Analyte Name)
PCSPEC = character(), # Character (Specimen Material Type)
AVAL = numeric(), # Numeric (Analysis Value)
DOSNO = numeric(), # Numeric (Dose Number)
ROUTE = factor(levels = c("intravascular", "extravascular")), # Factor with specific levels
DOSEA = numeric(), # Numeric (Actual Treatment Dose)
ADOSEDUR = numeric(), # Numeric (Actual Duration of Treatment Dose)
AFRLT = numeric(), # Numeric (Actual Relative Time from Analyte First Dose)
ARRLT = numeric(), # Numeric (Actual Relative Time from Reference Dose)
NFRLT = numeric(), # Numeric (Nominal Relative Time from Analyte First Dose)
NRRLT = numeric(), # Numeric (Nominal Relative Time from Reference Dose)
AVALU = character(), # Character (Analysis Value Unit)
DOSEU = character(), # Character (Treatment Dose Unit)
RRLTU = character() # Character (Relative Time Unit)
)
Dataset example in R code
# Load necessary package
library(tibble)
# Create a dataframe with 8 rows
df <- tibble::tibble(
STUDYID = rep("S001", 8), # Character
USUBJID = rep(c("S001-001", "S001-002"), each = 4), # Character/Numeric
TRT01A = rep(c("A", "B"), each = 4), # Character
TRT01P = rep(c("C", "D"), each = 4), # Character
AGE = rep(c(35, 42), each = 4), # Numeric
RACE = rep(c("Asian", "Caucasian"), each = 4), # Character
SEX = rep(c("M", "F"), each = 4), # Character
ANALYTE = rep("DrugX", 8), # Character
PCSPEC = rep("Plasma", 8), # Character
AVAL = runif(8, 10, 20), # Numeric (random values between 10 and 20)
DOSNO = rep(1:2, times = 4), # Numeric (Dose Number)
ROUTE = rep(c("intravascular", "extravascular"), times = 4), # Character
DOSEA = rep(c(50, 100, 75, 150), times = 2), # Numeric (Different doses per subject)
ADOSEDUR = rep(c(24, 48), times = 4), # Numeric (Different durations)
AFRLT = runif(8, 0.1, 2.0), # Numeric (random times)
ARRLT = runif(8, 0.5, 2.5), # Numeric (random times)
NFRLT = runif(8, 0.1, 2.0), # Numeric (random times)
NRRLT = runif(8, 0.5, 2.5), # Numeric (random times)
AVALU = rep("ng/mL", 8), # Character
DOSEU = rep("mg", 8), # Character
RRLTU = rep("hours", 8) # Character
)
# Print the dataframe
print(df)
Image attached
4f94286
to
8485f94
Compare
@Gero1999 I have implemented the table with dataset requirements, let me know what you think! @Gotfrid, @js3110, @Shaakon35 Would love your thoughts on that one! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm thanks!
Issue
Closes #75, #180
Description
pkgdown
package.How to test
pkgdown::build_site_github_pages(dest_dir = "page")
in R console.page/
folder and openindex.html
file in your browser of choice - this should launch the preview of the page.Notes to reviewer
If there is anything you wish to be changed in the actual documentation (README or the starter guide) please let me know or feel free to push the changes yourself!