the \tests subdirectory in a R-package [Power / Sample Size]
Dear Detlew,
Just happen to be here. I find these are all ready-to-run scripts under .../tests folder. You may consider to put these .R scripts under
Except for the file '00Index' under
Taking 'RatioF_test.R' as an example (similar with others), it has only one line itself as follow:
After compliled and installed, then users can easily access the test files from R console.
Currently, users can go to
Just happen to be here. I find these are all ready-to-run scripts under .../tests folder. You may consider to put these .R scripts under
PowerTOST/R folder, and then create a /PowerTOST/demo folder with a file called '00Index' which should contain the following texts.
RatioF_test test for blabla...
parallel_test test for blabla...
...
Except for the file '00Index' under
/PowerTOST/demo, you will need the following files under /PowerTOST/demo depending on how many test files you have:
RatioF_test.R
parallel_test.R
...Taking 'RatioF_test.R' as an example (similar with others), it has only one line itself as follow:
test_RatioF()
After compliled and installed, then users can easily access the test files from R console.
library(PowerTOST)
demo(RatioF_test) ### will run test_RatioF.R
demo(parallel_test) ### will run test_parallel.R
...Currently, users can go to
R folder/library/PowerTOST/tests to open any .R script with an ASCII editor. Select all scripts and copy. And then paste under R console to run. In this case, the screen of R console may look messed because of mixing up the codes and outputs all together. Using demo(...) way will be much, much better. It won't show any R scripts or codes, but only outputs. Clean and beautiful.❝ [...]
❝ Seems I hadn't really understand what the purpose of the \tests subdirectory in a R-package is for and how it functions. Any R guru out there which don't let me die in blithe ignorance?
❝ [...]
—
All the best,
-- Yung-jin Lee
bear v2.9.6:- created by Hsin-ya Lee & Yung-jin Lee
Kaohsiung, Taiwan https://www.pkpd168.com/bear
Download link (updated) -> here
All the best,
-- Yung-jin Lee
bear v2.9.6:- created by Hsin-ya Lee & Yung-jin Lee
Kaohsiung, Taiwan https://www.pkpd168.com/bear
Download link (updated) -> here
Complete thread:
- Power for unbalanced cross-over d_labes 2011-01-14 15:21 [Power / Sample Size]
- Great post! Helmut 2011-01-14 16:16
- Santa is coming d_labes 2011-12-22 09:30
- PowerTOST Ben 2012-01-02 17:39
- BIBDs Helmut 2012-01-02 17:53
- Uuups d_labes 2012-01-17 11:49
- the \tests subdirectory in a R-packageyjlee168 2013-06-11 23:03
- To demo() or not d_labes 2013-06-14 13:28
- demo() is not demo yjlee168 2013-06-15 22:04
- To demo() or not d_labes 2013-06-14 13:28
- OT: issue of '\tests' subdir again yjlee168 2013-09-28 23:23
- the \tests subdirectory in a R-packageyjlee168 2013-06-11 23:03
- Uuups d_labes 2012-01-17 11:49
- PowerTOST robust d_labes 2012-01-17 11:53
- BIBDs Helmut 2012-01-02 17:53
- PowerTOST Ben 2012-01-02 17:39
- Santa is coming d_labes 2011-12-22 09:30
- Great post! Helmut 2011-01-14 16:16
