Re: [R] running Rmpi with SGE on a cluster

2018-07-01 Thread Loris Bennett
David Winsemius  writes:

>> On Jul 1, 2018, at 6:32 AM, Jeremie Juste  wrote:
>> 
>> 
>> Hello,
>> 
>> I would like to know how to use Rmpi on a cluster but usually the
>> workflow of the cluster uses sun grid engine to launch jobs.
>> 
>> I found this reference on the web
>> http://borisv.lk.net/howtos/grid-mpi-r-howto.html.
>> 
>> But I could not even reproduce that example some errors with
>>> n.cores <- mpi.universe.size()
>> 
>
> "Some errors"? I'm not sure how you could be any more vague.
>
>
>> But regardless of this error do you have any resources on running R on a
>> cluster?

In keeping with the vagueness of the posting, I can contribute my
experience that installing Rmpi on a cluster is in general not trivial.
You potentially have to ensure that your are using the correct
combination of compiler and MPI implementation to build the packages and
then ensure that the environment is correspondingly set up for the jobs
you submit to the cluster.

I would maintain that installing Rmpi should normally be done by the
cluster administrator and the he/she should then be able to provide the
users with the information about how to use it.

Cheers,

Loris

-- 
Dr. Loris Bennett (Mr.)
ZEDAT, Freie Universität Berlin Email loris.benn...@fu-berlin.de

__
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] Convert list of data frames to one data frame

2018-07-01 Thread Ira Sharenow via R-help
 
My final post for thisthread!

Since I first asked myquestion on Stack Overflow, I posted all the solutions 
along with my timingstudy there.

https://stackoverflow.com/questions/50807970/converting-a-list-of-data-frames-not-a-simple-rbind-second-row-to-new-columns/51129202#51129202

Thanks again toeveryone for their help.

Ira


On Saturday, June 30, 2018, 6:11:00 PM PDT, Jeff Newmiller 
 wrote:  
 
 Your request is getting a bit complicated with so much re-hashing, but 
here are three solutions: base only, a bit of dplyr, and dplyr+tidyr:

#
# input data
employees4List = list(data.frame(first1 = "Al", second1 = 
"Jones"),
                      data.frame(first2 = c("Al2", "Barb"),
                                  second2 = c("Jones", "Smith")),
                      data.frame(first3 = c("Al3", "Barbara", 
"Carol"),
                                  second3 = c("Jones", "Smith", 
"Adams")),
                      data.frame(first4 = ("Al"), second4 = 
"Jones2"))
employees4List
#> [[1]]
#>  first1 second1
#> 1    Al  Jones
#>
#> [[2]]
#>  first2 second2
#> 1    Al2  Jones
#> 2  Barb  Smith
#>
#> [[3]]
#>    first3 second3
#> 1    Al3  Jones
#> 2 Barbara  Smith
#> 3  Carol  Adams
#>
#> [[4]]
#>  first4 second4
#> 1    Al  Jones2

# expected output
df1 = data.frame(First1 = "Al", Second1 = "Jones",
                  First2 = NA, Second2 = NA,
                  First3 = NA, Second3 = NA,
                  First4 = NA, Second4 = NA)
df2 = data.frame(First1 = "Al2", Second1 = "Jones",
                  First2 = "Barb", Second2 = "Smith",
                  First3 = NA, Second3 = NA,
                  First4 = NA, Second4 = NA)
df3 = data.frame(First1 = "Al3", Second1 = "Jones",
                  First2 = "Barbara", Second2 = "Smith",
                  First3 = "Carol", Second3 = "Adams",
                  First4 = NA, Second4 = NA)
df4 = data.frame(First1 = "Al", Second1 = "Jones2",
                  First2 = NA, Second2 = NA,
                  First3 = NA, Second3 = NA,
                  First4 = NA, Second4 = NA)
listFinal = list(df1, df2, df3, df4)
listFinal
#> [[1]]
#>  First1 Second1 First2 Second2 First3 Second3 First4 Second4
#> 1    Al  Jones    NA      NA    NA      NA    NA      NA
#>
#> [[2]]
#>  First1 Second1 First2 Second2 First3 Second3 First4 Second4
#> 1    Al2  Jones  Barb  Smith    NA      NA    NA      NA
#>
#> [[3]]
#>  First1 Second1  First2 Second2 First3 Second3 First4 Second4
#> 1    Al3  Jones Barbara  Smith  Carol  Adams    NA      NA
#>
#> [[4]]
#>  First1 Second1 First2 Second2 First3 Second3 First4 Second4
#> 1    Al  Jones2    NA      NA    NA      NA    NA      NA

myrename1 <- function( DF, m ) {
  # if a pair of columns is not present, raise an error
  stopifnot( 2 == length( DF ) )
  n <- nrow( DF )
  # use memory layout of elements of matrix
  # t() automatically converts to matrix (nrow=2)
  # matrix(,nrow=1) re-interprets the column-major output of t()
  # as a single row matrix
  result <- as.data.frame( matrix( t( DF ), nrow = 1 )
                          , stringsAsFactors = FALSE
                          )
  if ( n < m ) {
    result[ , seq( 2 * n + 1, 2 * m ) ] <- NA
  }
  setNames( result
          , sprintf( "%s%d"
                    , c( "First", "Second" )
                      , rep( seq.int( m ), each = 2 )
                      )
          )
}

m <- max( unlist( lapply( employees4List, nrow ) ) )
listFinal1 <- lapply( employees4List, myrename1, m = m )
listFinal1
#> [[1]]
#>  First1 Second1 First2 Second2 First3 Second3
#> 1    Al  Jones    NA      NA    NA      NA
#>
#> [[2]]
#>  First1 Second1 First2 Second2 First3 Second3
#> 1    Al2  Jones  Barb  Smith    NA      NA
#>
#> [[3]]
#>  First1 Second1  First2 Second2 First3 Second3
#> 1    Al3  Jones Barbara  Smith  Carol  Adams
#>
#> [[4]]
#>  First1 Second1 First2 Second2 First3 Second3
#> 1    Al  Jones2    NA      NA    NA      NA
result1 <- do.call( rbind, listFinal1 )
result1
#>  First1 Second1  First2 Second2 First3 Second3
#> 1    Al  Jones              
#> 2    Al2  Jones    Barb  Smith      
#> 3    Al3  Jones Barbara  Smith  Carol  Adams
#> 4    Al  Jones2              

myrename2 <- function( DF ) {
  # if a pair of columns is not present, raise an error
  stopifnot( 2 == length( DF ) )
  n <- nrow( DF )
  # use memory layout of elements of matrix
  # t() automatically converts to matrix (nrow=2)
  # matrix(,nrow=1) re-interprets the column-major output of t()
  # as a single row matrix
  setNames( as.data.frame( matrix( t( DF ), nrow = 1 )
                          , stringsAsFactors = FALSE
                          )
          , sprintf( "%s%d"
                    , c( "First", "Second" )
                    , rep( seq.int( n ), each = 2 )
                    )
          )
}

listFinal2 <- lapply( employees4List, myrename2 )
listFinal2
#> [[1]]
#>  First1 Second1
#> 1    Al  Jones
#>
#> [[2]]
#>  First1 Second1 First2 Second2
#> 1    Al2  Jones  Barb  Smith
#>
#> [[3]]
#>  First1 

Re: [ESS] Problem starting specific R version

2018-07-01 Thread Alex Branham via ESS-help
Hi Henric -

Thanks. I forgot how Windows handles different R versions.

I've pushed a commit to my personal branch that I think fixes this. I
did it on a separate branch that contains some other work though so the
line numbers won't match up with what you have.

https://github.com/jabranham/ESS/commit/30e544aa0f4deaf46d210945a15f9c6209dfbb15

If you can test it, that would be much appreciated. Let me know if you
can't though and I'll figure out some other way.

Thanks!
Alex

On Sun 01 Jul 2018 at 09:40, Henric Winell  wrote:

> Hi Alex,
>
> On 2018-07-01 15:51, Alex Branham wrote:
>
>> Thanks. I think the solution is to change "car" to "cdr" in
>> ess-r-define-runners in ess-r-mode.el. It's hard for me to test this,
>> though, since I don't have a windows machine.
>
> IIUC, you'd like to change 'car' to 'cdr' on L733:
>
> https://github.com/emacs-ess/ESS/blob/master/lisp/ess-r-mode.el#L733
>
> ?
>
> I just tried this change, but then 'M-x R-[TAB]' results in
>
> Click on a completion to select it.
> In this buffer, type RET to select the completion near point.
>
> Possible completions are:
> R-fix-T-F R-initialize-on-start
> R-modeR-newest
> R-transcript-mode
>
>
> Best,
> Henric
>
>
>
>>
>> Are you familiar at all with elisp? If so, can you try changing it to
>> see if that solves your problem? (you'll have to restart Emacs after 
>> changing it)
>>
>> If not, I'll find another way to test, just let me know.
>>
>> Thanks,
>> Alex
>>

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


Re: [R] parallel processing in r...

2018-07-01 Thread Christofer Bogaso
Hi,

On ' how to use "top" inside the R prompt? '
you can use system('top') command.

Thanks,

On Sun, Jul 1, 2018 at 9:53 PM Benoit Vaillant 
wrote:

> Hello,
>
> On Sun, Jul 01, 2018 at 11:31:29AM +, akshay kulkarni wrote:
> > I tried "top" at the bash prompt, but it provides a way to measure
> > CPU performance of the existing processes. I want to check the CPU
> > usage of the execution of an R function.
>
> Try to open two bash prompts, in one use R and in the other use top to
> monitor what is going on.
>
> > and at the R prompt I type the function to be executed. But if I
> > type "top" at the R prompt, it says object "top" not found.
>
> top is a shell command, no issue with R not knowing about this.
>
> > So, should I change to bash prompt after running the R function? If
> > yes, how do I do it? If not, how to use "top" inside the R prompt?
>
> Basically, you can't.
>
> > Again, I think this is an OS isuuebut I could'nt find any answer
> > in the Internet. I am an independent researcher and I don't have
> > personal access to experts...this mail list is the only vent I
> > have...
>
> ... (many more dots) Do you think we are experts on your system?
>
> Please do your home work and get back to us once it's done. ;-)
>
> Cheers,
>
> --
> Benoît
> __
> 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.


Re: [R] parallel processing in r...

2018-07-01 Thread Benoit Vaillant
Hello,

On Sun, Jul 01, 2018 at 11:31:29AM +, akshay kulkarni wrote:
> I tried "top" at the bash prompt, but it provides a way to measure
> CPU performance of the existing processes. I want to check the CPU
> usage of the execution of an R function.

Try to open two bash prompts, in one use R and in the other use top to
monitor what is going on.

> and at the R prompt I type the function to be executed. But if I
> type "top" at the R prompt, it says object "top" not found.

top is a shell command, no issue with R not knowing about this.

> So, should I change to bash prompt after running the R function? If
> yes, how do I do it? If not, how to use "top" inside the R prompt?

Basically, you can't.

> Again, I think this is an OS isuuebut I could'nt find any answer
> in the Internet. I am an independent researcher and I don't have
> personal access to experts...this mail list is the only vent I
> have...

... (many more dots) Do you think we are experts on your system?

Please do your home work and get back to us once it's done. ;-)

Cheers,

-- 
Benoît


signature.asc
Description: PGP signature
__
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] running Rmpi with SGE on a cluster

2018-07-01 Thread David Winsemius


> On Jul 1, 2018, at 6:32 AM, Jeremie Juste  wrote:
> 
> 
> Hello,
> 
> I would like to know how to use Rmpi on a cluster but usually the
> workflow of the cluster uses sun grid engine to launch jobs.
> 
> I found this reference on the web
> http://borisv.lk.net/howtos/grid-mpi-r-howto.html.
> 
> But I could not even reproduce that example some errors with
>> n.cores <- mpi.universe.size()
> 

"Some errors"? I'm not sure how you could be any more vague.


> But regardless of this error do you have any resources on running R on a
> cluster?
> 
> 
> Best regards,
> 
> Jeremie
> 
> __
> 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.

David Winsemius
Alameda, CA, USA

'Any technology distinguishable from magic is insufficiently advanced.'   
-Gehm's Corollary to Clarke's Third Law

__
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] A question on Statistics

2018-07-01 Thread Christofer Bogaso
I derive posting guide from https://www.r-project.org/posting-guide.html

I am imagining a distribution where mean is zero but there are few large
observations in the positive side which are not very frequent.

On Sun, Jul 1, 2018 at 8:29 PM Bert Gunter  wrote:

> From the posting guide:
>
> "*R-help* is intended to be comprehensible to people who want to use R to
> solve problems but who are not necessarily interested in or knowledgeable
> about programming."
>
> This says to me that R-help is for general questions about R programming,
> not statistics, though I grant you that the intersection is nonempty.
> Nevertheless, purely statistical issues should be posted elsewhere, and
> your query appears to be such.
>
> However, I'll just note: what does "centered at 0" mean for an asymmetric
> distribution? I think you may need to reconsider Jeff's advice.
>
>
> 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 Sun, Jul 1, 2018 at 5:53 AM, Christofer Bogaso <
> bogaso.christo...@gmail.com> wrote:
>
>> Hi,
>>
>> I could post in StackExchange for sure, however I dont think R-help
>> posting
>> guide discourage asking a question about Statistics, atleast formally.
>>
>> I could further clarify if my question is not elaborate enough. And many
>> apologies if it is very trivial - however still I am looking for 2nd
>> opinion on my question.
>>
>> Answer to Jeff's pointer - yes my distribution is assumed to be centered
>> at
>> 0.
>>
>> Thanks,
>>
>> On Sun, Jul 1, 2018 at 8:04 AM Hasan Diwan  wrote:
>>
>> > Christofer,
>> > On Sat, 30 Jun 2018 at 12:54, Jeff Newmiller 
>> > wrote:
>> > >
>> > > You should use Stack Exchange for questions about statistics.
>> >
>> > Specifically, https://stats.stackexchange.com/ -- H
>> > --
>> > OpenPGP:
>> > https://sks-keyservers.net/pks/lookup?op=get=0xFEBAD7FFD041BBA1
>> > If you wish to request my time, please do so using
>> > bit.ly/hd1AppointmentRequest.
>> > Si vous voudrais faire connnaisance, allez a
>> bit.ly/hd1AppointmentRequest.
>> >
>> > Sent from my mobile device
>> > Envoye de mon portable
>> >
>> > __
>> > 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.
>>
>
>

[[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] A question on Statistics

2018-07-01 Thread Bert Gunter
>From the posting guide:

"*R-help* is intended to be comprehensible to people who want to use R to
solve problems but who are not necessarily interested in or knowledgeable
about programming."

This says to me that R-help is for general questions about R programming,
not statistics, though I grant you that the intersection is nonempty.
Nevertheless, purely statistical issues should be posted elsewhere, and
your query appears to be such.

However, I'll just note: what does "centered at 0" mean for an asymmetric
distribution? I think you may need to reconsider Jeff's advice.


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 Sun, Jul 1, 2018 at 5:53 AM, Christofer Bogaso <
bogaso.christo...@gmail.com> wrote:

> Hi,
>
> I could post in StackExchange for sure, however I dont think R-help posting
> guide discourage asking a question about Statistics, atleast formally.
>
> I could further clarify if my question is not elaborate enough. And many
> apologies if it is very trivial - however still I am looking for 2nd
> opinion on my question.
>
> Answer to Jeff's pointer - yes my distribution is assumed to be centered at
> 0.
>
> Thanks,
>
> On Sun, Jul 1, 2018 at 8:04 AM Hasan Diwan  wrote:
>
> > Christofer,
> > On Sat, 30 Jun 2018 at 12:54, Jeff Newmiller 
> > wrote:
> > >
> > > You should use Stack Exchange for questions about statistics.
> >
> > Specifically, https://stats.stackexchange.com/ -- H
> > --
> > OpenPGP:
> > https://sks-keyservers.net/pks/lookup?op=get=0xFEBAD7FFD041BBA1
> > If you wish to request my time, please do so using
> > bit.ly/hd1AppointmentRequest.
> > Si vous voudrais faire connnaisance, allez a
> bit.ly/hd1AppointmentRequest.
> >
> > Sent from my mobile device
> > Envoye de mon portable
> >
> > __
> > 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.
>

[[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: [ESS] Problem starting specific R version

2018-07-01 Thread Henric Winell via ESS-help

Hi Alex,

On 2018-07-01 15:51, Alex Branham wrote:


Thanks. I think the solution is to change "car" to "cdr" in
ess-r-define-runners in ess-r-mode.el. It's hard for me to test this,
though, since I don't have a windows machine.


IIUC, you'd like to change 'car' to 'cdr' on L733:

https://github.com/emacs-ess/ESS/blob/master/lisp/ess-r-mode.el#L733

?

I just tried this change, but then 'M-x R-[TAB]' results in

Click on a completion to select it.
In this buffer, type RET to select the completion near point.

Possible completions are:
R-fix-T-F   R-initialize-on-start
R-mode  R-newest
R-transcript-mode


Best,
Henric





Are you familiar at all with elisp? If so, can you try changing it to
see if that solves your problem? (you'll have to restart Emacs after changing 
it)

If not, I'll find another way to test, just let me know.

Thanks,
Alex



__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


[R] running Rmpi with SGE on a cluster

2018-07-01 Thread Jeremie Juste


Hello,

I would like to know how to use Rmpi on a cluster but usually the
workflow of the cluster uses sun grid engine to launch jobs.

I found this reference on the web
http://borisv.lk.net/howtos/grid-mpi-r-howto.html.

But I could not even reproduce that example some errors with
> n.cores <- mpi.universe.size()

But regardless of this error do you have any resources on running R on a
cluster?


Best regards,

Jeremie

__
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: [ESS] Problem starting specific R version

2018-07-01 Thread Henric Winell via ESS-help

Hi Alex,

On 2018-07-01 14:03, Alex Branham wrote:


Thanks for the report.


Thanks for the swift reply and interest in this matter.

Can you let me know the exact name of those two programs, including the 
full path (e.g. C:\\Program Files\R\R-3.5\R.exe or whatever)? And the 


Under 64-bit Windows, which is a bi-arch system, the executables can be 
found in the bin\i386 and bin\x64 directories under the version-specific 
R installation directory.  The correct paths are recorded in the 
ess-rterm-version-paths variable:


ess-rterm-version-paths is a variable defined in ‘ess-custom.el’.
Its value is
("C:/Program Files/R/R-3.6/bin/i386/Rterm.exe" "C:/Program 
Files/R/R-3.5/bin/i386/Rterm.exe" "C:/Program 
Files/R/R-3.4/bin/i386/Rterm.exe" "C:/Program 
Files/R/R-3.3/bin/i386/Rterm.exe" "C:/Program 
Files/R/R-3.6/bin/x64/Rterm.exe" "C:/Program 
Files/R/R-3.5/bin/x64/Rterm.exe" "C:/Program 
Files/R/R-3.4/bin/x64/Rterm.exe" "C:/Program 
Files/R/R-3.3/bin/x64/Rterm.exe")



Issuing 'M-x R-[TAB]' results in

Click on a completion to select it.
In this buffer, type RET to select the completion near point.

Possible completions are:
R-3.3-32bit R-3.3-64bit R-3.4-32bit
R-3.4-64bit R-3.5-32bit R-3.5-64bit
R-3.6-32bit R-3.6-64bit R-fix-T-F
R-initialize-on-start   R-mode  R-newest
R-transcript-mode

where the first couple of entries should correspond to the executables 
above.


I've set inferior-ess-r-program-name to "C:/Program 
Files/R/R-3.6/bin/x64/Rterm.exe" so that 'M-x R' starts the 64-bit devel 
version of R.



value of exec-path in emacs (C-h v exec-path)


exec-path is a variable defined in ‘C source code’.
Its value is
("c:/Program Files/R/Rtools/bin" "C:/Program 
Files/R/Rtools/mingw_64/bin" "C:/Program Files/R/R-3.6/bin" 
"C:/MiKTeX/miktex/bin/x64/" "C:/Program Files/GNU Emacs/bin" "C:/Program 
Files/doxygen/bin" "C:/Program Files (x86)/Graphviz/bin" 
"C:/ProgramData/Oracle/Java/javapath" "C:/Program Files (x86)/Common 
Files/Oracle/Java/javapath" "C:/Windows/system32" "C:/Windows" 
"C:/Windows/System32/Wbem" "C:/Windows/System32/WindowsPowerShell/v1.0/" 
"C:/Program Files (x86)/Skype/Phone/" "C:/Program Files (x86)/KiTTy" 
"C:/Program Files/qpdf/bin" "C:/nuweb" "C:/Program Files 
(x86)/Intel/Intel(R) Management Engine Components/DAL" "C:/Program 
Files/Intel/Intel(R) Management Engine Components/DAL" "C:/Program Files 
(x86)/Intel/Intel(R) Management Engine Components/iCLS/" "C:/Program 
Files/Intel/Intel(R) Management Engine Components/iCLS/" "C:/Program 
Files (x86)/Intel/Intel(R) Management Engine Components/IPT" "C:/Program 
Files/Intel/Intel(R) Management Engine Components/IPT" "C:/Program 
Files/Git/cmd" "C:/Program Files (x86)/Pandoc/" "C:/Program 
Files/TortoiseSVN/bin" "C:/Program Files/Intel/WiFi/bin/" "C:/Program 
Files/Common Files/Intel/WirelessCommon/" 
"C:/Users/henwin/AppData/Local/Microsoft/WindowsApps" 
"C:/MiKTeX/miktex/bin/x64/" "C:/Program Files/Intel/WiFi/bin/" 
"C:/Program Files/Common Files/Intel/WirelessCommon/" "c:/Program 
Files/GNU Emacs/libexec/emacs/25.3/x86_64-w64-mingw32")



Kind regards,
Henric





Thanks,
Alex


On Sun, Jul 1, 2018, 6:53 AM Henric Winell via ESS-help 
mailto:ess-help@r-project.org>> wrote:


Hi,

I'd like to report the following, which I suspect is a bug:

On my Windows 10 system using Emacs 25.3.1 I've got several R versions.
For example, I've got R-3.5.0 and R-devel installed under C:\Program
Files\R\R-3.5 and C:\Program Files\R\R-3.6, respectively.

Up until quite recently, I could start a specific version, e.g., the
64-bit version of R-3.5.0 by issuing 'M-x R-3.5-64bit'.  This is now
broken and results in "Searching for program: No such file or
directory,
R-3.5-64bit".

I've got a couple of "older" ESS versions lying around and found
that it
   still works is ess-20180514.721, but is broken in ess-20180522.213
(and still broken in ess-20180701.100).  I checked the commit history
and suspect that the 'Simplify how R-X.Y.Z style functions are created'
change that got merged in on May 21 may have something to do with this
problem.


Kind regards,
Henric Winell

__
ESS-help@r-project.org  mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help



__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


Re: [R] A question on Statistics

2018-07-01 Thread Christofer Bogaso
Hi,

I could post in StackExchange for sure, however I dont think R-help posting
guide discourage asking a question about Statistics, atleast formally.

I could further clarify if my question is not elaborate enough. And many
apologies if it is very trivial - however still I am looking for 2nd
opinion on my question.

Answer to Jeff's pointer - yes my distribution is assumed to be centered at
0.

Thanks,

On Sun, Jul 1, 2018 at 8:04 AM Hasan Diwan  wrote:

> Christofer,
> On Sat, 30 Jun 2018 at 12:54, Jeff Newmiller 
> wrote:
> >
> > You should use Stack Exchange for questions about statistics.
>
> Specifically, https://stats.stackexchange.com/ -- H
> --
> OpenPGP:
> https://sks-keyservers.net/pks/lookup?op=get=0xFEBAD7FFD041BBA1
> If you wish to request my time, please do so using
> bit.ly/hd1AppointmentRequest.
> Si vous voudrais faire connnaisance, allez a bit.ly/hd1AppointmentRequest.
>
> Sent from my mobile device
> Envoye de mon portable
>
> __
> 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.


[ESS] Problem starting specific R version

2018-07-01 Thread Henric Winell via ESS-help

Hi,

I'd like to report the following, which I suspect is a bug:

On my Windows 10 system using Emacs 25.3.1 I've got several R versions. 
For example, I've got R-3.5.0 and R-devel installed under C:\Program 
Files\R\R-3.5 and C:\Program Files\R\R-3.6, respectively.


Up until quite recently, I could start a specific version, e.g., the 
64-bit version of R-3.5.0 by issuing 'M-x R-3.5-64bit'.  This is now 
broken and results in "Searching for program: No such file or directory, 
R-3.5-64bit".


I've got a couple of "older" ESS versions lying around and found that it 
 still works is ess-20180514.721, but is broken in ess-20180522.213 
(and still broken in ess-20180701.100).  I checked the commit history 
and suspect that the 'Simplify how R-X.Y.Z style functions are created' 
change that got merged in on May 21 may have something to do with this 
problem.



Kind regards,
Henric Winell

__
ESS-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help


Re: [R] parallel processing in r...

2018-07-01 Thread akshay kulkarni
dear Members,
  Thanks for the reply..I do have another 
issue; I will be highly obliged if you answer it:
I tried "top" at the bash prompt, but it provides a way to measure CPU 
performance of the existing processes. I want to check the CPU usage of the 
execution of an R function. So I start R by this

$ R

and at the R prompt I type the function to be executed. But if I type "top" at 
the R prompt, it says object "top" not found.

So, should I change to bash prompt after running the R function? If yes, how do 
I do it? If not, how to use "top" inside the R prompt?

Again, I think this is an OS isuuebut I could'nt find any answer in the 
Internet. I am an independent researcher and I don't have personal access to 
experts...this mail list is the only vent I have...

Very many thanks for your time and effort...
Yours sincerely,
AKSHAY M KULKARNI


From: Jeff Newmiller 
Sent: Saturday, June 30, 2018 11:46 PM
To: r-help@r-project.org; akshay kulkarni; R help Mailing list
Subject: Re: [R] parallel processing in r...

Use "top" at the bash prompt.

Read about the "mc.cores" parameter to mclapply.

Make a simplified example version of your analysis and post your question in 
the context of that example [1][2][3]. You will learn about the issues you are 
dealing with in the process of trimming your problem, and will have code you 
can share that demonstrates the issue without exposing private information.

Running parallel does not necessarily improve performance because other factors 
like task switching overhead and Inter-process-communication (data sharing) can 
drag it down. Read about the real benefits and drawbacks of parallelism... 
there are many discussions out there out there... you might start with [4].


[1] 
http://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example

[2] http://adv-r.had.co.nz/Reproducibility.html

[3] https://cran.r-project.org/web/packages/reprex/index.html (read the 
vignette)

[4] 
https://nceas.github.io/oss-lessons/parallel-computing-in-r/parallel-computing-in-r.html

On June 30, 2018 10:07:49 AM PDT, akshay kulkarni  wrote:
>dear members,
>I am using mclapply to parallelize my code. I am using Red Hat Linux in
>AWS.
>
>When I use mclapply, I see no speed increase. I doubt that the Linux OS
>is allowing fewer than the maximum number of cores to mclapply ( by
>default, mclapply takes all the available cores to it).
>
>How do you check if the number of workers is less than the output given
>by detectCores(), in Linux? Is there any R function for it?
>
>I do acknowledge that help on an OS is not suitable for this mailing
>list, but even Internet could'nt help me. Therefore this mail..
>
>very many thanks for your time  and effort...
>yours sincerely,
>AKSHAY M KULKARNI
>
>   [[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.

--
Sent from my phone. Please excuse my brevity.

[[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.