all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ricardo Wurmus <rekado@elephly.net>
To: Sahithi Yarlagadda <sahi@swecha.net>
Cc: 30894@debbugs.gnu.org
Subject: [bug#30894] Submission of patch for Add r-abc
Date: Wed, 21 Mar 2018 22:27:49 +0100	[thread overview]
Message-ID: <87tvt9azl6.fsf@elephly.net> (raw)
In-Reply-To: <071fa29f-107d-2097-586c-ce2f1eb91c23@swecha.net>


Hi Sahithi,

> I am submitting a patch for r-abc. Please review.

Thank you for the patch!

What follows is a short review that includes things I could change
myself before applying the patch, but for the sake of learning I
explicitly point out in this message.  I hope you don’t mind that I’m
focusing on what may seem like minor details.

> From 4b3b3eee4995616059d8a27489affc43cee26ea4 Mon Sep 17 00:00:00 2001
> From: Sahithi Yarlagadda <sahi@swecha.net>
> Date: Wed, 21 Mar 2018 16:30:18 +0530
> Subject: [PATCH] gnu: Add r-abc.
>
>     * gnu/packages/cran.scm (r-abc): New variable.

Nitpick: please don’t indent this line.  The asterisk should be the
first character in this line.

> +
> +(define-public r-abc
> +  (package
> +    (name "r-abc")
> +    (version "2.1")
> +    (source
> +      (origin
> +        (method url-fetch)
> +        (uri (cran-uri "abc" version))
> +        (sha256
> +          (base32
> +            "0ngzaaz2y2s03fhngvwipmy4kq38xrmyddaz6a6l858rxvadrlhb"))))
> +    (build-system r-build-system)
> +    (propagated-inputs
> +      `(("r-abc-data" ,r-abc-data)
> +        ("r-locfit" ,r-locfit)
> +        ("r-mass" ,r-mass)
> +        ("r-nnet" ,r-nnet)
> +        ("r-quantreg" ,r-quantreg)))
> +    (home-page
> +      "http://cran.r-project.org/web/packages/abc")

Please pull this onto the previous line and use “https”.

> +    (synopsis
> +      "Tools for approximate bayesian computation (ABC)")

Please combine this line with the previous line.

> +    (description
> +      "Implements several ABC algorithms for performing parameter estimation,
> +model selection, and goodness-of-fit.  Cross-validation tools are also
> +available for measuring the accuracy of ABC estimates, and to calculate the
> +misclassification probabilities of different models.")

Please use full sentences.  For CRAN packages the official description
usually provides only a sentence fragment in place of the first
sentence.  Please also use “@dfn{Approximate Bayesian Computation}
(ABC)” the first time “ABC” is mentioned.

All thoughout the indentation is a bit off (that’s expected as the
importer is very simple and doesn’t know about the expected
indentation).  If you’re using Emacs you can easily adjust it with M-C-q
(also known as “indent-sexp”); otherwise please use
“etc/indent-code.el”.

Have you built this package with Guix?

Finally, please rebase this patch so that it can be applied
independently from the other patch you’ve sent, which cannot currently
be applied due to problems in building the defined package.  Rebasing
this patch ensures that it can be merged even if the other patch is
stuck.

Thanks!

--
Ricardo

GPG: BCA6 89B6 3655 3801 C3C6  2150 197A 5888 235F ACAC
https://elephly.net

  reply	other threads:[~2018-03-21 21:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-21 11:14 [bug#30894] Submission of patch for Add r-abc Sahithi Yarlagadda
2018-03-21 21:27 ` Ricardo Wurmus [this message]
2018-03-28 19:44   ` Ricardo Wurmus
2018-03-29 10:15     ` Sahithi Yarlagadda
2018-03-29 10:32       ` Ricardo Wurmus
2018-03-29 10:50         ` Sahithi Yarlagadda
2018-03-29 11:00           ` Sahithi Yarlagadda
2018-03-29 11:28             ` Sahithi Yarlagadda
2018-04-02 21:26               ` bug#30894: " Ricardo Wurmus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87tvt9azl6.fsf@elephly.net \
    --to=rekado@elephly.net \
    --cc=30894@debbugs.gnu.org \
    --cc=sahi@swecha.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.