Re: [R] Error with installed.packages with R 3.4.0 on Windows

2017-05-22 Thread Martin Morgan

On 05/22/2017 05:10 AM, Patrick Connolly wrote:

On Fri, 28-Apr-2017 at 07:04PM +0200, peter dalgaard wrote:

|>
|> > On 28 Apr 2017, at 12:08 , Duncan Murdoch  wrote:
|> >
|> > On 28/04/2017 4:45 AM, Thierry Onkelinx wrote:
|> >> Dear Peter,
|> >>
|> >> It actually breaks install.packages(). So it is not that innocent.
|> >
|> > I don't think he meant that it is harmless, he meant that the fix is easy, 
and is in place in R-patched and R-devel.  You should use R-patched and you won't 
have the problem.
|>
|> Read more carefully: I said that the _fix_ is harmless for this case, but 
might not be so in general.
|>
|> -pd


Apparently it isn't harmless.


install.packages("withr")

Error in readRDS(dest) : error reading from connection


that seems like a plain-old network connectivity issue, or perhaps an 
issue with the CRAN mirror you're using. Can you debug on your end, e.g,.


  options(error=recover)
  install.packages("withr")
  ...

then select the 'frame' where the error occurs, look around

  ls()

find the value of 'dest', and e.g., try to open dest in your  browser.

Martin Morgan







sessionInfo()

R version 3.4.0 Patched (2017-05-19 r72713)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 14.04.5 LTS

Matrix products: default
BLAS: /home/hrapgc/local/R-patched/lib/libRblas.so
LAPACK: /home/hrapgc/local/R-patched/lib/libRlapack.so

locale:
 [1] LC_CTYPE=en_NZ.UTF-8   LC_NUMERIC=C
 [3] LC_TIME=en_NZ.UTF-8LC_COLLATE=en_NZ.UTF-8
 [5] LC_MONETARY=en_NZ.UTF-8LC_MESSAGES=en_NZ.UTF-8
 [7] LC_PAPER=en_NZ.UTF-8   LC_NAME=C
 [9] LC_ADDRESS=C   LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_NZ.UTF-8 LC_IDENTIFICATION=C

attached base packages:
[1] grDevices utils stats graphics  methods   base

other attached packages:
[1] lattice_0.20-35

loaded via a namespace (and not attached):
[1] compiler_3.4.0 tools_3.4.0grid_3.4.0




Has anyone a workaround?




This email message may contain legally privileged and/or...{{dropped:2}}

__
R-help@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.


Re: [R] Error with installed.packages with R 3.4.0 on Windows

2017-05-22 Thread Patrick Connolly
On Fri, 28-Apr-2017 at 07:04PM +0200, peter dalgaard wrote:

|> 
|> > On 28 Apr 2017, at 12:08 , Duncan Murdoch  wrote:
|> > 
|> > On 28/04/2017 4:45 AM, Thierry Onkelinx wrote:
|> >> Dear Peter,
|> >> 
|> >> It actually breaks install.packages(). So it is not that innocent.
|> > 
|> > I don't think he meant that it is harmless, he meant that the fix is easy, 
and is in place in R-patched and R-devel.  You should use R-patched and you 
won't have the problem.
|> 
|> Read more carefully: I said that the _fix_ is harmless for this case, but 
might not be so in general.
|> 
|> -pd


Apparently it isn't harmless.  

> install.packages("withr")
Error in readRDS(dest) : error reading from connection
>

> 
> sessionInfo()
R version 3.4.0 Patched (2017-05-19 r72713)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 14.04.5 LTS

Matrix products: default
BLAS: /home/hrapgc/local/R-patched/lib/libRblas.so
LAPACK: /home/hrapgc/local/R-patched/lib/libRlapack.so

locale:
 [1] LC_CTYPE=en_NZ.UTF-8   LC_NUMERIC=C  
 [3] LC_TIME=en_NZ.UTF-8LC_COLLATE=en_NZ.UTF-8
 [5] LC_MONETARY=en_NZ.UTF-8LC_MESSAGES=en_NZ.UTF-8   
 [7] LC_PAPER=en_NZ.UTF-8   LC_NAME=C 
 [9] LC_ADDRESS=C   LC_TELEPHONE=C
[11] LC_MEASUREMENT=en_NZ.UTF-8 LC_IDENTIFICATION=C   

attached base packages:
[1] grDevices utils stats graphics  methods   base 

other attached packages:
[1] lattice_0.20-35

loaded via a namespace (and not attached):
[1] compiler_3.4.0 tools_3.4.0grid_3.4.0
> 

Has anyone a workaround?

-- 
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.   
   ___Patrick Connolly   
 {~._.~}   Great minds discuss ideas
 _( Y )_ Average minds discuss events 
(:_~*~_:)  Small minds discuss people  
 (_)-(_)  . Eleanor Roosevelt
  
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.

__
R-help@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.


Re: [R] Error with installed.packages with R 3.4.0 on Windows

2017-04-29 Thread Jean-Claude Arbaut
Thank you all for the help. I will try the patch.

Best regards,

Jean-Claude Arbaut

2017-04-29 0:33 GMT+02:00 Duncan Murdoch :

> On 28/04/2017 5:58 PM, Uwe Ligges wrote:
>
>>
>>
>> On 28.04.2017 19:10, Dimitri Liakhovitski wrote:
>>
>>> When I click on "r patched snapshot build" here
>>> , it take me here
>>>  , it
>>> says: Download R-3.3.3 Patched build for Windows
>>> 
>>> However, I am unclear how can one get to the patched 3.4.0 version?
>>>
>>
>> If you are on Windows, you did the roight things, but the page has to be
>> updated.CCing Duncan who maintains these pages.
>>
>
> Thanks, I missed that update.  It is now building 3.4.0-patched, so that
> version should be available on the mirrors in a few hours.
>
> Duncan Murdoch
>
>
>> Best,
>> Uwe
>>
>>
>>
>> Thank you!
>>>
>>> On Fri, Apr 28, 2017 at 7:58 AM, Uwe Ligges
>>> >> > wrote:
>>>
>>>
>>>
>>> On 28.04.2017 10:45, Thierry Onkelinx wrote:
>>>
>>> Dear Peter,
>>>
>>> It actually breaks install.packages(). So it is not that
>>> innocent.
>>>
>>>
>>> And hence, as Peter exoplained, it is already fixed inn R-patched,
>>> thanks to Tomas Kalibera.
>>>
>>> Best,
>>> Uwe Ligges
>>>
>>>
>>>
>>>
>>>
>>>
>>> Best regards,
>>>
>>> Thierry
>>>
>>>
>>> Op 28 apr. 2017 10:36 a.m. schreef "peter dalgaard"
>>> >:
>>>
>>> Yes, we noticed this in the last days of the code freeze before
>>> release and
>>> shied away from inserting a workaround, partly because we
>>> couldn't see what
>>> the root of the problem might be.
>>>
>>> For the purposes of installed.packages it is relatively harmless
>>> to treat
>>> the NA condition as FALSE, since it is just a matter of whether
>>> a cache is
>>> valid. I.e., it might cause an unnecessary cache rebuild. For
>>> other
>>> situations it might be more of an issue.
>>>
>>> The workaround (NA -> FALSE, basically) is in place in R-patched
>>> and
>>> R-devel.
>>>
>>> -pd
>>>
>>> On 28 Apr 2017, at 07:47 , Thierry Onkelinx
>>> >
>>>
>>> wrote:
>>>
>>>
>>> We have several computers with the same problem.
>>>
>>> Op 28 apr. 2017 7:25 a.m. schreef "Jean-Claude Arbaut"
>>> 
>>> :
>>>
>>> Hello,
>>>
>>> I am currently getting a strange error when I call
>>> installed.packages():
>>>
>>> Error in if (file.exists(dest) && file.mtime(dest) >
>>> file.mtime(lib) &&  :
>>>  missing value where TRUE/FALSE needed
>>> Calls: installed.packages
>>>
>>>
>>> I am working with R 3.4.0 on Windows. I didn't get this
>>> error with R
>>>
>>> 3.3.3.
>>>
>>> Apparently, file.mtime() is returning NA well applied to a
>>> directory, and
>>> this causes the entire && expression to be NA, then the "if"
>>> fails because
>>> it needs either T or F.
>>> The source of "installed.packages" seems to be roughly the
>>> same as in R
>>> 3.3.3, so I wonder if there have been other changes in R,
>>> maybe the
>>>
>>> logical
>>>
>>> operators, that would make this function fail.
>>>
>>> Any idea?
>>>
>>> Best regards,
>>>
>>> Jean-Claude Arbaut
>>>
>>>[[alternative HTML version deleted]]
>>>
>>> __
>>> R-help@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]]
>>>
>>> __
>>> R-help@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

Re: [R] Error with installed.packages with R 3.4.0 on Windows

2017-04-28 Thread Duncan Murdoch

On 28/04/2017 5:58 PM, Uwe Ligges wrote:



On 28.04.2017 19:10, Dimitri Liakhovitski wrote:

When I click on "r patched snapshot build" here
, it take me here
 , it
says: Download R-3.3.3 Patched build for Windows

However, I am unclear how can one get to the patched 3.4.0 version?


If you are on Windows, you did the roight things, but the page has to be
updated.CCing Duncan who maintains these pages.


Thanks, I missed that update.  It is now building 3.4.0-patched, so that 
version should be available on the mirrors in a few hours.


Duncan Murdoch



Best,
Uwe




Thank you!

On Fri, Apr 28, 2017 at 7:58 AM, Uwe Ligges
> wrote:



On 28.04.2017 10:45, Thierry Onkelinx wrote:

Dear Peter,

It actually breaks install.packages(). So it is not that innocent.


And hence, as Peter exoplained, it is already fixed inn R-patched,
thanks to Tomas Kalibera.

Best,
Uwe Ligges






Best regards,

Thierry


Op 28 apr. 2017 10:36 a.m. schreef "peter dalgaard"
>:

Yes, we noticed this in the last days of the code freeze before
release and
shied away from inserting a workaround, partly because we
couldn't see what
the root of the problem might be.

For the purposes of installed.packages it is relatively harmless
to treat
the NA condition as FALSE, since it is just a matter of whether
a cache is
valid. I.e., it might cause an unnecessary cache rebuild. For other
situations it might be more of an issue.

The workaround (NA -> FALSE, basically) is in place in R-patched and
R-devel.

-pd

On 28 Apr 2017, at 07:47 , Thierry Onkelinx
>

wrote:


We have several computers with the same problem.

Op 28 apr. 2017 7:25 a.m. schreef "Jean-Claude Arbaut"

:

Hello,

I am currently getting a strange error when I call
installed.packages():

Error in if (file.exists(dest) && file.mtime(dest) >
file.mtime(lib) &&  :
 missing value where TRUE/FALSE needed
Calls: installed.packages


I am working with R 3.4.0 on Windows. I didn't get this
error with R

3.3.3.

Apparently, file.mtime() is returning NA well applied to a
directory, and
this causes the entire && expression to be NA, then the "if"
fails because
it needs either T or F.
The source of "installed.packages" seems to be roughly the
same as in R
3.3.3, so I wonder if there have been other changes in R,
maybe the

logical

operators, that would make this function fail.

Any idea?

Best regards,

Jean-Claude Arbaut

   [[alternative HTML version deleted]]

__
R-help@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]]

__
R-help@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.


--
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501 
Office: A 4.23
Email: pd@cbs.dk   Priv:
pda...@gmail.com 

[[alternative HTML version deleted]]

__
R-help@r-project.org  mailing list
-- To UNSUBSCRIBE and more, see

Re: [R] Error with installed.packages with R 3.4.0 on Windows

2017-04-28 Thread Uwe Ligges



On 28.04.2017 19:10, Dimitri Liakhovitski wrote:

When I click on "r patched snapshot build" here
, it take me here
 , it
says: Download R-3.3.3 Patched build for Windows

However, I am unclear how can one get to the patched 3.4.0 version?


If you are on Windows, you did the roight things, but the page has to be 
updated.CCing Duncan who maintains these pages.


Best,
Uwe




Thank you!

On Fri, Apr 28, 2017 at 7:58 AM, Uwe Ligges
> wrote:



On 28.04.2017 10:45, Thierry Onkelinx wrote:

Dear Peter,

It actually breaks install.packages(). So it is not that innocent.


And hence, as Peter exoplained, it is already fixed inn R-patched,
thanks to Tomas Kalibera.

Best,
Uwe Ligges






Best regards,

Thierry


Op 28 apr. 2017 10:36 a.m. schreef "peter dalgaard"
>:

Yes, we noticed this in the last days of the code freeze before
release and
shied away from inserting a workaround, partly because we
couldn't see what
the root of the problem might be.

For the purposes of installed.packages it is relatively harmless
to treat
the NA condition as FALSE, since it is just a matter of whether
a cache is
valid. I.e., it might cause an unnecessary cache rebuild. For other
situations it might be more of an issue.

The workaround (NA -> FALSE, basically) is in place in R-patched and
R-devel.

-pd

On 28 Apr 2017, at 07:47 , Thierry Onkelinx
>

wrote:


We have several computers with the same problem.

Op 28 apr. 2017 7:25 a.m. schreef "Jean-Claude Arbaut"

:

Hello,

I am currently getting a strange error when I call
installed.packages():

Error in if (file.exists(dest) && file.mtime(dest) >
file.mtime(lib) &&  :
 missing value where TRUE/FALSE needed
Calls: installed.packages


I am working with R 3.4.0 on Windows. I didn't get this
error with R

3.3.3.

Apparently, file.mtime() is returning NA well applied to a
directory, and
this causes the entire && expression to be NA, then the "if"
fails because
it needs either T or F.
The source of "installed.packages" seems to be roughly the
same as in R
3.3.3, so I wonder if there have been other changes in R,
maybe the

logical

operators, that would make this function fail.

Any idea?

Best regards,

Jean-Claude Arbaut

   [[alternative HTML version deleted]]

__
R-help@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]]

__
R-help@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.


--
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501 
Office: A 4.23
Email: pd@cbs.dk   Priv:
pda...@gmail.com 

[[alternative HTML version deleted]]

__
R-help@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

Re: [R] Error with installed.packages with R 3.4.0 on Windows

2017-04-28 Thread peter dalgaard

> On 28 Apr 2017, at 12:08 , Duncan Murdoch  wrote:
> 
> On 28/04/2017 4:45 AM, Thierry Onkelinx wrote:
>> Dear Peter,
>> 
>> It actually breaks install.packages(). So it is not that innocent.
> 
> I don't think he meant that it is harmless, he meant that the fix is easy, 
> and is in place in R-patched and R-devel.  You should use R-patched and you 
> won't have the problem.

Read more carefully: I said that the _fix_ is harmless for this case, but might 
not be so in general.

-pd

> 
> More generally, there's a lot more variety of systems in the wild than on our 
> test machines, so we really do rely on people testing things in the 
> alpha/beta/rc phase.  In this case we saw the error too late to fix it (as I 
> recall, it was very late in rc).  If more people had tested, we might have 
> found it earlier.
> 
> Duncan Murdoch
> 
>> 
>> Best regards,
>> 
>> Thierry
>> 
>> 
>> Op 28 apr. 2017 10:36 a.m. schreef "peter dalgaard" :
>> 
>> Yes, we noticed this in the last days of the code freeze before release and
>> shied away from inserting a workaround, partly because we couldn't see what
>> the root of the problem might be.
>> 
>> For the purposes of installed.packages it is relatively harmless to treat
>> the NA condition as FALSE, since it is just a matter of whether a cache is
>> valid. I.e., it might cause an unnecessary cache rebuild. For other
>> situations it might be more of an issue.
>> 
>> The workaround (NA -> FALSE, basically) is in place in R-patched and
>> R-devel.
>> 
>> -pd
>> 
>>> On 28 Apr 2017, at 07:47 , Thierry Onkelinx 
>> wrote:
>>> 
>>> We have several computers with the same problem.
>>> 
>>> Op 28 apr. 2017 7:25 a.m. schreef "Jean-Claude Arbaut" >> :
>>> 
>>> Hello,
>>> 
>>> I am currently getting a strange error when I call installed.packages():
>>> 
>>> Error in if (file.exists(dest) && file.mtime(dest) > file.mtime(lib) &&  :
>>> missing value where TRUE/FALSE needed
>>> Calls: installed.packages
>>> 
>>> 
>>> I am working with R 3.4.0 on Windows. I didn't get this error with R
>> 3.3.3.
>>> Apparently, file.mtime() is returning NA well applied to a directory, and
>>> this causes the entire && expression to be NA, then the "if" fails because
>>> it needs either T or F.
>>> The source of "installed.packages" seems to be roughly the same as in R
>>> 3.3.3, so I wonder if there have been other changes in R, maybe the
>> logical
>>> operators, that would make this function fail.
>>> 
>>> Any idea?
>>> 
>>> Best regards,
>>> 
>>> Jean-Claude Arbaut
>>> 
>>>   [[alternative HTML version deleted]]
>>> 
>>> __
>>> R-help@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]]
>>> 
>>> __
>>> R-help@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.
>> 
>> --
>> Peter Dalgaard, Professor,
>> Center for Statistics, Copenhagen Business School
>> Solbjerg Plads 3, 2000 Frederiksberg, Denmark
>> Phone: (+45)38153501
>> Office: A 4.23
>> Email: pd@cbs.dk  Priv: pda...@gmail.com
>> 
>>  [[alternative HTML version deleted]]
>> 
>> __
>> R-help@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.

-- 
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Office: A 4.23
Email: pd@cbs.dk  Priv: pda...@gmail.com

__
R-help@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.


Re: [R] Error with installed.packages with R 3.4.0 on Windows

2017-04-28 Thread Duncan Murdoch

On 28/04/2017 4:45 AM, Thierry Onkelinx wrote:

Dear Peter,

It actually breaks install.packages(). So it is not that innocent.


I don't think he meant that it is harmless, he meant that the fix is 
easy, and is in place in R-patched and R-devel.  You should use 
R-patched and you won't have the problem.


More generally, there's a lot more variety of systems in the wild than 
on our test machines, so we really do rely on people testing things in 
the alpha/beta/rc phase.  In this case we saw the error too late to fix 
it (as I recall, it was very late in rc).  If more people had tested, we 
might have found it earlier.


Duncan Murdoch



Best regards,

Thierry


Op 28 apr. 2017 10:36 a.m. schreef "peter dalgaard" :

Yes, we noticed this in the last days of the code freeze before release and
shied away from inserting a workaround, partly because we couldn't see what
the root of the problem might be.

For the purposes of installed.packages it is relatively harmless to treat
the NA condition as FALSE, since it is just a matter of whether a cache is
valid. I.e., it might cause an unnecessary cache rebuild. For other
situations it might be more of an issue.

The workaround (NA -> FALSE, basically) is in place in R-patched and
R-devel.

-pd


On 28 Apr 2017, at 07:47 , Thierry Onkelinx 

wrote:


We have several computers with the same problem.

Op 28 apr. 2017 7:25 a.m. schreef "Jean-Claude Arbaut"  file.mtime(lib) &&  :
 missing value where TRUE/FALSE needed
Calls: installed.packages


I am working with R 3.4.0 on Windows. I didn't get this error with R

3.3.3.

Apparently, file.mtime() is returning NA well applied to a directory, and
this causes the entire && expression to be NA, then the "if" fails because
it needs either T or F.
The source of "installed.packages" seems to be roughly the same as in R
3.3.3, so I wonder if there have been other changes in R, maybe the

logical

operators, that would make this function fail.

Any idea?

Best regards,

Jean-Claude Arbaut

   [[alternative HTML version deleted]]

__
R-help@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]]

__
R-help@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.


--
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Office: A 4.23
Email: pd@cbs.dk  Priv: pda...@gmail.com

[[alternative HTML version deleted]]

__
R-help@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.



__
R-help@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.


Re: [R] Error with installed.packages with R 3.4.0 on Windows

2017-04-28 Thread Dimitri Liakhovitski
When I click on "r patched snapshot build" here
, it take me here
 , it says: Download
R-3.3.3 Patched build for Windows

However, I am unclear how can one get to the patched 3.4.0 version?
Thank you!

On Fri, Apr 28, 2017 at 7:58 AM, Uwe Ligges  wrote:

>
>
> On 28.04.2017 10:45, Thierry Onkelinx wrote:
>
>> Dear Peter,
>>
>> It actually breaks install.packages(). So it is not that innocent.
>>
>
> And hence, as Peter exoplained, it is already fixed inn R-patched, thanks
> to Tomas Kalibera.
>
> Best,
> Uwe Ligges
>
>
>
>
>
>
> Best regards,
>>
>> Thierry
>>
>>
>> Op 28 apr. 2017 10:36 a.m. schreef "peter dalgaard" :
>>
>> Yes, we noticed this in the last days of the code freeze before release
>> and
>> shied away from inserting a workaround, partly because we couldn't see
>> what
>> the root of the problem might be.
>>
>> For the purposes of installed.packages it is relatively harmless to treat
>> the NA condition as FALSE, since it is just a matter of whether a cache is
>> valid. I.e., it might cause an unnecessary cache rebuild. For other
>> situations it might be more of an issue.
>>
>> The workaround (NA -> FALSE, basically) is in place in R-patched and
>> R-devel.
>>
>> -pd
>>
>> On 28 Apr 2017, at 07:47 , Thierry Onkelinx 
>>>
>> wrote:
>>
>>>
>>> We have several computers with the same problem.
>>>
>>> Op 28 apr. 2017 7:25 a.m. schreef "Jean-Claude Arbaut" <
>>> arbau...@gmail.com
>>> :
>>>
>>> Hello,
>>>
>>> I am currently getting a strange error when I call installed.packages():
>>>
>>> Error in if (file.exists(dest) && file.mtime(dest) > file.mtime(lib) &&
>>> :
>>>  missing value where TRUE/FALSE needed
>>> Calls: installed.packages
>>>
>>>
>>> I am working with R 3.4.0 on Windows. I didn't get this error with R
>>>
>> 3.3.3.
>>
>>> Apparently, file.mtime() is returning NA well applied to a directory, and
>>> this causes the entire && expression to be NA, then the "if" fails
>>> because
>>> it needs either T or F.
>>> The source of "installed.packages" seems to be roughly the same as in R
>>> 3.3.3, so I wonder if there have been other changes in R, maybe the
>>>
>> logical
>>
>>> operators, that would make this function fail.
>>>
>>> Any idea?
>>>
>>> Best regards,
>>>
>>> Jean-Claude Arbaut
>>>
>>>[[alternative HTML version deleted]]
>>>
>>> __
>>> R-help@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]]
>>>
>>> __
>>> R-help@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.
>>>
>>
>> --
>> Peter Dalgaard, Professor,
>> Center for Statistics, Copenhagen Business School
>> Solbjerg Plads 3, 2000 Frederiksberg, Denmark
>> Phone: (+45)38153501
>> Office: A 4.23
>> Email: pd@cbs.dk  Priv: pda...@gmail.com
>>
>> [[alternative HTML version deleted]]
>>
>> __
>> R-help@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/posti
>> ng-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
>>
>>
> __
> R-help@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/posti
> ng-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>



-- 
Dimitri Liakhovitski

[[alternative HTML version deleted]]

__
R-help@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.


Re: [R] Error with installed.packages with R 3.4.0 on Windows

2017-04-28 Thread Uwe Ligges



On 28.04.2017 10:45, Thierry Onkelinx wrote:

Dear Peter,

It actually breaks install.packages(). So it is not that innocent.


And hence, as Peter exoplained, it is already fixed inn R-patched, 
thanks to Tomas Kalibera.


Best,
Uwe Ligges






Best regards,

Thierry


Op 28 apr. 2017 10:36 a.m. schreef "peter dalgaard" :

Yes, we noticed this in the last days of the code freeze before release and
shied away from inserting a workaround, partly because we couldn't see what
the root of the problem might be.

For the purposes of installed.packages it is relatively harmless to treat
the NA condition as FALSE, since it is just a matter of whether a cache is
valid. I.e., it might cause an unnecessary cache rebuild. For other
situations it might be more of an issue.

The workaround (NA -> FALSE, basically) is in place in R-patched and
R-devel.

-pd


On 28 Apr 2017, at 07:47 , Thierry Onkelinx 

wrote:


We have several computers with the same problem.

Op 28 apr. 2017 7:25 a.m. schreef "Jean-Claude Arbaut"  file.mtime(lib) &&  :
 missing value where TRUE/FALSE needed
Calls: installed.packages


I am working with R 3.4.0 on Windows. I didn't get this error with R

3.3.3.

Apparently, file.mtime() is returning NA well applied to a directory, and
this causes the entire && expression to be NA, then the "if" fails because
it needs either T or F.
The source of "installed.packages" seems to be roughly the same as in R
3.3.3, so I wonder if there have been other changes in R, maybe the

logical

operators, that would make this function fail.

Any idea?

Best regards,

Jean-Claude Arbaut

   [[alternative HTML version deleted]]

__
R-help@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]]

__
R-help@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.


--
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Office: A 4.23
Email: pd@cbs.dk  Priv: pda...@gmail.com

[[alternative HTML version deleted]]

__
R-help@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.



__
R-help@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.


Re: [R] Error with installed.packages with R 3.4.0 on Windows

2017-04-28 Thread Thierry Onkelinx
Dear Peter,

It actually breaks install.packages(). So it is not that innocent.

Best regards,

Thierry


Op 28 apr. 2017 10:36 a.m. schreef "peter dalgaard" :

Yes, we noticed this in the last days of the code freeze before release and
shied away from inserting a workaround, partly because we couldn't see what
the root of the problem might be.

For the purposes of installed.packages it is relatively harmless to treat
the NA condition as FALSE, since it is just a matter of whether a cache is
valid. I.e., it might cause an unnecessary cache rebuild. For other
situations it might be more of an issue.

The workaround (NA -> FALSE, basically) is in place in R-patched and
R-devel.

-pd

> On 28 Apr 2017, at 07:47 , Thierry Onkelinx 
wrote:
>
> We have several computers with the same problem.
>
> Op 28 apr. 2017 7:25 a.m. schreef "Jean-Claude Arbaut" :
>
> Hello,
>
> I am currently getting a strange error when I call installed.packages():
>
> Error in if (file.exists(dest) && file.mtime(dest) > file.mtime(lib) &&  :
>  missing value where TRUE/FALSE needed
> Calls: installed.packages
>
>
> I am working with R 3.4.0 on Windows. I didn't get this error with R
3.3.3.
> Apparently, file.mtime() is returning NA well applied to a directory, and
> this causes the entire && expression to be NA, then the "if" fails because
> it needs either T or F.
> The source of "installed.packages" seems to be roughly the same as in R
> 3.3.3, so I wonder if there have been other changes in R, maybe the
logical
> operators, that would make this function fail.
>
> Any idea?
>
> Best regards,
>
> Jean-Claude Arbaut
>
>[[alternative HTML version deleted]]
>
> __
> R-help@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]]
>
> __
> R-help@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.

--
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Office: A 4.23
Email: pd@cbs.dk  Priv: pda...@gmail.com

[[alternative HTML version deleted]]

__
R-help@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.


Re: [R] Error with installed.packages with R 3.4.0 on Windows

2017-04-28 Thread peter dalgaard
Yes, we noticed this in the last days of the code freeze before release and 
shied away from inserting a workaround, partly because we couldn't see what the 
root of the problem might be. 

For the purposes of installed.packages it is relatively harmless to treat the 
NA condition as FALSE, since it is just a matter of whether a cache is valid. 
I.e., it might cause an unnecessary cache rebuild. For other situations it 
might be more of an issue.

The workaround (NA -> FALSE, basically) is in place in R-patched and R-devel.

-pd

> On 28 Apr 2017, at 07:47 , Thierry Onkelinx  wrote:
> 
> We have several computers with the same problem.
> 
> Op 28 apr. 2017 7:25 a.m. schreef "Jean-Claude Arbaut" :
> 
> Hello,
> 
> I am currently getting a strange error when I call installed.packages():
> 
> Error in if (file.exists(dest) && file.mtime(dest) > file.mtime(lib) &&  :
>  missing value where TRUE/FALSE needed
> Calls: installed.packages
> 
> 
> I am working with R 3.4.0 on Windows. I didn't get this error with R 3.3.3.
> Apparently, file.mtime() is returning NA well applied to a directory, and
> this causes the entire && expression to be NA, then the "if" fails because
> it needs either T or F.
> The source of "installed.packages" seems to be roughly the same as in R
> 3.3.3, so I wonder if there have been other changes in R, maybe the logical
> operators, that would make this function fail.
> 
> Any idea?
> 
> Best regards,
> 
> Jean-Claude Arbaut
> 
>[[alternative HTML version deleted]]
> 
> __
> R-help@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]]
> 
> __
> R-help@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.

-- 
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Office: A 4.23
Email: pd@cbs.dk  Priv: pda...@gmail.com

__
R-help@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.


Re: [R] Error with installed.packages with R 3.4.0 on Windows

2017-04-27 Thread Thierry Onkelinx
We have several computers with the same problem.

Op 28 apr. 2017 7:25 a.m. schreef "Jean-Claude Arbaut" :

Hello,

I am currently getting a strange error when I call installed.packages():

Error in if (file.exists(dest) && file.mtime(dest) > file.mtime(lib) &&  :
  missing value where TRUE/FALSE needed
Calls: installed.packages


I am working with R 3.4.0 on Windows. I didn't get this error with R 3.3.3.
Apparently, file.mtime() is returning NA well applied to a directory, and
this causes the entire && expression to be NA, then the "if" fails because
it needs either T or F.
The source of "installed.packages" seems to be roughly the same as in R
3.3.3, so I wonder if there have been other changes in R, maybe the logical
operators, that would make this function fail.

Any idea?

Best regards,

Jean-Claude Arbaut

[[alternative HTML version deleted]]

__
R-help@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]]

__
R-help@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.