Skip to content

[R-pkg-devel] Source code of an existing package

5 messages · Marcelo Carvalho Fernandes, Ben Bolker, Dirk Eddelbuettel +2 more

#
Hi all!

I am interested in seeing the source code of the boot.ci() function of the boot package.

Is it possible to have such source code? How?

Thanks in advance,

---
Marcelo Carvalho Fernandes
#
Easiest way:

  library(boot)
  boot.ci

Alternatively, go to https://cran.r-project.org/package=boot ,
download the tarball, unpack it, and look around in the R/ directory.
On 16-08-10 09:42 PM, Marcelo Carvalho Fernandes wrote:
#
On 10 August 2016 at 22:14, Ben Bolker wrote:
| 
|  Easiest way:
| 
|   library(boot)
|   boot.ci
| 
| Alternatively, go to https://cran.r-project.org/package=boot ,
| download the tarball, unpack it, and look around in the R/ directory.

Uwe Ligges wrote an 'R Help Desk' piece in R News about this -- see pages 43
to 45 here:
   https://www.r-project.org/doc/Rnews/Rnews_2006-4.pdf

Dirk
#
Hi,

If you are interested in the source code of an entire package in its
original form - you can also download the .tar.gz version of the package
from CRAN. In a .tar.gz, you find the sources, unlike the .zip for windows,
which is already compiled.

If you are under windows, you can use a program such as 7-zip to unzip the
.tar.gz (which is mostly used on unix systems).

The R code of the package is in the R subfolder

In your case, the function boot.ci, is in

R/bootfuns.q

and starts in the latest version on line 859

Best

Holger

On Thu, Aug 11, 2016 at 3:42 AM, Marcelo Carvalho Fernandes <
mcf2000 at gmail.com> wrote:

            

  
  
#
Hi,
I always use metacran to access package sources.
https://github.com/cran/boot

Tim
On 11.08.2016 06:57, Holger Hoefling wrote: