Subject: bug#55154: closed (Re: [bug#55154] [PATCH] gnu: Add r-afpt.)

From: [email-masked] (GNU bug Tracking System)
Date: Fri, 29 Apr 2022 16:22:03 +0000

Your bug report

#55154: [PATCH] gnu: Add r-afpt.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
55154: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=55154
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#55154] [PATCH] gnu: Add r-afpt.
From: Ricardo Wurmus <[email-masked]>
To: Navid Afkhami <[email-masked]>
Cc: [email-masked]
Date: Fri, 29 Apr 2022 18:13:37 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi Navid,

> From: Navid <[email-masked]>
>
> * gnu/packages/cran.scm (r-afpt): New variable.

Thank you, this is an excellent first contribution!

I applied it and pushed to the “master” branch with commit
325d53d5f634f6490e3291304fb5522400039224.

-- 
Ricardo

Subject: [PATCH] gnu: Add r-afpt.
From: Navid Afkhami <[email-masked]>
To: <[email-masked]>
Date: Wed, 27 Apr 2022 16:40:01 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

From: Navid <[email-masked]>

* gnu/packages/cran.scm (r-afpt): New variable.
---
 gnu/packages/cran.scm | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index bc95eee065..e7d3fc19e0 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -35,6 +35,7 @@
 ;;; Copyright © 2020 Aniket Patil <[email-masked]>
 ;;; Copyright © 2021 Marcel Schilling <[email-masked]>
 ;;; Copyright © 2021 Guillaume Le Vaillant <[email-masked]>
+;;; Copyright © 2022 Navid Afkhami  <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -112,6 +113,30 @@
   #:use-module (gnu packages xml)
   #:use-module (gnu packages xorg))
 
+(define-public r-afpt
+  (package
+    (name "r-afpt")
+    (version "1.1.0.1")
+    (source (origin
+              (method url-fetch)
+              (uri (cran-uri "afpt" version))
+              (sha256
+               (base32
+                "0cg5cdm9nl1hs6f3j0ljpw4bkqvh3ksyj615b9nnbqs5k28lyds9"))))
+    (properties `((upstream-name . "afpt")))
+    (build-system r-build-system)
+    (native-inputs (list r-knitr))
+    (home-page "https://github.com/MarcoKlH/afpt-r/")
+    (synopsis "Tools for modelling of animal flight performance")
+    (description
+     "This package allows estimation and modelling of flight costs in animal
+(vertebrate) flight, implementing the aerodynamic power model.  Flight
+performance is estimated based on basic morphological measurements such as body
+mass, wingspan and wing area.  @code{Afpt} can be used to make predictions on
+how animals should adjust their flight behaviour and wingbeat kinematics to
+varying flight conditions.")
+    (license license:gpl3+)))
+
 (define-public r-aod
   (package
     (name "r-aod")
-- 
2.25.1