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

make a silk purse out of a sow's ear #223

Closed
yihui opened this issue May 7, 2012 · 5 comments
Closed

make a silk purse out of a sow's ear #223

yihui opened this issue May 7, 2012 · 5 comments
Labels
feature Feature requests
Milestone

Comments

@yihui
Copy link
Owner

yihui commented May 7, 2012

https://github.com/richfitz/sowsear

users can start with a pure R script which looks like stitch() but the sow's ear is more flexible

@tbates
Copy link

tbates commented May 31, 2012

That's a great idea! means that the user can work in R mostly as they do now, hiding text in comments, but then switch to markdown with a knit(thisFile, sows_ear=T)

Bit like Roxygen, without the weird #' meta comment :-)

@yihui yihui closed this as completed in 20d6911 Jun 5, 2012
@yihui
Copy link
Owner Author

yihui commented Jun 5, 2012

I think #' is a good choice for writing normal texts, so I just used it. See https://github.com/yihui/knitr/blob/master/inst/examples/knitr-silk.R for example

@richfitz
Copy link

richfitz commented Jun 5, 2012

Can I suggest at least parsing ## as a equivalent? ESS makes the distinction between # and ## comments, and a largish number of users will find that default difficult to use.

@yihui
Copy link
Owner Author

yihui commented Jun 5, 2012

#' is much more unambiguous than ##; users are likely to write ## when they mean ordinary comments instead of literate content

both Javadoc and Doxygen uses special comments like /** */ or /*! */ to denote documentation, and the idea is to avoid ambiguity with ordinary comments

#' is not difficult to use with ESS at all -- it is automatically added to the next line, and the roxygen comments can be rearranged by M-q (ESS uses ##', though, and you can also use double-hash here); other editors like RStudio also supports roxygen comments

one, two and three # only apply to alignment of comments in ESS; I actually dislike the ESS convention that # is centered

@github-actions
Copy link

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature Feature requests
Projects
None yet
Development

No branches or pull requests

3 participants