[Rd] Workspace Browser doesn't refresh (PR#13684)

2009-05-02 Thread payam . minoofar
Full_Name: Payam Minoofar
Version: R 2.9.0 GUI 1.28 Tiger build 32-bit (5395)
OS: 10.5.6
Submission from: (NULL) (173.51.1.126)


Hi,

This bug happens when I have the workspace browser open, then issue the "clear
workspace" command from the "workspace" menu, and then click the "refresh"
button in the workspace browser. All the objects in the workspace persist in the
browser even though the console echoes "empty workspace, nothing to be done". 

The same behavior persists if I manually remove an object via the console with
rm.

Payam

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


[Rd] installation of source package with empty man directory fails (PR#13685)

2009-05-02 Thread daniel . sabanesbove
Full_Name: Daniel Sabanes Bove
Version: 2.9.0
OS: openSUSE 11.1 (2.6.27.21)
Submission from: (NULL) (91.13.255.113)


- Situation:
Checking or installing an R package with existing but empty man directory fails.
Perhaps this is a feature, but then a nice error message like
"Subdirectory 'man' contains no help pages!"
would be great.

- Error:
* Installing *source* package ‘test’ ...
** R
** preparing package for lazy loading
** help
*** installing help indices
Fehler in `[.data.frame`(M, , 4) : undefined columns selected

- Reproduce:
Start an R session, create (at least) one test object and run package.skeleton.
Then R CMD check the test package.

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


[Rd] dir.create does not return a value (PR#13686)

2009-05-02 Thread r . hijmans
?dir.create  (part of the base package) says that:
"dir.create and Sys.chmod return a logical vector indicating which
operation succeeded for each of the files attempted"

However, on my system it returns nothing  (whether successful or not):

> dir.create(":::@!#!::")
> dir.create('b')


> sessionInfo()
R version 2.9.0 (2009-04-17)
i386-pc-mingw32

locale:
LC_COLLATE=English_United States.1252;LC_CTYPE=English_United
States.1252;LC_MONETARY=English_United
States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252

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

HTH, Robert

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


Re: [Rd] dir.create does not return a value (PR#13686)

2009-05-02 Thread Sundar Dorai-Raj
Not a bug. Try:

print(dir.create("foo"))

or

foo <- dir.create("foo")
foo

HTH,

--sundar

On Sat, May 2, 2009 at 5:10 AM,   wrote:
> ?dir.create  (part of the base package) says that:
> "dir.create and Sys.chmod return a logical vector indicating which
> operation succeeded for each of the files attempted"
>
> However, on my system it returns nothing  (whether successful or not):
>
>> dir.create(":::@!#!::")
>> dir.create('b')
>
>
>> sessionInfo()
> R version 2.9.0 (2009-04-17)
> i386-pc-mingw32
>
> locale:
> LC_COLLATE=English_United States.1252;LC_CTYPE=English_United
> States.1252;LC_MONETARY=English_United
> States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252
>
> attached base packages:
> [1] stats     graphics  grDevices utils     datasets  methods   base
>>
>
> HTH, Robert
>
> __
> R-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

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


Re: [Rd] dir.create does not return a value (PR#13686)

2009-05-02 Thread Sundar Dorai-Raj
However, there is a bug in ?dir.create:

"'dir.create' indicates failure if the dirwctory already  exiss."

> sessionInfo()
R version 2.9.0 (2009-04-17)
i386-apple-darwin8.11.1

locale:
en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8

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

On Sat, May 2, 2009 at 5:27 AM, Sundar Dorai-Raj  wrote:
> Not a bug. Try:
>
> print(dir.create("foo"))
>
> or
>
> foo <- dir.create("foo")
> foo
>
> HTH,
>
> --sundar
>
> On Sat, May 2, 2009 at 5:10 AM,   wrote:
>> ?dir.create  (part of the base package) says that:
>> "dir.create and Sys.chmod return a logical vector indicating which
>> operation succeeded for each of the files attempted"
>>
>> However, on my system it returns nothing  (whether successful or not):
>>
>>> dir.create(":::@!#!::")
>>> dir.create('b')
>>
>>
>>> sessionInfo()
>> R version 2.9.0 (2009-04-17)
>> i386-pc-mingw32
>>
>> locale:
>> LC_COLLATE=English_United States.1252;LC_CTYPE=English_United
>> States.1252;LC_MONETARY=English_United
>> States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252
>>
>> attached base packages:
>> [1] stats     graphics  grDevices utils     datasets  methods   base
>>>
>>
>> HTH, Robert
>>
>> __
>> R-devel@r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-devel
>>
>

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


Re: [Rd] dir.create does not return a value (PR#13686)

2009-05-02 Thread Robert Hijmans
Thanks, I am not sure if this is desirable (a function returning a
value only when 'asked' to do so), but I am intrigued. How can one put
such behaviour in an R function?

Robert


On Sat, May 2, 2009 at 8:27 PM, Sundar Dorai-Raj  wrote:
> Not a bug. Try:
>
> print(dir.create("foo"))
>
> or
>
> foo <- dir.create("foo")
> foo
>
> HTH,
>
> --sundar
>
> On Sat, May 2, 2009 at 5:10 AM,   wrote:
>> ?dir.create  (part of the base package) says that:
>> "dir.create and Sys.chmod return a logical vector indicating which
>> operation succeeded for each of the files attempted"
>>
>> However, on my system it returns nothing  (whether successful or not):
>>
>>> dir.create(":::@!#!::")
>>> dir.create('b')
>>
>>
>>> sessionInfo()
>> R version 2.9.0 (2009-04-17)
>> i386-pc-mingw32
>>
>> locale:
>> LC_COLLATE=English_United States.1252;LC_CTYPE=English_United
>> States.1252;LC_MONETARY=English_United
>> States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252
>>
>> attached base packages:
>> [1] stats     graphics  grDevices utils     datasets  methods   base
>>>
>>
>> HTH, Robert
>>
>> __
>> R-devel@r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-devel
>>
>

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


Re: [Rd] dir.create does not return a value (PR#13686)

2009-05-02 Thread Josh Ulrich
Robert,

The function always returns a value, but it doesn't print the value.
Look at the source code for dir.create(), then read ?invisible.

Best,
Josh
--
http://www.fosstrading.com



On Sat, May 2, 2009 at 7:41 AM, Robert Hijmans  wrote:
> Thanks, I am not sure if this is desirable (a function returning a
> value only when 'asked' to do so), but I am intrigued. How can one put
> such behaviour in an R function?
>
> Robert
>
>
> On Sat, May 2, 2009 at 8:27 PM, Sundar Dorai-Raj  wrote:
>> Not a bug. Try:
>>
>> print(dir.create("foo"))
>>
>> or
>>
>> foo <- dir.create("foo")
>> foo
>>
>> HTH,
>>
>> --sundar
>>
>> On Sat, May 2, 2009 at 5:10 AM,   wrote:
>>> ?dir.create  (part of the base package) says that:
>>> "dir.create and Sys.chmod return a logical vector indicating which
>>> operation succeeded for each of the files attempted"
>>>
>>> However, on my system it returns nothing  (whether successful or not):
>>>
 dir.create(":::@!#!::")
 dir.create('b')
>>>
>>>
 sessionInfo()
>>> R version 2.9.0 (2009-04-17)
>>> i386-pc-mingw32
>>>
>>> locale:
>>> LC_COLLATE=English_United States.1252;LC_CTYPE=English_United
>>> States.1252;LC_MONETARY=English_United
>>> States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252
>>>
>>> attached base packages:
>>> [1] stats     graphics  grDevices utils     datasets  methods   base

>>>
>>> HTH, Robert
>>>
>>> __
>>> R-devel@r-project.org mailing list
>>> https://stat.ethz.ch/mailman/listinfo/r-devel
>>>
>>
>
> __
> R-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

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


Re: [Rd] installation of source package with empty man directory fails (PR#13685)

2009-05-02 Thread Uwe Ligges

This is already fixed in R-patched.

Please read the FAQs about bugs and try the recent R-patched or R-devel 
version.


Best,
Uwe Ligges



daniel.sabanesb...@gmx.net wrote:

Full_Name: Daniel Sabanes Bove
Version: 2.9.0
OS: openSUSE 11.1 (2.6.27.21)
Submission from: (NULL) (91.13.255.113)


- Situation:
Checking or installing an R package with existing but empty man directory fails.
Perhaps this is a feature, but then a nice error message like
"Subdirectory 'man' contains no help pages!"
would be great.

- Error:
* Installing *source* package ‘test’ ...
** R
** preparing package for lazy loading
** help
*** installing help indices
Fehler in `[.data.frame`(M, , 4) : undefined columns selected

- Reproduce:
Start an R session, create (at least) one test object and run package.skeleton.
Then R CMD check the test package.

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


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


Re: [Rd] installation of source package with empty man directory (PR#13687)

2009-05-02 Thread ligges
This is already fixed in R-patched.

Please read the FAQs about bugs and try the recent R-patched or R-devel 
version.

Best,
Uwe Ligges



daniel.sabanesb...@gmx.net wrote:
> Full_Name: Daniel Sabanes Bove
> Version: 2.9.0
> OS: openSUSE 11.1 (2.6.27.21)
> Submission from: (NULL) (91.13.255.113)
> 
> 
> - Situation:
> Checking or installing an R package with existing but empty man directory 
> fails.
> Perhaps this is a feature, but then a nice error message like
> "Subdirectory 'man' contains no help pages!"
> would be great.
> 
> - Error:
> * Installing *source* package ‘test’ ...
> ** R
> ** preparing package for lazy loading
> ** help
> *** installing help indices
> Fehler in `[.data.frame`(M, , 4) : undefined columns selected
> 
> - Reproduce:
> Start an R session, create (at least) one test object and run 
> package.skeleton.
> Then R CMD check the test package.
> 
> __
> R-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel

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


[Rd] set.seed and /dev/random

2009-05-02 Thread Saptarshi Guha
Hello,
In ?set.seed I notice that a seed is created from the system time.
Thus if two machines were (hypothetically) running for the same time
and R was started simultaneously on both, the would have the same
seeds (correct?).

I assume reading from /dev/random would be different for both of these
machines, so my question is why not use an integer read from
/dev/random to create the seed?

Would it be a portability issue?
I must admit I have very little idea about RNGs, so my question is
possibly very naive.

Thank you
Saptarshi

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


Re: [Rd] set.seed and /dev/random

2009-05-02 Thread Dirk Eddelbuettel

On 2 May 2009 at 18:53, Saptarshi Guha wrote:
| Hello,
| In ?set.seed I notice that a seed is created from the system time.
| Thus if two machines were (hypothetically) running for the same time
| and R was started simultaneously on both, the would have the same
| seeds (correct?).
| 
| I assume reading from /dev/random would be different for both of these
| machines, so my question is why not use an integer read from
| /dev/random to create the seed?

Some folks do. But do read the fine print about entropy etc.  

An alternnative is provided by the random package on CRAN (slightly
re-indented below).

Dirk


R> library(help=random)

Information on package 'random'

Description:

Package:   random
Version:   0.2.0
Date:  $Date: 2009-01-03 11:45:17 -0600 (Sat, 03 Jan 2009) $
Author:Dirk Eddelbuettel 
Maintainer:Dirk Eddelbuettel 
Title: True random numbers using random.org
Description:   This package provides an interface to the true random number
   service provided by the random.org website created by Mads
   Haahr.  The random.org web service samples atmospheric noise
   via radio tuned to an unused broadcasting frequency together
   with a skew correction algorithm due to John von Neumann.
   More background is available in the included vignette based on
   an essay by Mads Haahr. In its current form, the package
   offers functions to retrieve random integers, randomized
   sequences and random strings.
Depends:   R (>= 2.8.0)
License:   GPL Version 2
URL:   http://www.random.org
Built: R 2.8.1; ; 2009-01-03 11:46:25; unix

Index:

random  True random numbers from random.org

Further information is available in the following vignettes in directory
'/usr/local/lib/R/site-library/random/doc':

random-essay: random.org: Introduction to Randomness and Random Numbers 
(source, pdf)
random-intro: random: An R package for true random numbers (source, pdf)

R> 

 
| Would it be a portability issue?
| I must admit I have very little idea about RNGs, so my question is
| possibly very naive.
| 
| Thank you
| Saptarshi
| 
| __
| R-devel@r-project.org mailing list
| https://stat.ethz.ch/mailman/listinfo/r-devel

-- 
Three out of two people have difficulties with fractions.

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