[Rd] Potential bug in utils::citation()

2017-04-02 Thread Zhian Kamvar
Hi,

I believe the function utils::citation() will fail if the package specified has 
two or more citation entries in the current R-devel. The following error is 
issued:

'missing' can only be used for arguments 

I have created a working example on github [0] that is build using R-devel on 
travis-ci [1]. Jim Hester has potentially identified [2] the source of the 
problem as being from a commit on the 27th [3, 4]. I do not have R-devel built 
on my machine, but I believe this error can be reproduced on the current 
R-devel with:

if (require("boot") & require("utils")) utils::citation("boot")

Background:

My package poppr suddenly started failing check on R-devel during a weekly 
travis-ci job [5] due to the error above. Another package of mine, ezec, passed 
[6]. Both contain calls to utils::citation() within the vignettes, but  poppr 
has two citations and ezec only has one (called from another package).

Thanks,
Zhian

[0]: https://github.com/zkamvar/citest
[1]: https://travis-ci.org/zkamvar/citest/jobs/217874351
[2]: 
https://github.com/wch/r-source/commit/7890e9e87d44f85ab76c0e786036a191eacd71d1
[3]: https://svn.r-project.org/R/trunk@72419
[4]: 
https://github.com/wch/r-source/commit/7890e9e87d44f85ab76c0e786036a191eacd71d1
[5]: https://travis-ci.org/grunwaldlab/poppr/jobs/216452458
[6]: https://travis-ci.org/grunwaldlab/ezec/jobs/216452916

-
Zhian N. Kamvar, Ph. D.
Postdoctoral Researcher (Everhart Lab)
Department of Plant Pathology
University of Nebraska-Lincoln

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] Creating a private CRAN with webpages

2017-06-09 Thread Zhian Kamvar
Hi Josh,

If you aren't opposed to using bootstrap, you could check out pkgdown: 
http://hadley.github.io/pkgdown/index.html 


>From my experience, it works pretty well out of the box. 

HTH,
Zhian

-
Zhian N. Kamvar, Ph. D.
Postdoctoral Researcher (Everhart Lab)
Department of Plant Pathology
University of Nebraska-Lincoln

> On Jun 8, 2017, at 16:29 , Joshua Bradley  wrote:
> 
> Hello,
> 
> I am trying to setup a private CRAN for work (behind a firewall). The best
> options available include miniCRAN
> , drat
>  and packrat
> . One problem is these packages do not
> automatically generate the web pages that are on the CRAN.
> 
> Examples:
> https://cran.r-project.org/web/packages/index.html
> https://cran.r-project.org/web/packages/available_packages_by_name.html
> 
> Each time the CRAN adds a package, there must be an automated process in
> place to regenerate the pages again with the new package added (example - A3
> ). I read somewhere
> (possibly on stackoverflow) that the CRAN html pages are statically built.
> I would like for users to be able to explore the packages in my private
> CRAN just like the public CRAN without having to open R and search for
> packages/documentation through the command line.
> 
> The R Manual includes a small section
> 
> on setting up a repository but it only discusses the structure of the
> directories needed to host packages. Nothing is mentioned about how the
> CRAN creates/updates the /web directory. What is the best way to
> generate/maintain the web pages for a private CRAN?
> 
> P.S. Let me know if this question is best answered on one of the other
> mailing lists.
> 
> Josh Bradley
> 
>   [[alternative HTML version deleted]]
> 
> __
> R-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel


[[alternative HTML version deleted]]

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel