Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 2 additions & 16 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
^gsDesign2\.Rproj$
^docs$
^Meta$
^doc$
.travis.yml
^.*\.yml$
^cran-comments\.md$
^revdep$
^CRAN-RELEASE$
..Rcheck
^\.github$
^.*\.Rproj$
^\.Rproj\.user$
^_pkgdown\.yml$
^\.gitattributes$
^docs$
^pkgdown$
^LICENSE$
^LICENSES_THIRD_PARTY$
^codecov\.yml$

^\.github$
1 change: 0 additions & 1 deletion .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ jobs:
- {os: windows-latest, r: 'release'}
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'release'}
- {os: ubuntu-latest, r: 'oldrel-1'}

env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
Expand Down
31 changes: 10 additions & 21 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
release:
types: [published]
workflow_dispatch:
Expand All @@ -14,33 +12,24 @@ name: pkgdown
jobs:
pkgdown:
runs-on: ubuntu-latest
# Only restrict concurrency for non-PR jobs
concurrency:
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2

- uses: r-lib/actions/setup-pandoc@v2
- uses: r-lib/actions/setup-pandoc@v1

- uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-r@v1
with:
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
- uses: r-lib/actions/setup-r-dependencies@v1
with:
extra-packages: any::pkgdown, local::.
extra-packages: pkgdown
needs: website

- name: Build site
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
shell: Rscript {0}

- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/github-pages-deploy-action@4.1.4
with:
clean: false
branch: gh-pages
folder: docs
- name: Deploy package
run: |
git config --local user.name "$GITHUB_ACTOR"
git config --local user.email "$GITHUB_ACTOR@users.noreply.github.com"
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)'
2 changes: 1 addition & 1 deletion .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ jobs:

- name: Test coverage
run: covr::codecov(quiet = FALSE)
shell: Rscript {0}
shell: Rscript {0}
20 changes: 11 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
^.*\.Rproj$
^\.Rproj\.user$
^_pkgdown\.yml$
^pkgdown$
^docs$
^data-raw$
^LICENSE\.md$
^LICENSES_THIRD_PARTY$
^codecov\.yml$
^tests/testthat/_snaps$
^\.github$
.Rproj.user
doc
docs
Meta
inst/doc
.Rprofile
.Rhistory
.RData
.Ruserdata
sync_bitbucket.R
65 changes: 37 additions & 28 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,47 +1,56 @@
Package: gsDesign2
Type: Package
Title: Group Sequential Design Under Non-Proportional Hazards
Title: Group sequential design with non-constant effect
Version: 0.2.0
Authors@R: c(
person("Keaven", "Anderson", email = "keaven_anderson@merck.com", role = c("aut")),
person("Yilong", "Zhang", email = "yilong.zhang@merck.com", role = c("aut", "cre")),
person("Yilong", "Zhang", email = "elong0527@gmail.com", role = c("aut")),
person("Yujie", "Zhao", email = "yujie.zhao@merck.com", role = c("aut", "cre")),
person("Jianxiao", "Yang", email = "yangjx@ucla.edu", role = c("ctb")),
person("Nan", "Xiao", email = "nan.xiao1@merck.com", role = c("ctb")),
person("Amin", "Shirazi", email = "ashirazist@gmail.com", role = c("ctb")),
person("Ruixue", "Wang", email = "ruixue.wang@merck.com", role = c("ctb")),
person("Yi", "Cui", email = "yi.cui@merck.com", role = c("ctb")),
person("Ping", "Yang", email = "ping.yang1@merck.com", role = c("ctb")),
person("Xin Tong", "Li", email = "xin.tong.li@merck.com", role = c("ctb")),
person("Yalin", "Zhu", email = "yalin.zhu@merck.com", role = c("ctb")),
person("Nan", "Xiao", email = "nan.xiao1@merck.com", role = c("ctb")),
person("Merck & Co., Inc., Rahway, NJ, USA and its affiliates", role = "cph")
person("Merck Sharp & Dohme Corp", role = "cph")
)
Maintainer: Yilong Zhang <yilong.zhang@merck.com>
Description: Compute sample size under non-proportional hazards.
Depends: R (>= 3.5.0)
Description: Basic group sequential design computations extended.
License: GPL-3
URL: https://merck.github.io/gsDesign2/, https://github.com/Merck/gsDesign2
BugReports: https://github.com/Merck/gsDesign2/issues
URL: https://github.com/LittleBeannie/gsDesign2,
https://littlebeannie.github.io/gsDesign2/
BugReports: https://github.com/LittleBeannie/gsDesign2/issues
Encoding: UTF-8
VignetteBuilder: knitr
Imports:
gsDesign,
dplyr,
tibble,
dplyr (>= 0.8.3)
npsurvSS,
survival,
corpcor,
utils,
mvtnorm,
Rcpp,
methods
Suggests:
gsDesign (>= 3.0),
ggplot2 (>= 3.2.0),
stats,
knitr (>= 1.23),
rmarkdown (>= 1.13),
kableExtra,
survival (>= 2.41-3),
mvtnorm (>= 1.0-11),
testthat,
knitr,
rmarkdown,
purrr,
devtools,
kableExtra,
gt,
ggplot2,
tidyr,
covr,
bench,
microbenchmark,
simtrial,
markdown,
covr
Encoding: UTF-8
LazyData: true
kableExtra
Remotes:
Merck/simtrial
Roxygen: list(markdown = TRUE)
Rmarkdown: echo = TRUE
RoxygenNote: 7.2.1
VignetteBuilder: knitr
Config/testthat/edition: 3
Remotes:
Merck/simtrial
LinkingTo:
Rcpp
14 changes: 7 additions & 7 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007

Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.

Expand Down Expand Up @@ -631,8 +631,8 @@ to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

gsDesign2: Group Sequential Design Under Non-Proportional Hazards
Copyright (c) 2022 Merck & Co., Inc., Rahway, NJ, USA and its affiliates. All rights reserved.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand All @@ -645,14 +645,14 @@ the "copyright" line and a pointer to where the full notice is found.
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
along with this program. If not, see <https://www.gnu.org/licenses/>.

Also add information on how to contact you by electronic and paper mail.

If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:

gsDesign2 Copyright (c) 2022 Merck & Co., Inc., Rahway, NJ, USA and its affiliates. All rights reserved.
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
Expand All @@ -664,11 +664,11 @@ might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<http://www.gnu.org/licenses/>.
<https://www.gnu.org/licenses/>.

The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
<https://www.gnu.org/licenses/why-not-lgpl.html>.
11 changes: 5 additions & 6 deletions LICENSES_THIRD_PARTY
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ You must agree to the terms of these licenses, in addition to the gsDesign2
source code license, in order to use this software.

--------------------------------------------------
Third party R packages listed by License type
Third party R packages listed by License type
[Format: Name - URL]
--------------------------------------------------

MIT / X11 License (or adaptations) (https://www.opensource.org/licenses/MIT)
* tibble - https://tibble.tidyverse.org/LICENSE.html
* dplyr - https://dplyr.tidyverse.org/LICENSE.html


MIT / X11 License (or adaptations) (https://www.opensource.org/licenses/MIT)
* tibble - https://tibble.tidyverse.org/LICENSE.html
* dplyr - https://dplyr.tidyverse.org/LICENSE.html
41 changes: 41 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
@@ -1,11 +1,42 @@
# Generated by roxygen2: do not edit by hand

S3method(as_gt,fixed_design)
S3method(as_gt,gs_design)
S3method(summary,fixed_design)
S3method(summary,gs_design)
export(AHR)
export(ahr_blinded)
export(as_gt)
export(eAccrual)
export(eEvents_df)
export(fixed_design)
export(gs_b)
export(gs_design_ahr)
export(gs_design_combo)
export(gs_design_npe)
export(gs_design_rd)
export(gs_design_wlr)
export(gs_info_ahr)
export(gs_info_combo)
export(gs_info_rd)
export(gs_info_wlr)
export(gs_power_ahr)
export(gs_power_combo)
export(gs_power_npe)
export(gs_power_rd)
export(gs_power_wlr)
export(gs_spending_bound)
export(gs_spending_combo)
export(pmvnorm_combo)
export(ppwe)
export(s2pwe)
export(summary)
export(tEvents)
export(wlr_weight_1)
export(wlr_weight_fh)
export(wlr_weight_n)
import(Rcpp)
import(tibble)
importFrom(dplyr,"%>%")
importFrom(dplyr,arrange)
importFrom(dplyr,desc)
Expand All @@ -16,11 +47,21 @@ importFrom(dplyr,group_by)
importFrom(dplyr,lag)
importFrom(dplyr,last)
importFrom(dplyr,lead)
importFrom(dplyr,left_join)
importFrom(dplyr,mutate)
importFrom(dplyr,right_join)
importFrom(dplyr,select)
importFrom(dplyr,summarize)
importFrom(dplyr,transmute)
importFrom(dplyr,ungroup)
importFrom(gsDesign,gsDesign)
importFrom(gsDesign,sfLDOF)
importFrom(mvtnorm,GenzBretz)
importFrom(stats,dnorm)
importFrom(stats,pnorm)
importFrom(stats,qnorm)
importFrom(stats,stepfun)
importFrom(stats,uniroot)
importFrom(survival,Surv)
importFrom(tibble,tibble)
useDynLib(gsDesign2, .registration = TRUE)
Loading