|
| 1 | +# The semTable package |
| 2 | + |
| 3 | +These functions were in kutils until December, 2017. |
| 4 | + |
| 5 | +Because the semTable function was a very large undertaking, and |
| 6 | +it is valuable separate from the other pieces in kutils, we decided |
| 7 | +to make this a free-standing package. |
| 8 | + |
| 9 | +If you might want to contribute to the package, the Gitlab repository |
| 10 | +can be cloned with: |
| 11 | + |
| 12 | +git clone [email protected]:software/semTable.git |
| 13 | + |
| 14 | +Release versions of the package will be uploaded in CRAN. |
| 15 | + |
| 16 | +However, because the CRAN administrators do not want frequent updates |
| 17 | +in packages, we will continue to use KRAN as the server for rapid |
| 18 | +developments in semTable. |
| 19 | + |
| 20 | +To download the package from KRAN, we suggest this R program: |
| 21 | + |
| 22 | + |
| 23 | +```bash |
| 24 | +CRAN <- "http://rweb.crmda.ku.edu/cran" |
| 25 | +KRAN <- "http://rweb.crmda.ku.edu/kran" |
| 26 | +BIOC <- "http://www.bioconductor.org/packages/3.3/bioc" |
| 27 | + |
| 28 | +options(repos = c(KRAN, CRAN, BIOC)) |
| 29 | +install.packages("semTable", dep = TRUE) |
| 30 | +``` |
| 31 | + |
| 32 | +If you are on Macintosh or Windows, it may be necessary to |
| 33 | +insert 'type = "source"', as in : |
| 34 | + |
| 35 | +```bash |
| 36 | +install.packages("semTable", dep = TRUE, type = "source") |
| 37 | +``` |
| 38 | + |
| 39 | +this will tell the package manager that there is no |
| 40 | +"compiled code" in the package and so a pre-built binary is |
| 41 | +not required. |
| 42 | + |
| 43 | + |
| 44 | +## To Clone The Repository and Participate |
| 45 | + |
| 46 | +git clone [email protected]:software/semTable.git |
| 47 | + |
| 48 | +cd semTable |
| 49 | + |
| 50 | + |
| 51 | +The work is in the package directory. There is a build |
| 52 | +script that works for me in Ubuntu Linux |
| 53 | + |
| 54 | +Here are some rules. |
| 55 | + |
| 56 | +1. Line length should be less than 80, and this is |
| 57 | +absolutely required in sections for documentation. |
| 58 | + |
| 59 | +2. Use correct Roxygen markup. |
| 60 | +We don't have an idiot's guide for this yet, so please |
| 61 | +consult Websites. These have been helpful: |
| 62 | + |
| 63 | +[http://r-pkgs.had.co.nz/man.html#text-formatting][] |
| 64 | + |
| 65 | +3. examples sections should be included with functions, these |
| 66 | +should run. Can be IN code right before function or as |
| 67 | +separate files saved under inst/examples. See rockchalk |
| 68 | +for examples like that. |
| 69 | + |
| 70 | +# Here is a rant |
| 71 | + |
| 72 | +The usual problem is that code revisions or changes in Roxygen2 markup |
| 73 | +are not technically correct, so that the package build fails. Before |
| 74 | +proposing patches (merge requests), we ask contributors to run a |
| 75 | +test build to make sure their changes do not break the package. |
| 76 | + |
| 77 | +We **insist** the user *run the script buildPackage.sh* to completion |
| 78 | +before pushing changes back to repository. |
| 79 | + |
| 80 | +Here is an example of a successuful run: |
| 81 | + |
| 82 | +```bash |
| 83 | +pauljohn@delllap-16:package$ ./buildPackage.sh |
| 84 | + |
| 85 | +R version 3.4.3 (2017-11-30) -- "Kite-Eating Tree" |
| 86 | +Copyright (C) 2017 The R Foundation for Statistical Computing |
| 87 | +Platform: x86_64-pc-linux-gnu (64-bit) |
| 88 | + |
| 89 | +R is free software and comes with ABSOLUTELY NO WARRANTY. |
| 90 | +You are welcome to redistribute it under certain conditions. |
| 91 | +Type 'license()' or 'licence()' for distribution details. |
| 92 | + |
| 93 | + Natural language support but running in an English locale |
| 94 | + |
| 95 | +R is a collaborative project with many contributors. |
| 96 | +Type 'contributors()' for more information and |
| 97 | +'citation()' on how to cite R or R packages in publications. |
| 98 | + |
| 99 | +Type 'demo()' for some demos, 'help()' for on-line help, or |
| 100 | +'help.start()' for an HTML browser interface to help. |
| 101 | +Type 'q()' to quit R. |
| 102 | + |
| 103 | +> options(repos = c("http://rweb.crmda.ku.edu/kran", "http://rweb.crmda.ku.edu/cran")) |
| 104 | +> library(roxygen2) |
| 105 | +> roxygenize("semTable") |
| 106 | +Loading required package: foreign |
| 107 | +Loading required package: kutils |
| 108 | +Loading required package: xtable |
| 109 | +Loading required package: lavaan |
| 110 | +This is lavaan 0.5-23.1097 |
| 111 | +lavaan is BETA software! Please report any bugs. |
| 112 | +Loading required package: plyr |
| 113 | +> roxygenize("semTable.gitex") |
| 114 | +Writing NAMESPACE |
| 115 | +Writing detectNested.Rd |
| 116 | +Writing compareCFA.Rd |
| 117 | +Writing semTable.Rd |
| 118 | +Writing markupConvert.Rd |
| 119 | +Writing testtable.Rd |
| 120 | +Writing dts.Rd |
| 121 | +Writing dms.Rd |
| 122 | +Writing deduper.Rd |
| 123 | +Writing starsig.Rd |
| 124 | +Writing removeMatches.Rd |
| 125 | +Writing modifyVector.Rd |
| 126 | +Writing mgsub.Rd |
| 127 | +Writing shorten.Rd |
| 128 | +Writing stringbreak.Rd |
| 129 | +Writing padW0.Rd |
| 130 | +Writing writeCSV.Rd |
| 131 | +Writing getFiles.Rd |
| 132 | +> |
| 133 | +> |
| 134 | +* checking for file ‘semTable.gitex/DESCRIPTION’ ... OK |
| 135 | +* preparing ‘semTable’: |
| 136 | +* checking DESCRIPTION meta-information ... OK |
| 137 | +* checking for LF line-endings in source and make files and shell scripts |
| 138 | +* checking for empty or unneeded directories |
| 139 | +* building ‘semTable_1.0.tar.gz’ |
| 140 | +Warning: invalid uid value replaced by that for user 'nobody' |
| 141 | +Warning: invalid gid value replaced by that for user 'nobody' |
| 142 | + |
| 143 | +Run check: OK? (y or n)y |
| 144 | +* using log directory ‘/home/pauljohn/GIT/CRMDA/software/semTable/package/semTable.Rcheck’ |
| 145 | +* using R version 3.4.3 (2017-11-30) |
| 146 | +* using platform: x86_64-pc-linux-gnu (64-bit) |
| 147 | +* using session charset: UTF-8 |
| 148 | +* using option ‘--as-cran’ |
| 149 | +* checking for file ‘semTable/DESCRIPTION’ ... OK |
| 150 | +* checking extension type ... Package |
| 151 | +* this is package ‘semTable’ version ‘1.0’ |
| 152 | +* checking CRAN incoming feasibility ... NOTE |
| 153 | +Maintainer: ‘Paul Johnson <[email protected]>’ |
| 154 | + |
| 155 | +New submission |
| 156 | +* checking package namespace information ... OK |
| 157 | +* checking package dependencies ... OK |
| 158 | +* checking if this is a source package ... OK |
| 159 | +* checking if there is a namespace ... OK |
| 160 | +* checking for executable files ... OK |
| 161 | +* checking for hidden files and directories ... OK |
| 162 | +* checking for portable file names ... OK |
| 163 | +* checking for sufficient/correct file permissions ... OK |
| 164 | +* checking whether package ‘semTable’ can be installed ... OK |
| 165 | +* checking installed package size ... OK |
| 166 | +* checking package directory ... OK |
| 167 | +* checking DESCRIPTION meta-information ... OK |
| 168 | +* checking top-level files ... OK |
| 169 | +* checking for left-over files ... OK |
| 170 | +* checking index information ... OK |
| 171 | +* checking package subdirectories ... OK |
| 172 | +* checking R files for non-ASCII characters ... OK |
| 173 | +* checking R files for syntax errors ... OK |
| 174 | +* checking whether the package can be loaded ... OK |
| 175 | +* checking whether the package can be loaded with stated dependencies ... OK |
| 176 | +* checking whether the package can be unloaded cleanly ... OK |
| 177 | +* checking whether the namespace can be loaded with stated dependencies ... OK |
| 178 | +* checking whether the namespace can be unloaded cleanly ... OK |
| 179 | +* checking loading without being on the library search path ... OK |
| 180 | +* checking use of S3 registration ... OK |
| 181 | +* checking dependencies in R code ... OK |
| 182 | +* checking S3 generic/method consistency ... OK |
| 183 | +* checking replacement functions ... OK |
| 184 | +* checking foreign function calls ... OK |
| 185 | +* checking R code for possible problems ... OK |
| 186 | +* checking Rd files ... OK |
| 187 | +* checking Rd metadata ... OK |
| 188 | +* checking Rd line widths ... OK |
| 189 | +* checking Rd cross-references ... OK |
| 190 | +* checking for missing documentation entries ... OK |
| 191 | +* checking for code/documentation mismatches ... OK |
| 192 | +* checking Rd \usage sections ... OK |
| 193 | +* checking Rd contents ... OK |
| 194 | +* checking for unstated dependencies in examples ... OK |
| 195 | +* checking examples ... OK |
| 196 | +** found \donttest examples: check also with --run-donttest |
| 197 | +* checking PDF version of manual ... OK |
| 198 | +* DONE |
| 199 | + |
| 200 | +Status: 1 NOTE |
| 201 | +See |
| 202 | + ‘/home/pauljohn/GIT/CRMDA/software/semTable/package/semTable.Rcheck/00check.log’ |
| 203 | +for details. |
| 204 | + |
| 205 | + |
| 206 | +Install: OK? (y or n) |
| 207 | +``` |
0 commit comments