Re: [R-pkg-devel] Package required and available but unsuitable version: 'stats'

2017-07-20 Thread Jernej Jevšenak
Thank you all for the helpful responses.

Best, Jerry

2017-07-20 18:01 GMT+02:00 Martin Maechler :

> > Maxime Turgeon 
> > on Thu, 20 Jul 2017 15:51:18 + writes:
>
> > Hi Jernej,
> > The check errors you get are for older releases of R (3.3.2 and
> 3.3.3). The issue arises from your requirement in DESCRIPTION that the
> version of stats should be 3.4.0. Therefore, the solution to your problem
> depends on whether you really need this requirement on the version of stats
> or not: if you don't, simply lower the requirements to whatever you need;
> if you do, then this check error is valid, in the sense that you don't want
> users to use your package if they don't have the appropriate version of the
> stats package.
>
>
> > Note that if the latter applies, you should probably change your
> requirement on the version of R itself: currently you're requiring 3.1,
> which clashes with you're requiring 3.4 for stats.
>
> I would go slightly further say that it is "conceptually wrong"
> to use any version requirement on 'stats':  The version of
> 'stats' is *always* equal to the version of R.
>
> So really, do replace
>  "stats (>= 3.4.0)"
> by   "stats"
>
>
> Also, are you sure that R 3.1.0 is sufficient for dendroExtra, i.e.,
> can you check that, or did you at least check that for a
> slightly older version of dendroExtra in the past?
>
> The CRAN "robots" will not be able to check that, but as you see
> checks for the "last before release" version, in this case R 3.3.x,
> are made.
>
> To be save, you'd say  "R (>= 3.3.3)"
> whereas to be relaxed, you'd leave away any version requirement
> for R unless you know that you are using a relatively new
> feature of R (which includes 'stats', 'utils', etc).
>
> Best,
> Martin
>
> > Best,
> > Max
>
> >> Hi,
>
> >> recently, my first R package dendroExtra
> >>  was accepted on
> CRAN. I
> >> still must fix one problem that is given by CRAN checks
> >>  dendroExtra.html>.
>
> >> It says: Package required and available but unsuitable version:
> 'stats'.
>
> >> I see that probable I did not correctly import the stats package.
> If I
> >> remove the 'stats' package, I get an error in R CMD check. Is there
> any
> >> suggestion how to properly solve the issue? How to properly import
> stats
> >> package?
>
>
> >> Thank you for your help.
>
>
> >> Bests, Jernej
>
>

[[alternative HTML version deleted]]

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


Re: [R-pkg-devel] Package required and available but unsuitable version: 'stats'

2017-07-20 Thread Martin Maechler
> Maxime Turgeon 
> on Thu, 20 Jul 2017 15:51:18 + writes:

> Hi Jernej,
> The check errors you get are for older releases of R (3.3.2 and 3.3.3). 
The issue arises from your requirement in DESCRIPTION that the version of stats 
should be 3.4.0. Therefore, the solution to your problem depends on whether you 
really need this requirement on the version of stats or not: if you don't, 
simply lower the requirements to whatever you need; if you do, then this check 
error is valid, in the sense that you don't want users to use your package if 
they don't have the appropriate version of the stats package.


> Note that if the latter applies, you should probably change your 
requirement on the version of R itself: currently you're requiring 3.1, which 
clashes with you're requiring 3.4 for stats.

I would go slightly further say that it is "conceptually wrong"
to use any version requirement on 'stats':  The version of
'stats' is *always* equal to the version of R.

So really, do replace
 "stats (>= 3.4.0)"
by   "stats" 


Also, are you sure that R 3.1.0 is sufficient for dendroExtra, i.e.,
can you check that, or did you at least check that for a
slightly older version of dendroExtra in the past?

The CRAN "robots" will not be able to check that, but as you see
checks for the "last before release" version, in this case R 3.3.x,
are made.

To be save, you'd say  "R (>= 3.3.3)"
whereas to be relaxed, you'd leave away any version requirement
for R unless you know that you are using a relatively new
feature of R (which includes 'stats', 'utils', etc). 

Best,
Martin

> Best,
> Max

>> Hi,

>> recently, my first R package dendroExtra
>>  was accepted on CRAN. I
>> still must fix one problem that is given by CRAN checks
>> .

>> It says: Package required and available but unsuitable version: 'stats'.

>> I see that probable I did not correctly import the stats package. If I
>> remove the 'stats' package, I get an error in R CMD check. Is there any
>> suggestion how to properly solve the issue? How to properly import stats
>> package?


>> Thank you for your help.


>> Bests, Jernej

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


Re: [R-pkg-devel] Package required and available but unsuitable version: 'stats'

2017-07-20 Thread Dason Kurkiewicz
If you truly require stats>=3.4 you will need to also specify R>=3.4. If
you don't require that version of stats then just remove the version
specification.

You are getting errors only on r-oldrel which runs older versions of R so
it doesn't have access to stats>=3.4. With a specification on the minimum
version of R it would know not to run on those and you won't get the
errors.

-Dason Kurkiewicz

On Jul 20, 2017 11:43 AM, "Jernej Jevšenak" 
wrote:

> Hi,
>
> recently, my first R package dendroExtra
>  was accepted on CRAN. I
> still must fix one problem that is given by CRAN checks
> .
>
> It says: Package required and available but unsuitable version: 'stats'.
>
> I see that probable I did not correctly import the stats package. If I
> remove the 'stats' package, I get an error in R CMD check. Is there any
> suggestion how to properly solve the issue? How to properly import stats
> package?
>
>
> Thank you for your help.
>
>
> Bests, Jernej
>
> [[alternative HTML version deleted]]
>
> __
> R-package-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-package-devel
>

[[alternative HTML version deleted]]

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

Re: [R-pkg-devel] Package required and available but unsuitable version: 'stats'

2017-07-20 Thread Maxime Turgeon
Hi Jernej,


The check errors you get are for older releases of R (3.3.2 and 3.3.3). The 
issue arises from your requirement in DESCRIPTION that the version of stats 
should be 3.4.0. Therefore, the solution to your problem depends on whether you 
really need this requirement on the version of stats or not: if you don't, 
simply lower the requirements to whatever you need; if you do, then this check 
error is valid, in the sense that you don't want users to use your package if 
they don't have the appropriate version of the stats package.


Note that if the latter applies, you should probably change your requirement on 
the version of R itself: currently you're requiring 3.1, which clashes with 
you're requiring 3.4 for stats.


Best,

Max


From: R-package-devel  on behalf of 
Jernej Jev�enak 
Sent: July 20, 2017 2:01:31 AM
To: r-package-devel@r-project.org
Subject: [R-pkg-devel] Package required and available but unsuitable version: 
'stats'

Hi,

recently, my first R package dendroExtra
<https://cran.r-project.org/package=dendroExtra> was accepted on CRAN. I
still must fix one problem that is given by CRAN checks
<https://cran.r-project.org/web/checks/check_results_dendroExtra.html>.

It says: Package required and available but unsuitable version: 'stats'.

I see that probable I did not correctly import the stats package. If I
remove the 'stats' package, I get an error in R CMD check. Is there any
suggestion how to properly solve the issue? How to properly import stats
package?


Thank you for your help.


Bests, Jernej

[[alternative HTML version deleted]]

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

[[alternative HTML version deleted]]

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

[R-pkg-devel] Package required and available but unsuitable version: 'stats'

2017-07-20 Thread Jernej Jevšenak
Hi,

recently, my first R package dendroExtra
 was accepted on CRAN. I
still must fix one problem that is given by CRAN checks
.

It says: Package required and available but unsuitable version: 'stats'.

I see that probable I did not correctly import the stats package. If I
remove the 'stats' package, I get an error in R CMD check. Is there any
suggestion how to properly solve the issue? How to properly import stats
package?


Thank you for your help.


Bests, Jernej

[[alternative HTML version deleted]]

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