Skip to content
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

Improve consistency among message, warnings, and errors #28

Open
wants to merge 118 commits into
base: master
Choose a base branch
from

Conversation

DarwinAwardWinner
Copy link
Contributor

Now message() is uniformly used instead of cat(), warning() is used
for warnings instead of cat(), correct spacing is added between
arguments where appropriate, and error messages do not have trailing
newlines, since stop() already adds one.

m.carlson and others added 30 commits October 15, 2011 00:36
git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/sva@59266 bc3139a8-67e5-0310-9ffc-ced21a209358
…) added man files for ComBat

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/sva@59673 bc3139a8-67e5-0310-9ffc-ced21a209358
git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/sva@59716 bc3139a8-67e5-0310-9ffc-ced21a209358
git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/sva@59717 bc3139a8-67e5-0310-9ffc-ced21a209358
git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/sva@59920 bc3139a8-67e5-0310-9ffc-ced21a209358
git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/sva@59924 bc3139a8-67e5-0310-9ffc-ced21a209358
…n of setting num.sv method in sva. Fixed a bug in Combat so only an intercept term can be included

git-svn-id: https://hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/sva@60980 bc3139a8-67e5-0310-9ffc-ced21a209358
…n of setting num.sv method in sva. Fixed a bug in Combat so only an intercept term can be included

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/sva@60980 bc3139a8-67e5-0310-9ffc-ced21a209358
…o use method leek

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/sva@61130 bc3139a8-67e5-0310-9ffc-ced21a209358
…the list, updated fsva to include the new fast method as well as the original method

git-svn-id: https://hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/sva@63723 bc3139a8-67e5-0310-9ffc-ced21a209358
…the list, updated fsva to include the new fast method as well as the original method

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/sva@63723 bc3139a8-67e5-0310-9ffc-ced21a209358
git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/sva@64678 bc3139a8-67e5-0310-9ffc-ced21a209358
git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/sva@64680 bc3139a8-67e5-0310-9ffc-ced21a209358
…rom being built. removed bug in fsva where svs where being normalized incorrectly for the exact case.

git-svn-id: https://hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/sva@65411 bc3139a8-67e5-0310-9ffc-ced21a209358
…rom being built. removed bug in fsva where svs where being normalized incorrectly for the exact case.

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/sva@65411 bc3139a8-67e5-0310-9ffc-ced21a209358
git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/sva@69763 bc3139a8-67e5-0310-9ffc-ced21a209358
git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/sva@70050 bc3139a8-67e5-0310-9ffc-ced21a209358
git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/sva@70052 bc3139a8-67e5-0310-9ffc-ced21a209358
hpages@fhcrc.org and others added 18 commits April 24, 2017 19:25
git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/sva@129126 bc3139a8-67e5-0310-9ffc-ced21a209358
git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/sva@129129 bc3139a8-67e5-0310-9ffc-ced21a209358
From: Leonardo Collado Torres <lcollado@jhsph.edu>

git-svn-id: https://hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/sva@130117 bc3139a8-67e5-0310-9ffc-ced21a209358
From: Leonardo Collado Torres <lcollado@jhsph.edu>

git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/sva@130117 bc3139a8-67e5-0310-9ffc-ced21a209358
git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/sva@130118 bc3139a8-67e5-0310-9ffc-ced21a209358
git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/sva@130119 bc3139a8-67e5-0310-9ffc-ced21a209358
git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/sva@130304 bc3139a8-67e5-0310-9ffc-ced21a209358
git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/sva@130416 bc3139a8-67e5-0310-9ffc-ced21a209358
git-svn-id: file:///home/git/hedgehog.fhcrc.org/bioconductor/trunk/madman/Rpacks/sva@130528 bc3139a8-67e5-0310-9ffc-ced21a209358
@DarwinAwardWinner
Copy link
Contributor Author

Note that message and warning send the output to stderr, as opposed to cat, which sends to stdout, so this slightly more than a simple cosmetic code change.

kasperdanielhansen and others added 6 commits October 6, 2017 09:07
Changed two occurences of `cat()` to `message()` in ComBat so they can be suppressed. All the other printing in ComBat already uses `message()`.
Now message() is uniformly used instead of cat(), warning() is used
for warnings instead of cat(), correct spacing is added between
arguments where appropriate, and error messages do not have trailing
newlines, since stop() already adds one.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants