[R] How do I know which package is loaded?
Thierry Onkelinx
thierry.onkelinx at inbo.be
Wed Feb 18 17:39:20 CET 2015
Dear Aron,
- Set the build tools in RStudio to build a package (via Tools -> Project
options -> Build tools)
- Use the Build pane to "Build" and then "Check" the package
Best regards,
Thierry
ir. Thierry Onkelinx
Instituut voor natuur- en bosonderzoek / Research Institute for Nature and
Forest
team Biometrie & Kwaliteitszorg / team Biometrics & Quality Assurance
Kliniekstraat 25
1070 Anderlecht
Belgium
To call in the statistician after the experiment is done may be no more
than asking him to perform a post-mortem examination: he may be able to say
what the experiment died of. ~ Sir Ronald Aylmer Fisher
The plural of anecdote is not data. ~ Roger Brinner
The combination of some data and an aching desire for an answer does not
ensure that a reasonable answer can be extracted from a given body of data.
~ John Tukey
2015-02-18 17:12 GMT+01:00 Aron Lindberg <aron.lindberg op case.edu>:
> Hi All,
>
>
> In short: what’s a good workflow for forking/rewriting/testing code in
> packages?
>
>
> I’m trying to contribute to a package on Github. So I fork it and then
> clone my forked repo into my desktop, and then I open the files I want to
> edit in RStudio.
>
>
> However, to actually test that the code works, I need to load the package
> from the local version on my machine. I think I can do this using:
>
>
> library(rgithub, lib.loc = “/Users/Aron/github/local/rgithub/“)
>
>
> However, this fails:
>
>
> Error in library(rgithub, lib.loc = “/Users/Aron/github/local/“) :
> there is no package called ‘rgithub’
>
>
> Do I need to install the library from the local repo first somehow? How do
> I do this?
>
>
> If I got it to work I assume I would be able to run
>
>
> sessionInfo()
>
>
> Which would then enable me to see which version of the package is loaded.
> However, the version number would be the same as the package that I can
> install using devtools, e.g. devtools::install_github(“cscheid/rgithub”.
> How can I check whether I have loaded my local development copy or the
> “official” copy that I also have on my machine?
>
>
> In short: what’s a good workflow for forking/rewriting/testing code in
> packages?
>
>
> Best,
> Aron
>
>
> --
> Aron Lindberg
>
>
> Doctoral Candidate, Information Systems
> Weatherhead School of Management
> Case Western Reserve University
> aronlindberg.github.io
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help op r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
[[alternative HTML version deleted]]
More information about the R-help
mailing list