hi, i'm receiving failures on the winbuilder, with it complaining that ggplot2 can not be found: https://win-builder.r-project.org/incoming_pretest/170516_125043_jmvcore_055/00install.out now there are some mentions of ggplot2 in our code (but none in our NAMESPACE, we always use the full namespace when calling functions: `ggplot2::ggplot()`), allowing people to pass in ggplot2 themes and for them to be handled correctly, but packages that build on jmvcore don't *need* to use ggplot2. so we've been able to avoid adding it as an import, which is great, because ggplot2 brings quite a few dependencies. our code works as intended, passes all tests with `R CMD check --as-cran jmvcore`, etc. however the win-builder is pinging us. is there a way around this? with thanks jonathon
[R-pkg-devel] package installation fails due to missing package not listed in NAMESPACE
9 messages · Jonathon Love, Dirk Eddelbuettel, Duncan Murdoch +1 more
Dear Jonathon, Is ggplot2 listed in the DESCRIPTION file? It needs to be at least in the Suggests: 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 2017-05-16 13:12 GMT+02:00 Jonathon Love <jon at thon.cc>:
hi, i'm receiving failures on the winbuilder, with it complaining that ggplot2 can not be found: https://win-builder.r-project.org/incoming_pretest/170516_12 5043_jmvcore_055/00install.out now there are some mentions of ggplot2 in our code (but none in our NAMESPACE, we always use the full namespace when calling functions: `ggplot2::ggplot()`), allowing people to pass in ggplot2 themes and for them to be handled correctly, but packages that build on jmvcore don't *need* to use ggplot2. so we've been able to avoid adding it as an import, which is great, because ggplot2 brings quite a few dependencies. our code works as intended, passes all tests with `R CMD check --as-cran jmvcore`, etc. however the win-builder is pinging us. is there a way around this? with thanks jonathon
______________________________________________ R-package-devel at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel
yes, sorry, crucial piece of information i forgot to mention. ggplot2 *is* in suggests. with thanks jonathon
On 16/5/17 21:21, Thierry Onkelinx wrote:
Dear Jonathon,
Is ggplot2 listed in the DESCRIPTION file? It needs to be at least in
the Suggests:
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
2017-05-16 13:12 GMT+02:00 Jonathon Love <jon at thon.cc
<mailto:jon at thon.cc>>:
hi,
i'm receiving failures on the winbuilder, with it complaining that
ggplot2 can not be found:
https://win-builder.r-project.org/incoming_pretest/170516_125043_jmvcore_055/00install.out
<https://win-builder.r-project.org/incoming_pretest/170516_125043_jmvcore_055/00install.out>
now there are some mentions of ggplot2 in our code (but none in
our NAMESPACE, we always use the full namespace when calling
functions: `ggplot2::ggplot()`), allowing people to pass in
ggplot2 themes and for them to be handled correctly, but packages
that build on jmvcore don't *need* to use ggplot2. so we've been
able to avoid adding it as an import, which is great, because
ggplot2 brings quite a few dependencies.
our code works as intended, passes all tests with `R CMD check
--as-cran jmvcore`, etc.
however the win-builder is pinging us.
is there a way around this?
with thanks
jonathon
______________________________________________
R-package-devel at r-project.org
<mailto:R-package-devel at r-project.org> mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel
<https://stat.ethz.ch/mailman/listinfo/r-package-devel>
Try adding requireNamespace("ggplot2") in the function that rely on ggplot2.
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
2017-05-16 13:22 GMT+02:00 Jonathon Love <jon at thon.cc>:
yes, sorry, crucial piece of information i forgot to mention. ggplot2 *is* in suggests. with thanks jonathon On 16/5/17 21:21, Thierry Onkelinx wrote:
Dear Jonathon,
Is ggplot2 listed in the DESCRIPTION file? It needs to be at least in
the Suggests:
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
2017-05-16 13:12 GMT+02:00 Jonathon Love <jon at thon.cc
<mailto:jon at thon.cc>>:
hi,
i'm receiving failures on the winbuilder, with it complaining that
ggplot2 can not be found:
https://win-builder.r-project.org/incoming_pretest/170516_
125043_jmvcore_055/00install.out
170516_125043_jmvcore_055/00install.out>
now there are some mentions of ggplot2 in our code (but none in
our NAMESPACE, we always use the full namespace when calling
functions: `ggplot2::ggplot()`), allowing people to pass in
ggplot2 themes and for them to be handled correctly, but packages
that build on jmvcore don't *need* to use ggplot2. so we've been
able to avoid adding it as an import, which is great, because
ggplot2 brings quite a few dependencies.
our code works as intended, passes all tests with `R CMD check
--as-cran jmvcore`, etc.
however the win-builder is pinging us.
is there a way around this?
with thanks
jonathon
______________________________________________
R-package-devel at r-project.org
<mailto:R-package-devel at r-project.org> mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel
<https://stat.ethz.ch/mailman/listinfo/r-package-devel>
[[alternative HTML version deleted]]
______________________________________________ R-package-devel at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel
On 16 May 2017 at 21:22, Jonathon Love wrote:
| yes, sorry, crucial piece of information i forgot to mention. | | ggplot2 *is* in suggests. Suggests != Depends The semantics are messed up around R. If you use Suggests, you really should [1] test for presence. Dirk [1] My preference is for "must" instead but I said my piece many times now.
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
hi, this doesn't seem to make any difference. but we kinda want the opposite of this. we want the install process to know that ggplot2 isn't required. with thanks jonathon
On 16/5/17 21:34, Thierry Onkelinx wrote:
Try adding requireNamespace("ggplot2") in the function that rely on
ggplot2.
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
2017-05-16 13:22 GMT+02:00 Jonathon Love <jon at thon.cc
<mailto:jon at thon.cc>>:
yes, sorry, crucial piece of information i forgot to mention.
ggplot2 *is* in suggests.
with thanks
jonathon
On 16/5/17 21:21, Thierry Onkelinx wrote:
> Dear Jonathon,
>
> Is ggplot2 listed in the DESCRIPTION file? It needs to be at
least in
> the Suggests:
>
> 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
>
> 2017-05-16 13:12 GMT+02:00 Jonathon Love <jon at thon.cc
> <mailto:jon at thon.cc <mailto:jon at thon.cc>>>:
>
> hi,
>
> i'm receiving failures on the winbuilder, with it
complaining that
> ggplot2 can not be found:
>
>
https://win-builder.r-project.org/incoming_pretest/170516_125043_jmvcore_055/00install.out <https://win-builder.r-project.org/incoming_pretest/170516_125043_jmvcore_055/00install.out>
>
<https://win-builder.r-project.org/incoming_pretest/170516_125043_jmvcore_055/00install.out <https://win-builder.r-project.org/incoming_pretest/170516_125043_jmvcore_055/00install.out>>
>
> now there are some mentions of ggplot2 in our code (but none in
> our NAMESPACE, we always use the full namespace when calling
> functions: `ggplot2::ggplot()`), allowing people to pass in
> ggplot2 themes and for them to be handled correctly, but
packages
> that build on jmvcore don't *need* to use ggplot2. so we've been
> able to avoid adding it as an import, which is great, because
> ggplot2 brings quite a few dependencies.
>
> our code works as intended, passes all tests with `R CMD check
> --as-cran jmvcore`, etc.
>
> however the win-builder is pinging us.
>
> is there a way around this?
>
> with thanks
>
> jonathon
>
> ______________________________________________
> R-package-devel at r-project.org <mailto:R-package-devel at r-project.org>
> <mailto:R-package-devel at r-project.org
<mailto:R-package-devel at r-project.org>> mailing list
>
>
[[alternative HTML version deleted]]
______________________________________________
R-package-devel at r-project.org
<mailto:R-package-devel at r-project.org> mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel
<https://stat.ethz.ch/mailman/listinfo/r-package-devel>
On 16/05/2017 7:34 AM, Thierry Onkelinx wrote:
Try adding requireNamespace("ggplot2") in the function that rely on ggplot2.
That's not enough, even though it might fool the test (I haven't
checked). Those functions need to condition on the result, i.e.
something like
if (requireNamespace("ggplot2")) ggplot2::ggplot()
else ... (optional warning that you need it) ...
Duncan Murdoch
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 2017-05-16 13:22 GMT+02:00 Jonathon Love <jon at thon.cc>:
yes, sorry, crucial piece of information i forgot to mention. ggplot2 *is* in suggests. with thanks jonathon On 16/5/17 21:21, Thierry Onkelinx wrote:
Dear Jonathon,
Is ggplot2 listed in the DESCRIPTION file? It needs to be at least in
the Suggests:
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
2017-05-16 13:12 GMT+02:00 Jonathon Love <jon at thon.cc
<mailto:jon at thon.cc>>:
hi,
i'm receiving failures on the winbuilder, with it complaining that
ggplot2 can not be found:
https://win-builder.r-project.org/incoming_pretest/170516_
125043_jmvcore_055/00install.out
170516_125043_jmvcore_055/00install.out>
now there are some mentions of ggplot2 in our code (but none in
our NAMESPACE, we always use the full namespace when calling
functions: `ggplot2::ggplot()`), allowing people to pass in
ggplot2 themes and for them to be handled correctly, but packages
that build on jmvcore don't *need* to use ggplot2. so we've been
able to avoid adding it as an import, which is great, because
ggplot2 brings quite a few dependencies.
our code works as intended, passes all tests with `R CMD check
--as-cran jmvcore`, etc.
however the win-builder is pinging us.
is there a way around this?
with thanks
jonathon
______________________________________________
R-package-devel at r-project.org
<mailto:R-package-devel at r-project.org> mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel
<https://stat.ethz.ch/mailman/listinfo/r-package-devel>
[[alternative HTML version deleted]]
______________________________________________ R-package-devel at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel
[[alternative HTML version deleted]]
______________________________________________ R-package-devel at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel
Yes. That is what I meant (but too lazy to write). 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 2017-05-16 13:53 GMT+02:00 Duncan Murdoch <murdoch.duncan at gmail.com>:
On 16/05/2017 7:34 AM, Thierry Onkelinx wrote:
Try adding requireNamespace("ggplot2") in the function that rely on
ggplot2.
That's not enough, even though it might fool the test (I haven't
checked). Those functions need to condition on the result, i.e. something
like
if (requireNamespace("ggplot2")) ggplot2::ggplot()
else ... (optional warning that you need it) ...
Duncan Murdoch
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 2017-05-16 13:22 GMT+02:00 Jonathon Love <jon at thon.cc>: yes, sorry, crucial piece of information i forgot to mention.
ggplot2 *is* in suggests. with thanks jonathon On 16/5/17 21:21, Thierry Onkelinx wrote:
Dear Jonathon,
Is ggplot2 listed in the DESCRIPTION file? It needs to be at least in
the Suggests:
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
2017-05-16 13:12 GMT+02:00 Jonathon Love <jon at thon.cc
<mailto:jon at thon.cc>>:
hi,
i'm receiving failures on the winbuilder, with it complaining that
ggplot2 can not be found:
https://win-builder.r-project.org/incoming_pretest/170516_
125043_jmvcore_055/00install.out
170516_125043_jmvcore_055/00install.out>
now there are some mentions of ggplot2 in our code (but none in
our NAMESPACE, we always use the full namespace when calling
functions: `ggplot2::ggplot()`), allowing people to pass in
ggplot2 themes and for them to be handled correctly, but packages
that build on jmvcore don't *need* to use ggplot2. so we've been
able to avoid adding it as an import, which is great, because
ggplot2 brings quite a few dependencies.
our code works as intended, passes all tests with `R CMD check
--as-cran jmvcore`, etc.
however the win-builder is pinging us.
is there a way around this?
with thanks
jonathon
______________________________________________
R-package-devel at r-project.org
<mailto:R-package-devel at r-project.org> mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel
<https://stat.ethz.ch/mailman/listinfo/r-package-devel>
[[alternative HTML version deleted]]
______________________________________________ R-package-devel at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel
[[alternative HTML version deleted]]
______________________________________________ R-package-devel at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel
awesome! works a treat. with thanks jonathon
On 16/5/17 21:53, Duncan Murdoch wrote:
On 16/05/2017 7:34 AM, Thierry Onkelinx wrote:
Try adding requireNamespace("ggplot2") in the function that rely on
ggplot2.
That's not enough, even though it might fool the test (I haven't
checked). Those functions need to condition on the result, i.e.
something like
if (requireNamespace("ggplot2")) ggplot2::ggplot()
else ... (optional warning that you need it) ...
Duncan Murdoch
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 2017-05-16 13:22 GMT+02:00 Jonathon Love <jon at thon.cc>:
yes, sorry, crucial piece of information i forgot to mention. ggplot2 *is* in suggests. with thanks jonathon On 16/5/17 21:21, Thierry Onkelinx wrote:
Dear Jonathon,
Is ggplot2 listed in the DESCRIPTION file? It needs to be at least in
the Suggests:
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
2017-05-16 13:12 GMT+02:00 Jonathon Love <jon at thon.cc
<mailto:jon at thon.cc>>:
hi,
i'm receiving failures on the winbuilder, with it complaining that
ggplot2 can not be found:
https://win-builder.r-project.org/incoming_pretest/170516_
125043_jmvcore_055/00install.out
170516_125043_jmvcore_055/00install.out>
now there are some mentions of ggplot2 in our code (but none in
our NAMESPACE, we always use the full namespace when calling
functions: `ggplot2::ggplot()`), allowing people to pass in
ggplot2 themes and for them to be handled correctly, but packages
that build on jmvcore don't *need* to use ggplot2. so we've been
able to avoid adding it as an import, which is great, because
ggplot2 brings quite a few dependencies.
our code works as intended, passes all tests with `R CMD check
--as-cran jmvcore`, etc.
however the win-builder is pinging us.
is there a way around this?
with thanks
jonathon
______________________________________________
R-package-devel at r-project.org
<mailto:R-package-devel at r-project.org> mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel
<https://stat.ethz.ch/mailman/listinfo/r-package-devel>
[[alternative HTML version deleted]]
______________________________________________ R-package-devel at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel
[[alternative HTML version deleted]]
______________________________________________ R-package-devel at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel