Erin Hodgess
2017-Aug-17 21:46 UTC
[R] really dumb question with building/creating a new package.
Hello. I am creating a new RcmdrPlugin package. However, I am getting some very odd messages. R CMD build RcmdrPlugin.gstats_1.0.0 ERROR cannot change to directory ?RcmdrPlugin.gstats_1.0.0? es-macbook-air:~ emhodgess$ R CMD check RcmdrPlugin.gstats_1.0.0 Warning: ?RcmdrPlugin.gstats_1.0.0? is neither a file nor directory, skipping es-macbook-air:~ emhodgess$ cd RcmdrPlugin.gstats/ es-macbook-air:RcmdrPlugin.gstats emhodgess$ pwd /Users/emhodgess/RcmdrPlugin.gstats es-macbook-air:RcmdrPlugin.gstats emhodgess$ I can neither run R CMD build nor check. Any help truly appreciated. It's been ages since I've put together a package. Thanks, Erin -- Erin Hodgess Associate Professor Department of Mathematical and Statistics University of Houston - Downtown mailto: erinm.hodgess at gmail.com [[alternative HTML version deleted]]
Bert Gunter
2017-Aug-17 21:55 UTC
[R] really dumb question with building/creating a new package.
r-package-devel is probably a better place to post this, especially if you do not get a satisfactory reply here. This list is about R programming, as you presumably know; your query is not. Cheers, Bert Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On Thu, Aug 17, 2017 at 2:46 PM, Erin Hodgess <erinm.hodgess at gmail.com> wrote:> Hello. > > I am creating a new RcmdrPlugin package. However, I am getting some very > odd messages. > > R CMD build RcmdrPlugin.gstats_1.0.0 > > ERROR > > cannot change to directory ?RcmdrPlugin.gstats_1.0.0? > > es-macbook-air:~ emhodgess$ R CMD check RcmdrPlugin.gstats_1.0.0 > > Warning: ?RcmdrPlugin.gstats_1.0.0? is neither a file nor directory, > skipping > > > es-macbook-air:~ emhodgess$ cd RcmdrPlugin.gstats/ > > es-macbook-air:RcmdrPlugin.gstats emhodgess$ pwd > > /Users/emhodgess/RcmdrPlugin.gstats > > es-macbook-air:RcmdrPlugin.gstats emhodgess$ > > > I can neither run R CMD build nor check. Any help truly appreciated. It's > been ages since I've put together a package. > > Thanks, > Erin > > > -- > Erin Hodgess > Associate Professor > Department of Mathematical and Statistics > University of Houston - Downtown > mailto: erinm.hodgess at gmail.com > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at 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.
Ben Tupper
2017-Aug-17 22:00 UTC
[R] really dumb question with building/creating a new package.
Hi,
Below is the help from a terminal session. Note that you provide the directory
name (where your package files are located). I think in your case that would be
'/Users/emhodgess/RcmdrPlugin.gstats'
ben at gale ~ $ R CMD build --help
Usage: R CMD build [options] pkgdirs
Build R packages from package sources in the directories specified by
?pkgdirs?
Options:
-h, --help print short help message and exit
-v, --version print version info and exit
--force force removal of INDEX file
--keep-empty-dirs do not remove empty dirs
--no-build-vignettes do not (re)build package vignettes
--no-manual do not build the PDF manual even if \Sexprs are present
--resave-data= re-save data files as compactly as possible:
"no", "best", "gzip"
(default)
--resave-data same as --resave-data=best
--no-resave-data same as --resave-data=no
--compact-vignettes= try to compact PDF files under inst/doc:
"no" (default), "qpdf",
"gs", "gs+qpdf", "both"
--compact-vignettes same as --compact-vignettes=qpdf
--md5 add MD5 sums
### end
You want to explore Hadley Wickham's devtools package which makes package
development a breeze. More here...
https://cran.r-project.org/web/packages/devtools/index.html
Cheers,
Ben
> On Aug 17, 2017, at 5:46 PM, Erin Hodgess <erinm.hodgess at
gmail.com> wrote:
>
> Hello.
>
> I am creating a new RcmdrPlugin package. However, I am getting some very
> odd messages.
>
> R CMD build RcmdrPlugin.gstats_1.0.0
>
> ERROR
>
> cannot change to directory ?RcmdrPlugin.gstats_1.0.0?
>
> es-macbook-air:~ emhodgess$ R CMD check RcmdrPlugin.gstats_1.0.0
>
> Warning: ?RcmdrPlugin.gstats_1.0.0? is neither a file nor directory,
> skipping
>
>
> es-macbook-air:~ emhodgess$ cd RcmdrPlugin.gstats/
>
> es-macbook-air:RcmdrPlugin.gstats emhodgess$ pwd
>
> /Users/emhodgess/RcmdrPlugin.gstats
>
> es-macbook-air:RcmdrPlugin.gstats emhodgess$
>
>
> I can neither run R CMD build nor check. Any help truly appreciated.
It's
> been ages since I've put together a package.
>
> Thanks,
> Erin
>
>
> --
> Erin Hodgess
> Associate Professor
> Department of Mathematical and Statistics
> University of Houston - Downtown
> mailto: erinm.hodgess at gmail.com
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at 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.
Ben Tupper
Bigelow Laboratory for Ocean Sciences
60 Bigelow Drive, P.O. Box 380
East Boothbay, Maine 04544
http://www.bigelow.org
Ecocast Reports: http://seascapemodeling.org/ecocast.html
Tick Reports: https://report.bigelow.org/tick/
Jellyfish Reports: https://jellyfish.bigelow.org/jellyfish/
Erin Hodgess
2017-Aug-17 22:18 UTC
[R] really dumb question with building/creating a new package.
Thank you! On Thu, Aug 17, 2017 at 4:55 PM, Bert Gunter <bgunter.4567 at gmail.com> wrote:> r-package-devel is probably a better place to post this, especially if > you do not get a satisfactory reply here. This list is about R > programming, as you presumably know; your query is not. > > Cheers, > Bert > > > Bert Gunter > > "The trouble with having an open mind is that people keep coming along > and sticking things into it." > -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) > > > On Thu, Aug 17, 2017 at 2:46 PM, Erin Hodgess <erinm.hodgess at gmail.com> > wrote: > > Hello. > > > > I am creating a new RcmdrPlugin package. However, I am getting some very > > odd messages. > > > > R CMD build RcmdrPlugin.gstats_1.0.0 > > > > ERROR > > > > cannot change to directory ?RcmdrPlugin.gstats_1.0.0? > > > > es-macbook-air:~ emhodgess$ R CMD check RcmdrPlugin.gstats_1.0.0 > > > > Warning: ?RcmdrPlugin.gstats_1.0.0? is neither a file nor directory, > > skipping > > > > > > es-macbook-air:~ emhodgess$ cd RcmdrPlugin.gstats/ > > > > es-macbook-air:RcmdrPlugin.gstats emhodgess$ pwd > > > > /Users/emhodgess/RcmdrPlugin.gstats > > > > es-macbook-air:RcmdrPlugin.gstats emhodgess$ > > > > > > I can neither run R CMD build nor check. Any help truly appreciated. > It's > > been ages since I've put together a package. > > > > Thanks, > > Erin > > > > > > -- > > Erin Hodgess > > Associate Professor > > Department of Mathematical and Statistics > > University of Houston - Downtown > > mailto: erinm.hodgess at gmail.com > > > > [[alternative HTML version deleted]] > > > > ______________________________________________ > > R-help at 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. >-- Erin Hodgess Associate Professor Department of Mathematical and Statistics University of Houston - Downtown mailto: erinm.hodgess at gmail.com [[alternative HTML version deleted]]