-
Notifications
You must be signed in to change notification settings - Fork 8
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
Warnings from fixed_design_rd()
caused by mismatched column names
#296
Comments
I used Thus I think my proposed solution in #293 to set |
Keaven suggested that Yujie should weigh in, and using both h0 and h1 might be the best. So let's revisit this after the holidays. |
Hi @jdblischak , thanks for tracing back! Since gsDesign2 uses |
This issue is fixed in the PR of #303. Please take a look and review, thanks! |
I noticed the following two warnings
The two warnings are generated from a single call to
gs_design_rd()
that defines the argumentpower
:gsDesign2/tests/testthat/test-independent-fixed_design.R
Lines 130 to 133 in 50067c4
Interestingly, the subsequent call to
gs_design_rd()
that definesn
instead ofpower
does not generate the warnings:gsDesign2/tests/testthat/test-independent-fixed_design.R
Lines 135 to 138 in 50067c4
When
power
is defined,fixed_design_rd()
callsgs_design_rd()
:gsDesign2/R/fixed_design_rd.R
Lines 85 to 104 in 50067c4
gs_design_rd()
then callsgs_info_rd()
, and expects the returned table to contain the columnstheta
andinfo
:gsDesign2/R/gs_design_rd.R
Lines 206 to 212 in 50067c4
However, the result returned by
gs_info_rd()
does not contains these columns:gsDesign2/R/gs_info_rd.R
Line 288 in 50067c4
Surprisingly the tests continue to pass even though
theta1
andinfo1
are assignedNULL
. I thought that maybe the autocomplete feature of$
still returned the correct values, but it can't distinguish between egtheta1
andtheta0
The text was updated successfully, but these errors were encountered: