all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#33214] Patch file for weight package
@ 2018-10-31  4:38 Lakshmi Prasannakumar
  2018-10-31  9:29 ` [bug#33214] Patch Tracker no. 33214 Lakshmi Prasannakumar
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Lakshmi Prasannakumar @ 2018-10-31  4:38 UTC (permalink / raw)
  To: 33214


[-- Attachment #1.1: Type: text/plain, Size: 130 bytes --]

Hi,

Please find the attached patch file for adding weight package from cran
repository.

Thanks,
Lakshmi Prasannakumar
Bangalore

[-- Attachment #1.2: Type: text/html, Size: 907 bytes --]

[-- Attachment #2: 0001-Adding-the-package-weights-for-using-weighted-statis.patch --]
[-- Type: text/x-patch, Size: 1801 bytes --]

From fc22007a28621824b5aa06deb7c64823f1b0fcc9 Mon Sep 17 00:00:00 2001
From: lakshmi <lakshmiprasannakumaran@gmail.com>
Date: Wed, 31 Oct 2018 09:57:31 +0530
Subject: [PATCH] Adding the package weights for using weighted statistics
 functions

---
 gnu/packages/cran.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 7f2123b..fc95aaa 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -6693,3 +6693,27 @@ component analysis and correlation matrices, cluster analyses, scatter plots,
 stacked scales, effects plots of regression models (including interaction
 terms) and much more.  This package supports labelled data.")
     (license license:gpl3)))
+
+(define-public r-weights
+(package
+  (name "r-weights")
+  (version "1.0")
+  (source
+    (origin
+      (method url-fetch)
+      (uri (cran-uri "weights" version))
+      (sha256
+        (base32
+          "0186bfpkhxngrshac6bpg37alp6slwhwd43inrm8hqg0vhpfgc4c"))))
+  (build-system r-build-system)
+  (propagated-inputs
+    `(("r-gdata" ,r-gdata)
+      ("r-hmisc" ,r-hmisc)
+      ("r-mice" ,r-mice)))
+  (home-page
+    "http://cran.r-project.org/web/packages/weights")
+  (synopsis "Weighting and weighted statistics")
+  (description
+    "This package provides a variety of functions for producing simple weighted statistics, such as weighted Pearson's correlations, partial correlations, Chi-Squared statistics, histograms, and t-tests. It also includes some softwares used for quickly recoding survey data and plotting point estimates from interaction terms in regressions which can be then multiplied with imputed regressions. Weighted partial correlation calculations are pulled to address a bug.")
+  (license gpl2+)))
+
-- 
2.9.3


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [bug#33214] Patch Tracker no. 33214
  2018-10-31  4:38 [bug#33214] Patch file for weight package Lakshmi Prasannakumar
@ 2018-10-31  9:29 ` Lakshmi Prasannakumar
  2018-10-31 10:18   ` Gábor Boskovits
  2018-11-01  9:16 ` [bug#33214] Modifying the commit message to gnu-Add-r-weights Lakshmi Prasannakumar
  2018-11-06 15:23 ` bug#33214: gnu: Add r-weights Gábor Boskovits
  2 siblings, 1 reply; 6+ messages in thread
From: Lakshmi Prasannakumar @ 2018-10-31  9:29 UTC (permalink / raw)
  To: 33214; +Cc: Gábor Boskovits

[-- Attachment #1: Type: text/plain, Size: 428 bytes --]

Hi Gábor,

I'm sending an email with the tracker no. cc-ing both of you. This is the
number I received from the bug tracker. Below is the link from the bug
tracker.
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=33214

Do let me know if I need to commit again and create a patch file, as this
was the first time I committed, I'm not completely sure if it was right or
not.

Thanks,
Lakshmi Prasannakumar
Bangalore

[-- Attachment #2: Type: text/html, Size: 1852 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [bug#33214] Patch Tracker no. 33214
  2018-10-31  9:29 ` [bug#33214] Patch Tracker no. 33214 Lakshmi Prasannakumar
@ 2018-10-31 10:18   ` Gábor Boskovits
       [not found]     ` <CA+H0LRPY33C_fH662j88Sg4TxiLL9xWC5XZqF-i5N97FRcgCNg@mail.gmail.com>
  0 siblings, 1 reply; 6+ messages in thread
From: Gábor Boskovits @ 2018-10-31 10:18 UTC (permalink / raw)
  To: Lakshmi Prasannakumar; +Cc: 33214

Hello Laksmi,

Lakshmi Prasannakumar <lakshmiprasannakumaran@gmail.com> ezt írta
(időpont: 2018. okt. 31., Sze, 10:30):
>
> Hi Gábor,
>
> I'm sending an email with the tracker no. cc-ing both of you. This is the number I received from the bug tracker. Below is the link from the bug tracker.
> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=33214
>

Thanks for the tracker id. I did not find it because I was looking in
a slightly wrong way (I was looking for r-weight) :)

In guix, there is a convention on the commit messages, you can see it
in git log, it is also
documented in the coding conventions.

In this case it should look something like this:

gnu: Add r-weight.

* gnu/packages/cran.scm (r-weight): New variable.

You can modify the commit message using git commit --amend, then
create a new patch and send that.

I will test this package, and report back later.



> Do let me know if I need to commit again and create a patch file, as this was the first time I committed, I'm not completely sure if it was right or not.
>
> Thanks,
> Lakshmi Prasannakumar
> Bangalore

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Patch Tracker no. 33214
       [not found]       ` <CA+H0LRPpfcEM4yR=tHT=3V5Z0e7WRdhYawz83yQ+dQipWhjTFw@mail.gmail.com>
@ 2018-10-31 17:37         ` Lakshmi Prasannakumar
  0 siblings, 0 replies; 6+ messages in thread
From: Lakshmi Prasannakumar @ 2018-10-31 17:37 UTC (permalink / raw)
  To: Gábor Boskovits; +Cc: guix-devel

[-- Attachment #1: Type: text/plain, Size: 2176 bytes --]

+ Björn and dev group.

Thanks,
Lakshmi Prasannakumar
Bangalore


On Wed, Oct 31, 2018 at 11:04 PM Lakshmi Prasannakumar <
lakshmiprasannakumaran@gmail.com> wrote:

> Hi Gábor,
>
> I have sent the new file. Waiting for the tracker id. Meanwhile I would
> like to get clarification on few of the steps on verifying our package
> definitions.
> The doc mentions about running
> guix lint package and
> guix build package
>
> But both of these commands returns no  unknown package when I run them for
> 'weights'. Is it because I need to complete any other steps apart from
> modifying cran.scm file ?
>
> Lakshmi Prasannakumar
> Bangalore
>
>
> On Wed, Oct 31, 2018 at 3:51 PM Lakshmi Prasannakumar <
> lakshmiprasannakumaran@gmail.com> wrote:
>
>> Sure , I'll do that.
>>
>> On Wed 31 Oct, 2018, 3:49 PM Gábor Boskovits, <boskovits@gmail.com>
>> wrote:
>>
>>> Hello Laksmi,
>>>
>>> Lakshmi Prasannakumar <lakshmiprasannakumaran@gmail.com> ezt írta
>>> (időpont: 2018. okt. 31., Sze, 10:30):
>>> >
>>> > Hi Gábor,
>>> >
>>> > I'm sending an email with the tracker no. cc-ing both of you. This is
>>> the number I received from the bug tracker. Below is the link from the bug
>>> tracker.
>>> > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=33214
>>> >
>>>
>>> Thanks for the tracker id. I did not find it because I was looking in
>>> a slightly wrong way (I was looking for r-weight) :)
>>>
>>> In guix, there is a convention on the commit messages, you can see it
>>> in git log, it is also
>>> documented in the coding conventions.
>>>
>>> In this case it should look something like this:
>>>
>>> gnu: Add r-weight.
>>>
>>> * gnu/packages/cran.scm (r-weight): New variable.
>>>
>>> You can modify the commit message using git commit --amend, then
>>> create a new patch and send that.
>>>
>>> I will test this package, and report back later.
>>>
>>>
>>>
>>> > Do let me know if I need to commit again and create a patch file, as
>>> this was the first time I committed, I'm not completely sure if it was
>>> right or not.
>>> >
>>> > Thanks,
>>> > Lakshmi Prasannakumar
>>> > Bangalore
>>>
>>

[-- Attachment #2: Type: text/html, Size: 5188 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [bug#33214] Modifying the commit message to gnu-Add-r-weights
  2018-10-31  4:38 [bug#33214] Patch file for weight package Lakshmi Prasannakumar
  2018-10-31  9:29 ` [bug#33214] Patch Tracker no. 33214 Lakshmi Prasannakumar
@ 2018-11-01  9:16 ` Lakshmi Prasannakumar
  2018-11-06 15:23 ` bug#33214: gnu: Add r-weights Gábor Boskovits
  2 siblings, 0 replies; 6+ messages in thread
From: Lakshmi Prasannakumar @ 2018-11-01  9:16 UTC (permalink / raw)
  To: 33214


[-- Attachment #1.1: Type: text/plain, Size: 185 bytes --]

Hi,
Please find the attached patch file with this mail.
The changes made are to the cran.scm
* gnu/packages/cran.scm (r-weights): New variable.

Thanks,
Lakshmi Prasannakumar
Bangalore

[-- Attachment #1.2: Type: text/html, Size: 1222 bytes --]

[-- Attachment #2: 0001-gnu-Add-r-weights.patch --]
[-- Type: text/x-patch, Size: 1802 bytes --]

From 74abc72a7e22a03714d1ead77768536e651d54f3 Mon Sep 17 00:00:00 2001
From: lakshmi <lakshmiprasannakumaran@gmail.com>
Date: Wed, 31 Oct 2018 09:57:31 +0530
Subject: [PATCH] gnu: Add r-weights gnu/packages/cran.scm (r-weights): New
 variable.

---
 gnu/packages/cran.scm | 24 ++++++++++++++++++++++++
 1 file changed, 24 insertions(+)

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 7f2123b..fc95aaa 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -6693,3 +6693,27 @@ component analysis and correlation matrices, cluster analyses, scatter plots,
 stacked scales, effects plots of regression models (including interaction
 terms) and much more.  This package supports labelled data.")
     (license license:gpl3)))
+
+(define-public r-weights
+(package
+  (name "r-weights")
+  (version "1.0")
+  (source
+    (origin
+      (method url-fetch)
+      (uri (cran-uri "weights" version))
+      (sha256
+        (base32
+          "0186bfpkhxngrshac6bpg37alp6slwhwd43inrm8hqg0vhpfgc4c"))))
+  (build-system r-build-system)
+  (propagated-inputs
+    `(("r-gdata" ,r-gdata)
+      ("r-hmisc" ,r-hmisc)
+      ("r-mice" ,r-mice)))
+  (home-page
+    "http://cran.r-project.org/web/packages/weights")
+  (synopsis "Weighting and weighted statistics")
+  (description
+    "This package provides a variety of functions for producing simple weighted statistics, such as weighted Pearson's correlations, partial correlations, Chi-Squared statistics, histograms, and t-tests. It also includes some softwares used for quickly recoding survey data and plotting point estimates from interaction terms in regressions which can be then multiplied with imputed regressions. Weighted partial correlation calculations are pulled to address a bug.")
+  (license gpl2+)))
+
-- 
2.9.3


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* bug#33214: gnu: Add r-weights.
  2018-10-31  4:38 [bug#33214] Patch file for weight package Lakshmi Prasannakumar
  2018-10-31  9:29 ` [bug#33214] Patch Tracker no. 33214 Lakshmi Prasannakumar
  2018-11-01  9:16 ` [bug#33214] Modifying the commit message to gnu-Add-r-weights Lakshmi Prasannakumar
@ 2018-11-06 15:23 ` Gábor Boskovits
  2 siblings, 0 replies; 6+ messages in thread
From: Gábor Boskovits @ 2018-11-06 15:23 UTC (permalink / raw)
  To: Lakshmi Prasannakumar, Björn Höfling,
	Ludovic Courtès, Ricardo Wurmus, 33214-done

This has made to master on commit cddc0300b7fb5fbbc80f45a626073f8372bf491f.

Thanks for all the hard work!

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-11-06 15:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-31  4:38 [bug#33214] Patch file for weight package Lakshmi Prasannakumar
2018-10-31  9:29 ` [bug#33214] Patch Tracker no. 33214 Lakshmi Prasannakumar
2018-10-31 10:18   ` Gábor Boskovits
     [not found]     ` <CA+H0LRPY33C_fH662j88Sg4TxiLL9xWC5XZqF-i5N97FRcgCNg@mail.gmail.com>
     [not found]       ` <CA+H0LRPpfcEM4yR=tHT=3V5Z0e7WRdhYawz83yQ+dQipWhjTFw@mail.gmail.com>
2018-10-31 17:37         ` Lakshmi Prasannakumar
2018-11-01  9:16 ` [bug#33214] Modifying the commit message to gnu-Add-r-weights Lakshmi Prasannakumar
2018-11-06 15:23 ` bug#33214: gnu: Add r-weights Gábor Boskovits

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.