Comments (5)
thanks for the issue @mye
@aedobbyn do you have any knowledge in this area?
two things: 1) i'm not sure i know how to send output to stdout instead of stderr, and 2) even if there's a straight-forward way to do it, what is best practice for a) interactive, and b) non-interactive usage?
from cowsay.
Ooh hm I'm not sure off the bat. But I agree with you @mye that's probably annoying to get that message every time. If we changed
Line 135 in 0c8dad1
if (crayon::has_color() == FALSE && (!is.null(what_color) || !is.null(by_color)))
I think we at least solve that issue
from cowsay.
Okay so according to the first answer here, message
prints to stderr by default where as print
and cat
got to stdout.
So we could add a new type
called "print"
and put something in such that when interactive()
is false, default to the "print"
type.
from cowsay.
Why does it have to be stderr in interactive mode? (Maybe something about R I'm not aware of, but I don't see the point in putting the expected output on stderr).
from cowsay.
So we could add a new type called "print" and put something in such that when interactive() is false, default to the "print" type.
sounds good @aedobbyn
@mye i don't know, that's just the way R is. i think we'd want to maintain idiomatic R here, while using @aedobbyn suggestion for non-interactive mode
from cowsay.
Related Issues (20)
- why is animals object not exported? HOT 5
- Weird RJSONIO-jsonlite error upon import HOT 4
- jsonlite to suggests
- Grammatically wrong, the Yoda example text is
- retrojunkie.com is offline HOT 1
- Distinct project name, like "Rcowsay"? HOT 1
- parrot?
- 'catfact' error HOT 3
- add worstcat
- Contributing: add guidelines for whats in/out of scope HOT 2
- No message when colors are NULL? HOT 6
- Remove speech bubble from ascii HOT 17
- Standardize the spacing above animals' speech bubbles? HOT 4
- vignette build warning on cran HOT 3
- [feature request] appimage HOT 6
- Fix file request from CRAN
- Simplifying color argument HOT 4
- multicolor not on cran HOT 3
- Add multicolor back if it gets back up on CRAN HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cowsay.