From: Laura Lazzati <laura.lazzati.15@gmail.com>
To: "Björn Höfling" <bjoern.hoefling@bjoernhoefling.de>
Cc: Guix-devel <guix-devel@gnu.org>,
Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de>
Subject: Re: [outreach] Help trying to create R package
Date: Tue, 16 Oct 2018 22:01:58 -0300 [thread overview]
Message-ID: <CAPNLzUOs_9HPtnNep9ij3+_g=HtC8D+gjnnaCtmuYYyG+RGY=w@mail.gmail.com> (raw)
In-Reply-To: <20181017001851.71543cc9@alma-ubu>
On Tue, Oct 16, 2018 at 7:19 PM Björn Höfling
<bjoern.hoefling@bjoernhoefling.de> wrote:
>
> Hi Laura,
Hi! I had not answered yet because I thought I would be too verbose.
If so, please do a Laura -v instead of Laura -vvvvvvv.
Thanks for writing :) it encourages me a lot.
>
> On Tue, 16 Oct 2018 10:13:23 -0300
> Laura Lazzati <laura.lazzati.15@gmail.com> wrote:
>
> [importing problems ...]
>
> Could you solve your certificate-problem? Have you been successfully in
> importing a package?
Yes! I love reading ALL the documentation, but I focused mainly in
chapters 3 to 5, and the part about the certificate stuff is 6. That
is why I did not know about it.
>
> Unfortunately the package of your choice is already part of guix:
>
>
> $ guix package -s "rtracklayer$"
> name: r-rtracklayer
> version: 1.40.6
> outputs: out
> systems: x86_64-linux i686-linux armhf-linux aarch64-linux mips64el-linux
> dependencies: pkg-config@0.29.2 r-biocgenerics@0.26.0 r-biostrings@2.48.0
> + r-genomeinfodb@1.16.0 r-genomicalignments@1.16.0 r-genomicranges@1.32.6
> + r-iranges@2.14.11 r-rcurl@1.95-0.1.2 r-rsamtools@1.32.3 r-s4vectors@0.18.3
> + r-xml@3.98-1.16 r-xvector@0.20.0 zlib@1.2.11
> location: gnu/packages/bioinformatics.scm:7696:2
> homepage: https://bioconductor.org/packages/rtracklayer
> license: Artistic License 2.0
> synopsis: R interface to genome browsers and their annotation tracks
> description: rtracklayer is an extensible framework for interacting with
> + multiple genome browsers (currently UCSC built-in) and manipulating annotation
> + tracks in various formats (currently GFF, BED, bedGraph, BED15, WIG, BigWig
> + and 2bit built-in). The user may export/import tracks to/from the supported
> + browsers, as well as query and modify the browser state, such as the current
> + viewport.
> relevance: 4
>
> Can you find another one?
Yes! I knew that the package was already available for guix, but I
just wanted to see the template, with guix import, to use it for
others.
>
>
> > I am trying to do my best. I am reading the documentation carefully, I
> > recall mentioning that I am that kind of person, but I also know that
> > time counts for the contributions.
>
> Yes, you mentioned that :-) The documentation is huge, with lots of
> special concepts. I would recommend reading it only partially, whenever
> you need more information.
I have already answered this :( I know I don't have time to do things
this way, at least for the contribution(s)
>
>
> > And if I figure out how to package
> > R packages, then I can also package more packages and, whatever the
> > result of outreachy might be, well, there are more useful packages in
> > guix.
> > For instance, I tried, before of asking for help with the example
> > shown with cairo and it worked fine, so I was not understanding very
> > well what was happening,
> > In addition, I have just run
> > $ guix package -s "\<R\>" | recsel -p name,synopsis >>
> > outputRwithNameAndSynopsis.txt
> > and found even more R packages already installed.
>
> Here is another one:
>
> guix package -s "^r-" | recsel -p name| grep '\S' | sort >r.txt
Something I faced after writing, was that in the link one of you provided:
[1]https://guix.mdc-berlin.de/
I have all the packages that are already available in guix. I like
using the guix package command to practice that too, but i found it
practical to see packages easier. I found out that package aspi
(https://CRAN.R-project.org/package=aspi) is not available, and I
would like to ask you if you believe it is a good candidate.
One available package, according to [1] is r-abe
(https://cran.r-project.org/web/packages/abe/index.html)
I wanted to see the template, so I ran:
$ guix import cran abe
And got the template, that matches even the version, and everything
stated in the site.
But then I tried:
$ guix package -i r-abe and got no results.
In fact, after running the command you have just provided, r-abe is
not appearing in the r.txt file.
I can't understand why that is happening. Am I missing something, or
is there maybe an inconsistency between [1] and the guix installed in
my foreign distro?
Just wanted to install it to run guix edit to check if the suggested
packages were already available or if I needed to package them too,
but I have installed r-ade4, which has both imports and suggests, and
I have just run:
$guix import cran ade4
And noticed that it only states in the template the Import package (MASS)
Here is my template for aspi (I named it for myself r-aspi.scm). I ran
guix download from its site, and also guix hash to convert it to
base32:
(define-public r-aspi
(package
(name "r-aspi")
(version "0.2.0")
(source
(origin
(method url-fetch)
(uri (cran-uri "aspi" version))
(sha256
(base32
"a7izhueiqsdjs2eo7dfyb63cqje7mbqz6ennlyoynxxucbhpdnta"))))
(build-system r-build-system)
(home-page
"https://cran.r-project.org/web/packages/aspi/")
(synopsis
"Analysis of Symmetry of Parasitic Infections")
(description
"Tools for the analysis and visualization of bilateral asymmetry
in parasitic infections.")
(license gpl3+)))
And that's were I ended up today (it is still Tuesday, almost 10pm)
>
> the carret-symbol "^" matches the beginning of the line.
> There are some empty lines, which get sorted out with the grep.
Thanks :) I knew about the regex, but everything is always welcome :)
sometimes it is true that after reading too much info you end up
messed up if you do not have enough time to practice and try
everything.
>
>
> > Well, time to work!
>
> Good luck!
Thanks!
>
> Björn
Regards,
Laura
next prev parent reply other threads:[~2018-10-17 1:02 UTC|newest]
Thread overview: 46+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-13 13:36 [outreach] Help trying to create R package Laura Lazzati
2018-10-13 17:58 ` Gábor Boskovits
2018-10-13 18:25 ` Catonano
2018-10-14 0:40 ` Laura Lazzati
2018-10-15 22:47 ` Laura Lazzati
2018-10-16 5:44 ` Björn Höfling
2018-10-16 6:23 ` Björn Höfling
2018-10-16 8:28 ` Gábor Boskovits
2018-10-16 13:13 ` Laura Lazzati
2018-10-16 22:18 ` Björn Höfling
2018-10-17 1:01 ` Laura Lazzati [this message]
2018-10-17 7:17 ` Björn Höfling
2018-10-17 8:21 ` Gábor Boskovits
2018-10-17 14:27 ` Laura Lazzati
2018-10-17 16:38 ` Laura Lazzati
2018-10-17 17:13 ` Clément Lassieur
2018-10-17 17:50 ` Laura Lazzati
2018-10-18 1:36 ` Laura Lazzati
2018-10-18 6:54 ` Björn Höfling
2018-10-18 7:50 ` Gábor Boskovits
2018-10-18 14:49 ` Laura Lazzati
2018-10-18 15:15 ` Gábor Boskovits
2018-10-18 15:25 ` Laura Lazzati
2018-10-18 15:40 ` Gábor Boskovits
2018-10-18 16:18 ` Laura Lazzati
2018-10-18 17:26 ` Laura Lazzati
2018-10-18 17:41 ` Björn Höfling
2018-10-18 18:14 ` Ricardo Wurmus
2018-10-18 18:17 ` Laura Lazzati
2018-10-19 1:05 ` Laura Lazzati
2018-10-19 3:47 ` Laura Lazzati
2018-10-19 6:21 ` Gábor Boskovits
2018-10-19 7:09 ` Ricardo Wurmus
2018-10-19 7:29 ` Gábor Boskovits
2018-10-19 18:37 ` Laura Lazzati
2018-10-19 18:45 ` Gábor Boskovits
2018-10-19 20:35 ` Laura Lazzati
2018-10-19 21:25 ` Gábor Boskovits
2018-10-19 23:10 ` Laura Lazzati
2018-10-20 6:08 ` Björn Höfling
2018-10-20 6:34 ` Gábor Boskovits
2018-10-20 13:47 ` Laura Lazzati
2018-10-20 14:01 ` Ludovic Courtès
2018-11-02 19:44 ` Laura Lazzati
2018-11-02 20:12 ` Gábor Boskovits
2018-11-02 20:17 ` Laura Lazzati
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAPNLzUOs_9HPtnNep9ij3+_g=HtC8D+gjnnaCtmuYYyG+RGY=w@mail.gmail.com' \
--to=laura.lazzati.15@gmail.com \
--cc=bjoern.hoefling@bjoernhoefling.de \
--cc=guix-devel@gnu.org \
--cc=ricardo.wurmus@mdc-berlin.de \
/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 public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).