Re: [ESS] why a release from time to time would be nice

2023-10-12 Thread Tyler Smith via ESS-help
Hi Stephen,

yasnippet allows you to insert modifiable yaml templates. You can define 
'fields' that you want to modify, along with straight text that will be 
inserted verbatim. 

In my case, I enter the string 'yaml', hit the tab key, and the template is 
inserted. The cursor starts in the title field ($1), and I tab through category 
($2), excerpt ($3), tags ($4, $5), slug ($6), and finally ends in the body of 
the document ($0). 

I keep it simple, but you can use default values for fields, or define a list 
of options to pick from. In my case, I just enter the values by hand. You can 
also call elisp functions to enter computed values. I use the function 
`tws-today` to enter today's date.

The definition for this, stored in a file, is pasted below.

You can use options in the template to switch between different headers, or you 
could define different templates. For example, you could define a yamlblog 
template, a yamlmanuscript template, etc, with the defaults set to your various 
outputs.

There's a tutorial here: 
  https://github.com/joaotavora/yasnippet/blob/master/README.mdown 

and a short video here: 
  https://youtu.be/W-bRZlseNm0?si=wM-mq-HkO2wgS0or

But making a 'quick start' post specifically for ESS users would be a good 
idea. I will add it to my list, but the list is growing faster than I'm making 
posts lately!

- ty

```
# -*- mode: snippet; require-final-newline: nil -*-
# name: yamlpost
# key: yaml
# expand-env: ((yas-indent-line 'fixed))
# binding: direct-keybinding
# --
---
layout: post
title: "$1"
categories: 
  - $2
excerpt: "$3"
date: `(tws-today)`
tags:
  - $4
  - $5
slug: $6
bibliography: ../../plantarum.bib
csl: ../../american-journal-of-botany.csl
link-citations: true
---

\`\`\`{R init, echo = FALSE}
library(utils) 
library(graphics)
library(grDevices)
library(stats)
\`\`\`

$0

```
-- 
plantarum.ca

On Thu, Oct 12, 2023, at 10:35 AM, Stephen Bond wrote:
> Tyler,
>
> Happy you are lending a hand. I alternate between notebook and plain
> htmil output. this is my typical:
>
> ---
> title: "Title"
> author: "Author"
> date: "2023-10-08"
> output:
>   # html_document:
>   #   df_print: kable
>   #   mathjax: C:/emacs/MathJax.js
>   html_notebook:
> df_print: kable
> mathjax: C:/emacs/MathJax.js
> editor_options:
>   chunk_output_type: inline
> ---
>
> I am not familiar with yasnippet. Maybe that is the missing piece.
> Cheers
> Stephen
>
> On Tue, 2023-10-10 at 09:32 -0400, Tyler Smith wrote:
>> Hi Stephen,
>> 
>> Like Manuel, I also do my Rmd editing in Emacs, with ESS and polymode
>> to handle most things, and a yasnippet to insert my YAML section.
>> This covers my needs, but I'm not a very sophisticated user of YAML. 
>> 
>> What support would you like to see? Perhaps there are features you
>> aren't aware of, or if not, we might be able to come up with some
>> workable solutions. Whether or not that's an ESS issue, an polymode
>> issue, or a markdown-mode issue, remains to be seen.
>> 
>> Best,
>> 
>> Tyler
>> 
>> > On Fri, Oct 6, 2023, 10:13 Stephen Bond via ESS-help
>> > 
>> > wrote:
>> > 
>> > > Currently there is zero support for the meta/yaml section at the
>> > > beginning, which makes it inconvenient to the point I am using
>> > > Rstudio
>> > > to output my Rmd files.
>> > > 
>> 
>> On Fri, Oct 6, 2023, at 8:16 AM, Manuel Teodoro via ESS-help wrote:
>> > 
>> > I am not part of ESS team but I'm wondering what kind of problems
>> > you have
>> > with Rmd files, maybe we can give you some advices.
>> > 
>> > I do all my Rmd and Qmd files in Emacs without any problem.

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


Re: [ESS] why a release from time to time would be nice

2023-10-12 Thread Stephen Bond via ESS-help
Tyler,

Happy you are lending a hand. I alternate between notebook and plain
htmil output. this is my typical:

---
title: "Title"
author: "Author"
date: "2023-10-08"
output:
  # html_document:
  #   df_print: kable
  #   mathjax: C:/emacs/MathJax.js
  html_notebook:
df_print: kable
mathjax: C:/emacs/MathJax.js
editor_options:
  chunk_output_type: inline
---

I am not familiar with yasnippet. Maybe that is the missing piece.
Cheers
Stephen

On Tue, 2023-10-10 at 09:32 -0400, Tyler Smith wrote:
> Hi Stephen,
> 
> Like Manuel, I also do my Rmd editing in Emacs, with ESS and polymode
> to handle most things, and a yasnippet to insert my YAML section.
> This covers my needs, but I'm not a very sophisticated user of YAML. 
> 
> What support would you like to see? Perhaps there are features you
> aren't aware of, or if not, we might be able to come up with some
> workable solutions. Whether or not that's an ESS issue, an polymode
> issue, or a markdown-mode issue, remains to be seen.
> 
> Best,
> 
> Tyler
> 
> > On Fri, Oct 6, 2023, 10:13 Stephen Bond via ESS-help
> > 
> > wrote:
> > 
> > > Currently there is zero support for the meta/yaml section at the
> > > beginning, which makes it inconvenient to the point I am using
> > > Rstudio
> > > to output my Rmd files.
> > > 
> 
> On Fri, Oct 6, 2023, at 8:16 AM, Manuel Teodoro via ESS-help wrote:
> > 
> > I am not part of ESS team but I'm wondering what kind of problems
> > you have
> > with Rmd files, maybe we can give you some advices.
> > 
> > I do all my Rmd and Qmd files in Emacs without any problem. 

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


Re: [ESS] why a release from time to time would be nice

2023-10-10 Thread Tyler Smith via ESS-help
Hi Stephen,

Like Manuel, I also do my Rmd editing in Emacs, with ESS and polymode to handle 
most things, and a yasnippet to insert my YAML section. This covers my needs, 
but I'm not a very sophisticated user of YAML. 

What support would you like to see? Perhaps there are features you aren't aware 
of, or if not, we might be able to come up with some workable solutions. 
Whether or not that's an ESS issue, an polymode issue, or a markdown-mode 
issue, remains to be seen.

Best,

Tyler

> On Fri, Oct 6, 2023, 10:13 Stephen Bond via ESS-help 
> wrote:
>
>> Currently there is zero support for the meta/yaml section at the
>> beginning, which makes it inconvenient to the point I am using Rstudio
>> to output my Rmd files.
>>

On Fri, Oct 6, 2023, at 8:16 AM, Manuel Teodoro via ESS-help wrote:
>
> I am not part of ESS team but I'm wondering what kind of problems you have
> with Rmd files, maybe we can give you some advices.
>
> I do all my Rmd and Qmd files in Emacs without any problem.

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


Re: [ESS] why a release from time to time would be nice

2023-10-06 Thread Manuel Teodoro via ESS-help
Hi Stephen,

I am not part of ESS team but I'm wondering what kind of problems you have
with Rmd files, maybe we can give you some advices.

I do all my Rmd and Qmd files in Emacs without any problem. In my
experience it works very well, even better than org-mode babel for R. For
the yaml part I use different snippets via yasnippet. And if you are still
missing something I am sure there should be tools for Emacs other than ESS
that can help you.

I'll be glad to help you or share an advice.

Manuel Teodoro

On Fri, Oct 6, 2023, 10:13 Stephen Bond via ESS-help 
wrote:

> Hello,
>
> I would like to request better support of Rmd, but that is not ESS
> really. I apologize if this is considered too much off topic.
> Do you know who can improve rmarkdown?
> Currently there is zero support for the meta/yaml section at the
> beginning, which makes it inconvenient to the point I am using Rstudio
> to output my Rmd files.
>
> Regards
> Stephen
>
> On Tue, 2023-10-03 at 17:28 +, Sparapani, Rodney via ESS-help
> wrote:
> > Hi Gang:
> >
> > Resurrecting this old thread from 09/2021
> >
> > For the last few years, the lack of an ESS release has been decried.
> > And, deservedly so.  Now, Im happy to report that we intend to
> > create a new release roughly by XMAS.  The reason that I am
> > telling all of you this: we are very interested in hearing what
> > issues that you are experiencing.  As you all know, Emacs has
> > evolved rapidly recently from v26 to 29: a more rapid release
> > schedule than we have been used to.  Speaking for myself,
> > there have been Emacs changes that have impacted ESS
> > features that I use frequently.  So, Im assuming that others
> > have seen the same and, potentially, have nice workarounds.
> > If you check github, then you will see that we have not really
> > started.  But, hopefully, that should change over the next month.
> > Thanks
> >
> > --
> > Rodney Sparapani, Associate Professor of Biostatistics, He/Him/His
> > Vice President, Wisconsin Chapter of the American Statistical
> > Association
> > Institute for Health and Equity, Division of Biostatistics
> > Medical College of Wisconsin, Milwaukee Campus
> >
> > [[alternative HTML version deleted]]
> >
> > __
> > ESS-help@r-project.org mailing list
> > https://stat.ethz.ch/mailman/listinfo/ess-help
>
> __
> ESS-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
>

[[alternative HTML version deleted]]

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


Re: [ESS] why a release from time to time would be nice

2023-10-06 Thread Stephen Bond via ESS-help
Hello,

I would like to request better support of Rmd, but that is not ESS
really. I apologize if this is considered too much off topic. 
Do you know who can improve rmarkdown?
Currently there is zero support for the meta/yaml section at the
beginning, which makes it inconvenient to the point I am using Rstudio
to output my Rmd files.

Regards
Stephen

On Tue, 2023-10-03 at 17:28 +, Sparapani, Rodney via ESS-help
wrote:
> Hi Gang:
> 
> Resurrecting this old thread from 09/2021
> 
> For the last few years, the lack of an ESS release has been decried.
> And, deservedly so.  Now, Im happy to report that we intend to
> create a new release roughly by XMAS.  The reason that I am
> telling all of you this: we are very interested in hearing what
> issues that you are experiencing.  As you all know, Emacs has
> evolved rapidly recently from v26 to 29: a more rapid release
> schedule than we have been used to.  Speaking for myself,
> there have been Emacs changes that have impacted ESS
> features that I use frequently.  So, Im assuming that others
> have seen the same and, potentially, have nice workarounds.
> If you check github, then you will see that we have not really
> started.  But, hopefully, that should change over the next month.
> Thanks
> 
> --
> Rodney Sparapani, Associate Professor of Biostatistics, He/Him/His
> Vice President, Wisconsin Chapter of the American Statistical
> Association
> Institute for Health and Equity, Division of Biostatistics
> Medical College of Wisconsin, Milwaukee Campus
> 
> [[alternative HTML version deleted]]
> 
> __
> ESS-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


Re: [ESS] why a release from time to time would be nice

2023-10-03 Thread Sparapani, Rodney via ESS-help
Hi Gang:

Resurrecting this old thread from 09/2021�

For the last few years, the lack of an ESS release has been decried.
And, deservedly so.  Now, I�m happy to report that we intend to
create a new release roughly by XMAS.  The reason that I am
telling all of you this: we are very interested in hearing what
issues that you are experiencing.  As you all know, Emacs has
evolved rapidly recently from v26 to 29: a more rapid release
schedule than we have been used to.  Speaking for myself,
there have been Emacs changes that have impacted ESS
features that I use frequently.  So, I�m assuming that others
have seen the same and, potentially, have nice workarounds.
If you check github, then you will see that we have not really
started.  But, hopefully, that should change over the next month.
Thanks

--
Rodney Sparapani, Associate Professor of Biostatistics, He/Him/His
Vice President, Wisconsin Chapter of the American Statistical Association
Institute for Health and Equity, Division of Biostatistics
Medical College of Wisconsin, Milwaukee Campus

[[alternative HTML version deleted]]

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


Re: [ESS] why a release from time to time would be nice

2021-09-29 Thread Sparapani, Rodney via ESS-help
Hi Toby:

Perhaps it depends on whether they are undergrad or grad students.
If you are a grad student, then the university owns your copyright
(and faculty/staff too for that matter ;o)  But, for undergrads, I don’t
know what the rules are.

--
Rodney Sparapani, Associate Professor of Biostatistics
Chair ISBA Section on Biostatistics and Pharmaceutical Statistics
Institute for Health and Equity, Division of Biostatistics
Medical College of Wisconsin, Milwaukee Campus


[[alternative HTML version deleted]]

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


Re: [ESS] why a release from time to time would be nice

2021-09-28 Thread Toby Hocking via ESS-help
Hi Rodney,
Just a point of clarification, it is completely OK for R-GSOC students to
write non-R code, and that happens every year (most common other languages
are probably FORTRAN/C/C++ and JavaScript but ESS/elisp should be fine
too). See non-R languages column in last year's coding projects table,
https://github.com/rstats-gsoc/gsoc2021/wiki/table%20of%20proposed%20coding%20projects
Also for the vast majority of other GSOC projects (all of them in my
experience) there is no problem with copyright. I'm not a copyright expert,
but maybe that is because the students are not being paid by their
universities to participate in GSOC? (google pays them a stipend, with the
purpose of encouraging them to contribute to free/open source software).
Toby

On Tue, Sep 28, 2021 at 8:38 AM Sparapani, Rodney via ESS-help <
ess-help@r-project.org> wrote:

> Hi Toby:
>
> Well that is very generous.  But ESS is not written in R.
> So I don’t think this would work.  Also getting another
> person to file FSF paper work can be painful.  For
> example, the student’s employer is likely a university
> who would own their code.  Typically you have to
> get them to give your copyright back which is not
> always easily accomplished.  Thanks
>
> --
> Rodney Sparapani, Associate Professor of Biostatistics
> Chair ISBA Section on Biostatistics and Pharmaceutical Statistics
> Institute for Health and Equity, Division of Biostatistics
> Medical College of Wisconsin, Milwaukee Campus
>
>
> [[alternative HTML version deleted]]
>
> __
> ESS-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
>

[[alternative HTML version deleted]]

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


Re: [ESS] why a release from time to time would be nice

2021-09-28 Thread Sparapani, Rodney via ESS-help
Hi Toby:

Well that is very generous.  But ESS is not written in R.
So I don’t think this would work.  Also getting another
person to file FSF paper work can be painful.  For
example, the student’s employer is likely a university
who would own their code.  Typically you have to
get them to give your copyright back which is not
always easily accomplished.  Thanks

--
Rodney Sparapani, Associate Professor of Biostatistics
Chair ISBA Section on Biostatistics and Pharmaceutical Statistics
Institute for Health and Equity, Division of Biostatistics
Medical College of Wisconsin, Milwaukee Campus


[[alternative HTML version deleted]]

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


Re: [ESS] why a release from time to time would be nice

2021-09-27 Thread Toby Hocking via ESS-help
Hi ESS devs,
Have you thought of trying to recruit a Google Summer of Code (GSOC)
student to work on ESS?
Each year R has 20+ students in GSOC who each work on 10 week coding
projects (June-Aug).
To recruit a student please write a project proposal and add it to the
R-GSOC wiki,
https://github.com/rstats-gsoc/gsoc2022/wiki/table%20of%20proposed%20coding%20projects
Student applications are typically in April so it would be a good idea to
get your project idea on the wiki by early 2022 (Jan-Feb at the latest), to
give you enough time for you to find an interested and qualified student.
You can email me if you have any questions about how GSOC works, and I
could even co-mentor the project if that would help (although I would
mostly be able to mentor the student from the perspective of an ESS user...
I don't have much elisp coding experience)
Toby

On Wed, Sep 22, 2021 at 11:42 PM Detlef Steuer via ESS-help <
ess-help@r-project.org> wrote:

> Am Wed, 22 Sep 2021 19:53:15 +0200
> schrieb ess-help-requ...@r-project.org:
>
> > Message: 2
> > Date: Wed, 22 Sep 2021 07:26:59 -0500
> > From: Dirk Eddelbuettel 
> > To: "Sparapani, Rodney" 
> > Cc: "ess-help@r-project.org" 
> > Subject: Re: [ESS] Advice on setting up ESS to edit and knit Rmarkdown
> >   files
> > Message-ID: <24907.8467.529784.900...@rob.eddelbuettel.com>
> > Content-Type: text/plain; charset="us-ascii"
> >
> >
> > On 20 September 2021 at 13:59, Sparapani, Rodney via ESS-help wrote:
> > | Generally, this stuff should just work out-of-the-box.
> >
> > Understood.
> >
> > | And we are not a company like RStudio so this FOSS setup works for
> > us as | developers and hopefully it still serves the users well.
> >
> > But legal structure has nothing to with 'calling a release'. Which is
> > done by authors (who should know the code better than users) saying
> > "yep what we have at HEAD right now is good" and then cut a tarball.
> > That is a _marker_. Which some less-informed people like me can take
> > (and then ship downstream to Debian, and with that Ubuntu etc).
> >
> > Without a marker, no shipment. Less ideal to me and others.
>
> This! As Dirk says: No release, no packages in distros.
>
> I would happily update ess in openSUSE, but as a user it is very hard
> (impossible?) to find out what the status of ess is. As was commented
> in another message even the internal release numbers are not consistent.
>
> Looking forward to a 21.11 release :-)
>
> And thx for all your work!
>
> Detlef
>
>
>
>
> >
> > So pretty-please if someone would: could a release one of these
> > moons. It does not have to be frequent or regularly schedule or
> > anything.  But maybe more often than once every few years?  Maybe
> > when you sync with upstream Emacs (assuming you do now)?
> >
> > Dirk
> >
>
> __
> ESS-help@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
>

[[alternative HTML version deleted]]

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help