Re: [R] vanilla session in R Gui or RStudio

2020-10-22 Thread Henrik Bengtsson
This can happens if save an object with an environment part of a package, e.g.

$ R --quiet --vanilla
> fcn <- Matrix::Matrix
> environment(fcn)

> quit("yes")  # saves the workspace in an .RData file

# Loading the .RData file at startup triggers 'Matrix' to be loaded
$ R --quiet --no-init-file -e "loadedNamespaces()"
> loadedNamespaces()
 [1] "compiler"  "Matrix""graphics"  "utils" "grDevices" "stats"
 [7] "datasets"  "grid"  "methods"   "base"  "lattice"
>
>

Also, if you have saved S4 objects (e.g. x <- Matrix::Matrix(0, 3,
2)), they will trigger their corresponding packages to be loaded when
"used" (e.g. print():ed) but not before.

Not saying it explains all of OPs packages - just wanted to say the
content of .RData may trigger packages being loaded.

/Henrik

On Thu, Oct 22, 2020 at 7:54 PM Jeff Newmiller  wrote:
>
> Can you be more specific about what conditions cause R to automatically load 
> a package when a .RData file is loaded? My experience has actually been the 
> opposite.
>
> On October 22, 2020 6:13:11 PM PDT, Henrik Bengtsson 
>  wrote:
> >As Jeff says, it might be that you have a ~/.Rprofile file with
> >instructions to load packages when R starts.  It could also be that
> >you have a .RData file, which is saved if you answer yes to:
> >
> >> Save workspace image? [y/n/c]: y
> >
> >when you quit R.   If this file exists, then R loads it and all the
> >objects you had when you saved it. If there are objects associated
> >with packages, then that will cause those packages to be loaded when R
> >starts.  To avoid this, you need to move or delete the .RData file.
> >
> >You can use:
> >
> >> startup::startup(debug = TRUE, dryrun = TRUE)
> >
> >to get detailed information on what happens when R starts, e.g. if you
> >have a .Rprofile file and an .RData file.  That might help you to
> >track down what's going on.  The 'startup' package is on CRAN.
> >
> >I don't know of an easy way to restart RGui or RStudio Console in
> >vanilla mode, similarly how you can start R at the terminal with 'R
> >--vanilla'.
> >
> >/Henrik
> >
> >On Thu, Oct 22, 2020 at 4:14 PM Jeff Newmiller
> > wrote:
> >>
> >> Have you looked into your .Rprofile file? Loading packages is not
> >something R normally does without your telling it to do so, but many
> >people forget that they have done so.
> >>
> >> On October 22, 2020 3:47:04 PM PDT, Michael L Friendly
> > wrote:
> >> >[env: Windows, R 3.6.6]
> >> >
> >> >When I start R from the R Gui icon or from RStudio, I get a large
> >> >number of packages loaded via a namespace. Not entirely clear where
> >> >these come from.
> >> >
> >> >As a result, I often run into problems updating packages because
> >> >something is already loaded.  How can start a new gui session with
> >> >minimal packages loaded?
> >> >
> >> >> sessionInfo()
> >> >R version 3.6.3 (2020-02-29)
> >> >Platform: x86_64-w64-mingw32/x64 (64-bit)
> >> >Running under: Windows 7 x64 (build 7601) Service Pack 1
> >> >
> >> >Matrix products: default
> >> >
> >> >locale:
> >> >[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United
> >> >States.1252
> >> >[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
> >> >
> >> >[5] LC_TIME=English_United States.1252
> >> >
> >> >attached base packages:
> >> >[1] stats graphics  grDevices utils datasets  methods   base
> >> >
> >> >
> >> >loaded via a namespace (and not attached):
> >> >[1] statmod_1.4.34   xfun_0.18tidyselect_1.1.0
> >reshape2_1.4.4
> >> >purrr_0.3.4  mitools_2.4
> >> >[7] splines_3.6.3lattice_0.20-41  coefplot_1.2.6   carData_3.0-4
> >> >colorspace_1.4-1 vctrs_0.3.4
> >> >[13] generics_0.0.2   htmltools_0.5.0  yaml_2.2.1
> >survival_3.2-7
> >> > rlang_0.4.7  pillar_1.4.6
> >> >[19] nloptr_1.2.2.2   glue_1.4.2   DBI_1.1.0
> >lifecycle_0.2.0
> >> > plyr_1.8.6   stringr_1.4.0
> >> >[25] effects_4.2-0munsell_0.5.0gtable_0.3.0
> >evaluate_0.14
> >> > knitr_1.30   fansi_0.4.1
> >> >[31] Rcpp_1.0.5   scales_1.1.1 useful_1.2.6 fs_1.

Re: [R] vanilla session in R Gui or RStudio

2020-10-22 Thread Jeff Newmiller
Can you be more specific about what conditions cause R to automatically load a 
package when a .RData file is loaded? My experience has actually been the 
opposite.

On October 22, 2020 6:13:11 PM PDT, Henrik Bengtsson 
 wrote:
>As Jeff says, it might be that you have a ~/.Rprofile file with
>instructions to load packages when R starts.  It could also be that
>you have a .RData file, which is saved if you answer yes to:
>
>> Save workspace image? [y/n/c]: y
>
>when you quit R.   If this file exists, then R loads it and all the
>objects you had when you saved it. If there are objects associated
>with packages, then that will cause those packages to be loaded when R
>starts.  To avoid this, you need to move or delete the .RData file.
>
>You can use:
>
>> startup::startup(debug = TRUE, dryrun = TRUE)
>
>to get detailed information on what happens when R starts, e.g. if you
>have a .Rprofile file and an .RData file.  That might help you to
>track down what's going on.  The 'startup' package is on CRAN.
>
>I don't know of an easy way to restart RGui or RStudio Console in
>vanilla mode, similarly how you can start R at the terminal with 'R
>--vanilla'.
>
>/Henrik
>
>On Thu, Oct 22, 2020 at 4:14 PM Jeff Newmiller
> wrote:
>>
>> Have you looked into your .Rprofile file? Loading packages is not
>something R normally does without your telling it to do so, but many
>people forget that they have done so.
>>
>> On October 22, 2020 3:47:04 PM PDT, Michael L Friendly
> wrote:
>> >[env: Windows, R 3.6.6]
>> >
>> >When I start R from the R Gui icon or from RStudio, I get a large
>> >number of packages loaded via a namespace. Not entirely clear where
>> >these come from.
>> >
>> >As a result, I often run into problems updating packages because
>> >something is already loaded.  How can start a new gui session with
>> >minimal packages loaded?
>> >
>> >> sessionInfo()
>> >R version 3.6.3 (2020-02-29)
>> >Platform: x86_64-w64-mingw32/x64 (64-bit)
>> >Running under: Windows 7 x64 (build 7601) Service Pack 1
>> >
>> >Matrix products: default
>> >
>> >locale:
>> >[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United
>> >States.1252
>> >[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
>> >
>> >[5] LC_TIME=English_United States.1252
>> >
>> >attached base packages:
>> >[1] stats graphics  grDevices utils datasets  methods   base
>> >
>> >
>> >loaded via a namespace (and not attached):
>> >[1] statmod_1.4.34   xfun_0.18tidyselect_1.1.0
>reshape2_1.4.4
>> >purrr_0.3.4  mitools_2.4
>> >[7] splines_3.6.3lattice_0.20-41  coefplot_1.2.6   carData_3.0-4
>> >colorspace_1.4-1 vctrs_0.3.4
>> >[13] generics_0.0.2   htmltools_0.5.0  yaml_2.2.1  
>survival_3.2-7
>> > rlang_0.4.7  pillar_1.4.6
>> >[19] nloptr_1.2.2.2   glue_1.4.2   DBI_1.1.0   
>lifecycle_0.2.0
>> > plyr_1.8.6   stringr_1.4.0
>> >[25] effects_4.2-0munsell_0.5.0gtable_0.3.0
>evaluate_0.14
>> > knitr_1.30   fansi_0.4.1
>> >[31] Rcpp_1.0.5   scales_1.1.1 useful_1.2.6 fs_1.4.2
>> > lme4_1.1-23  packrat_0.5.0
>> >[37] ggplot2_3.3.2digest_0.6.25stringi_1.4.6   
>insight_0.9.6
>> > dplyr_1.0.2  survey_4.0
>> >[43] grid_3.6.3   cli_2.1.0tools_3.6.3  magrittr_1.5
>> > tibble_3.0.4 crayon_1.3.4
>> >[49] pkgconfig_2.0.3  ellipsis_0.3.1   MASS_7.3-53 
>Matrix_1.2-18
>> > reprex_0.3.0 assertthat_0.2.1
>> >[55] minqa_1.2.4  rmarkdown_2.4rstudioapi_0.11  R6_2.4.1
>> > boot_1.3-25  nnet_7.3-14
>> >[61] nlme_3.1-149 compiler_3.6.3
>> >>
>> >
>> >Michael Friendly Email: friendly AT yorku DOT ca
>> >Professor, Psychology Dept. & Former Chair, ASA Statistical Graphics
>> >Section
>> >York University  Voice: 416 736-2100 x66249
>> >4700 Keele StreetWeb: http://www.datavis.ca | @datavisFriendly
>> >Toronto, ONT  M3J 1P3 CANADA
>> >
>> >__
>> >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.
>>
>> __
>> 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.

__
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] vanilla session in R Gui or RStudio

2020-10-22 Thread Rolf Turner


On Thu, 22 Oct 2020 18:13:11 -0700
Henrik Bengtsson  wrote:

> As Jeff says, it might be that you have a ~/.Rprofile file with
> instructions to load packages when R starts.  It could also be that
> you have a .RData file, which is saved if you answer yes to:
> 
> > Save workspace image? [y/n/c]: y  
> 
> when you quit R.   If this file exists, then R loads it and all the
> objects you had when you saved it. If there are objects associated
> with packages, then that will cause those packages to be loaded when R
> starts.



I don't believe that the forgoing is *exactly* correct.  Perhaps it
depends on what is meant by "objects associated with packages".
I have vague recollections that funny things can happen if objects
in the saved .RData file have complicated environments, but I can't
remember details.

cheers,

Rolf Turner

-- 
Honorary Research Fellow
Department of Statistics
University of Auckland
Phone: +64-9-373-7599 ext. 88276

__
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] vanilla session in R Gui or RStudio

2020-10-22 Thread Henrik Bengtsson
As Jeff says, it might be that you have a ~/.Rprofile file with
instructions to load packages when R starts.  It could also be that
you have a .RData file, which is saved if you answer yes to:

> Save workspace image? [y/n/c]: y

when you quit R.   If this file exists, then R loads it and all the
objects you had when you saved it. If there are objects associated
with packages, then that will cause those packages to be loaded when R
starts.  To avoid this, you need to move or delete the .RData file.

You can use:

> startup::startup(debug = TRUE, dryrun = TRUE)

to get detailed information on what happens when R starts, e.g. if you
have a .Rprofile file and an .RData file.  That might help you to
track down what's going on.  The 'startup' package is on CRAN.

I don't know of an easy way to restart RGui or RStudio Console in
vanilla mode, similarly how you can start R at the terminal with 'R
--vanilla'.

/Henrik

On Thu, Oct 22, 2020 at 4:14 PM Jeff Newmiller  wrote:
>
> Have you looked into your .Rprofile file? Loading packages is not something R 
> normally does without your telling it to do so, but many people forget that 
> they have done so.
>
> On October 22, 2020 3:47:04 PM PDT, Michael L Friendly  
> wrote:
> >[env: Windows, R 3.6.6]
> >
> >When I start R from the R Gui icon or from RStudio, I get a large
> >number of packages loaded via a namespace. Not entirely clear where
> >these come from.
> >
> >As a result, I often run into problems updating packages because
> >something is already loaded.  How can start a new gui session with
> >minimal packages loaded?
> >
> >> sessionInfo()
> >R version 3.6.3 (2020-02-29)
> >Platform: x86_64-w64-mingw32/x64 (64-bit)
> >Running under: Windows 7 x64 (build 7601) Service Pack 1
> >
> >Matrix products: default
> >
> >locale:
> >[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United
> >States.1252
> >[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
> >
> >[5] LC_TIME=English_United States.1252
> >
> >attached base packages:
> >[1] stats graphics  grDevices utils datasets  methods   base
> >
> >
> >loaded via a namespace (and not attached):
> >[1] statmod_1.4.34   xfun_0.18tidyselect_1.1.0 reshape2_1.4.4
> >purrr_0.3.4  mitools_2.4
> >[7] splines_3.6.3lattice_0.20-41  coefplot_1.2.6   carData_3.0-4
> >colorspace_1.4-1 vctrs_0.3.4
> >[13] generics_0.0.2   htmltools_0.5.0  yaml_2.2.1   survival_3.2-7
> > rlang_0.4.7  pillar_1.4.6
> >[19] nloptr_1.2.2.2   glue_1.4.2   DBI_1.1.0lifecycle_0.2.0
> > plyr_1.8.6   stringr_1.4.0
> >[25] effects_4.2-0munsell_0.5.0gtable_0.3.0 evaluate_0.14
> > knitr_1.30   fansi_0.4.1
> >[31] Rcpp_1.0.5   scales_1.1.1 useful_1.2.6 fs_1.4.2
> > lme4_1.1-23  packrat_0.5.0
> >[37] ggplot2_3.3.2digest_0.6.25stringi_1.4.6insight_0.9.6
> > dplyr_1.0.2  survey_4.0
> >[43] grid_3.6.3   cli_2.1.0tools_3.6.3  magrittr_1.5
> > tibble_3.0.4 crayon_1.3.4
> >[49] pkgconfig_2.0.3  ellipsis_0.3.1   MASS_7.3-53  Matrix_1.2-18
> > reprex_0.3.0 assertthat_0.2.1
> >[55] minqa_1.2.4  rmarkdown_2.4rstudioapi_0.11  R6_2.4.1
> > boot_1.3-25  nnet_7.3-14
> >[61] nlme_3.1-149 compiler_3.6.3
> >>
> >
> >Michael Friendly Email: friendly AT yorku DOT ca
> >Professor, Psychology Dept. & Former Chair, ASA Statistical Graphics
> >Section
> >York University  Voice: 416 736-2100 x66249
> >4700 Keele StreetWeb: http://www.datavis.ca | @datavisFriendly
> >Toronto, ONT  M3J 1P3 CANADA
> >
> >__
> >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.
>
> __
> 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] vanilla session in R Gui or RStudio

2020-10-22 Thread Jeff Newmiller
Have you looked into your .Rprofile file? Loading packages is not something R 
normally does without your telling it to do so, but many people forget that 
they have done so.

On October 22, 2020 3:47:04 PM PDT, Michael L Friendly  
wrote:
>[env: Windows, R 3.6.6]
>
>When I start R from the R Gui icon or from RStudio, I get a large
>number of packages loaded via a namespace. Not entirely clear where
>these come from.
>
>As a result, I often run into problems updating packages because
>something is already loaded.  How can start a new gui session with
>minimal packages loaded?
>
>> sessionInfo()
>R version 3.6.3 (2020-02-29)
>Platform: x86_64-w64-mingw32/x64 (64-bit)
>Running under: Windows 7 x64 (build 7601) Service Pack 1
>
>Matrix products: default
>
>locale:
>[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United
>States.1252   
>[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
> 
>[5] LC_TIME=English_United States.1252
>
>attached base packages:
>[1] stats graphics  grDevices utils datasets  methods   base   
> 
>
>loaded via a namespace (and not attached):
>[1] statmod_1.4.34   xfun_0.18tidyselect_1.1.0 reshape2_1.4.4  
>purrr_0.3.4  mitools_2.4 
>[7] splines_3.6.3lattice_0.20-41  coefplot_1.2.6   carData_3.0-4   
>colorspace_1.4-1 vctrs_0.3.4 
>[13] generics_0.0.2   htmltools_0.5.0  yaml_2.2.1   survival_3.2-7 
> rlang_0.4.7  pillar_1.4.6
>[19] nloptr_1.2.2.2   glue_1.4.2   DBI_1.1.0lifecycle_0.2.0
> plyr_1.8.6   stringr_1.4.0   
>[25] effects_4.2-0munsell_0.5.0gtable_0.3.0 evaluate_0.14  
> knitr_1.30   fansi_0.4.1 
>[31] Rcpp_1.0.5   scales_1.1.1 useful_1.2.6 fs_1.4.2   
> lme4_1.1-23  packrat_0.5.0   
>[37] ggplot2_3.3.2digest_0.6.25stringi_1.4.6insight_0.9.6  
> dplyr_1.0.2  survey_4.0  
>[43] grid_3.6.3   cli_2.1.0tools_3.6.3  magrittr_1.5   
> tibble_3.0.4 crayon_1.3.4
>[49] pkgconfig_2.0.3  ellipsis_0.3.1   MASS_7.3-53  Matrix_1.2-18  
> reprex_0.3.0 assertthat_0.2.1
>[55] minqa_1.2.4  rmarkdown_2.4rstudioapi_0.11  R6_2.4.1   
> boot_1.3-25  nnet_7.3-14 
>[61] nlme_3.1-149 compiler_3.6.3  
>>
>
>Michael Friendly Email: friendly AT yorku DOT ca 
>Professor, Psychology Dept. & Former Chair, ASA Statistical Graphics
>Section
>York University  Voice: 416 736-2100 x66249 
>4700 Keele StreetWeb: http://www.datavis.ca | @datavisFriendly
>Toronto, ONT  M3J 1P3 CANADA
>
>__
>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.

__
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] vanilla session in R Gui or RStudio

2020-10-22 Thread Michael L Friendly
[env: Windows, R 3.6.6]

When I start R from the R Gui icon or from RStudio, I get a large number of 
packages loaded via a namespace. Not entirely clear where these come from.

As a result, I often run into problems updating packages because something is 
already loaded.  How can start a new gui session with minimal packages loaded?

> sessionInfo()
R version 3.6.3 (2020-02-29)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252  
 
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C 
 
[5] LC_TIME=English_United States.1252

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

loaded via a namespace (and not attached):
 [1] statmod_1.4.34   xfun_0.18tidyselect_1.1.0 reshape2_1.4.4   
purrr_0.3.4  mitools_2.4 
 [7] splines_3.6.3lattice_0.20-41  coefplot_1.2.6   carData_3.0-4
colorspace_1.4-1 vctrs_0.3.4 
[13] generics_0.0.2   htmltools_0.5.0  yaml_2.2.1   survival_3.2-7   
rlang_0.4.7  pillar_1.4.6
[19] nloptr_1.2.2.2   glue_1.4.2   DBI_1.1.0lifecycle_0.2.0  
plyr_1.8.6   stringr_1.4.0   
[25] effects_4.2-0munsell_0.5.0gtable_0.3.0 evaluate_0.14
knitr_1.30   fansi_0.4.1 
[31] Rcpp_1.0.5   scales_1.1.1 useful_1.2.6 fs_1.4.2 
lme4_1.1-23  packrat_0.5.0   
[37] ggplot2_3.3.2digest_0.6.25stringi_1.4.6insight_0.9.6
dplyr_1.0.2  survey_4.0  
[43] grid_3.6.3   cli_2.1.0tools_3.6.3  magrittr_1.5 
tibble_3.0.4 crayon_1.3.4
[49] pkgconfig_2.0.3  ellipsis_0.3.1   MASS_7.3-53  Matrix_1.2-18
reprex_0.3.0 assertthat_0.2.1
[55] minqa_1.2.4  rmarkdown_2.4rstudioapi_0.11  R6_2.4.1 
boot_1.3-25  nnet_7.3-14 
[61] nlme_3.1-149 compiler_3.6.3  
>

Michael Friendly Email: friendly AT yorku DOT ca 
Professor, Psychology Dept. & Former Chair, ASA Statistical Graphics Section
York University  Voice: 416 736-2100 x66249 
4700 Keele StreetWeb: http://www.datavis.ca | @datavisFriendly
Toronto, ONT  M3J 1P3 CANADA

__
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] open file on R GUI results in spinning wheel and frozen R - Mac OS

2020-09-23 Thread Peter Dalgaard
...or try R-patched, which I'm told has the newer GUI.

-pd

> On 21 Sep 2020, at 21:43 , Berend Hasselman  wrote:
> 
> 
> 
>> On 21 Sep 2020, at 20:24, Gonçalo Ferraz  wrote:
>> 
>> Hello,
>> 
>> I’ve been using R-studio for a while and today I needed to try something 
>> directly on the R-GUI.
>> 
>> But when I try to open any *.R file I get a spinning wheel and R freezes. I 
>> can only shut it down with ‘force quit’.
>> 
>> I have deleted and re-installed R three times, each time trying to run a 
>> more thorough uninstall, but the problem persists.
>> 
>> I am using Mac OS Catalina 10.15.6 and the latest version of R ->  R 4.0.2 
>> GUI 1.72 Catalina build (7847)
>> 
>> Strangely, as this problem was happening on the R GUI, I was still able to 
>> open R scripts on RStudio. But now I uninstalled RStudio as well, in the 
>> latest attempt to start from scratch.
>> 
>> Is this problem familiar to anyone?
>> 
> 
> See this thread on the R-SIG-Mac list: 
> https://stat.ethz.ch/pipermail/r-sig-mac/2020-June/013575.html
> and her for a solution (sequel of above): 
> https://stat.ethz.ch/pipermail/r-sig-mac/2020-July/013641.html
> 
> Go to https://mac.r-project.org/ and get the latest revision of the R GUI 
> which is noe 
> https://mac.r-project.org/high-sierra/R-4.0-branch/R-GUI-7884-4.0-high-sierra-Release.dmg
> 
> I have revision 7849; if the above does not work I can mail you the dmg of 
> revision 7849.
> 
> Berend
> 
> 
> 
>> Thanks for any help,
>> 
>> Gonçalo
>> __
>> 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.

-- 
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] open file on R GUI results in spinning wheel and frozen R - Mac OS

2020-09-21 Thread Berend Hasselman



> On 21 Sep 2020, at 20:24, Gonçalo Ferraz  wrote:
> 
> Hello,
> 
> I’ve been using R-studio for a while and today I needed to try something 
> directly on the R-GUI.
> 
> But when I try to open any *.R file I get a spinning wheel and R freezes. I 
> can only shut it down with ‘force quit’.
> 
> I have deleted and re-installed R three times, each time trying to run a more 
> thorough uninstall, but the problem persists.
> 
> I am using Mac OS Catalina 10.15.6 and the latest version of R ->  R 4.0.2 
> GUI 1.72 Catalina build (7847)
> 
> Strangely, as this problem was happening on the R GUI, I was still able to 
> open R scripts on RStudio. But now I uninstalled RStudio as well, in the 
> latest attempt to start from scratch.
> 
> Is this problem familiar to anyone?
> 

See this thread on the R-SIG-Mac list: 
https://stat.ethz.ch/pipermail/r-sig-mac/2020-June/013575.html
and her for a solution (sequel of above): 
https://stat.ethz.ch/pipermail/r-sig-mac/2020-July/013641.html

Go to https://mac.r-project.org/ and get the latest revision of the R GUI which 
is noe 
https://mac.r-project.org/high-sierra/R-4.0-branch/R-GUI-7884-4.0-high-sierra-Release.dmg

I have revision 7849; if the above does not work I can mail you the dmg of 
revision 7849.

Berend



> Thanks for any help,
> 
> Gonçalo
> __
> 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] open file on R GUI results in spinning wheel and frozen R - Mac OS

2020-09-21 Thread Bert Gunter
You might do better on r-sig-mac  for this.

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 Mon, Sep 21, 2020 at 11:24 AM Gonçalo Ferraz  wrote:

> Hello,
>
> I’ve been using R-studio for a while and today I needed to try something
> directly on the R-GUI.
>
> But when I try to open any *.R file I get a spinning wheel and R freezes.
> I can only shut it down with ‘force quit’.
>
> I have deleted and re-installed R three times, each time trying to run a
> more thorough uninstall, but the problem persists.
>
> I am using Mac OS Catalina 10.15.6 and the latest version of R ->  R 4.0.2
> GUI 1.72 Catalina build (7847)
>
> Strangely, as this problem was happening on the R GUI, I was still able to
> open R scripts on RStudio. But now I uninstalled RStudio as well, in the
> latest attempt to start from scratch.
>
> Is this problem familiar to anyone?
>
> Thanks for any help,
>
> Gonçalo
> __
> 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.


[R] open file on R GUI results in spinning wheel and frozen R - Mac OS

2020-09-21 Thread Gonçalo Ferraz
Hello,

I’ve been using R-studio for a while and today I needed to try something 
directly on the R-GUI.

But when I try to open any *.R file I get a spinning wheel and R freezes. I can 
only shut it down with ‘force quit’.

I have deleted and re-installed R three times, each time trying to run a more 
thorough uninstall, but the problem persists.

I am using Mac OS Catalina 10.15.6 and the latest version of R ->  R 4.0.2 GUI 
1.72 Catalina build (7847)

Strangely, as this problem was happening on the R GUI, I was still able to open 
R scripts on RStudio. But now I uninstalled RStudio as well, in the latest 
attempt to start from scratch.

Is this problem familiar to anyone?

Thanks for any help,

Gonçalo
__
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] How to create an executable file from R GUI?

2016-02-22 Thread simon0098--- via R-help
Thanks all,
I solved this problem using a batch file. Note that my problem was that my GUI 
disappeared quickly that I solve it using function "gtkMain()" after calling my 
GUI  function. So, R GUI works with batch file :)
The only problem that I had is that one of the buttons in my GUI is used to 
open a PDF file but as I click it, a window of some texts appear! I didn't 
think this problem would happen ! Let me know If you have any idea about it.


[[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] How to create an executable file from R GUI?

2016-02-22 Thread Adrian Dușa
It doesn't look like HTML because it is not HTML at all, it is actually SVG.
I found that creating exact locations for checkboxes, radios and text,
using raw HTML, is a pain, therefore I created my own library of functions
which combines SVG and Javascript.
The graphs are also SVG, although I am looking to embed normal R graphics
via shiny.

On Mon, Feb 22, 2016 at 1:22 PM, Dmitri Popavenko <
dmitri.popave...@gmail.com> wrote:

> That is a very nice interface, indeed!
> What kind of HTML you used for this interface, it is looking different
> from the normal.
>
> On Sun, Feb 21, 2016 at 11:37 AM, Adrian Dușa 
> wrote:
>
>> Oh, thanks Peter, good example for Mac, but indeed not working on Windows.
>> For a completely cross-platform solution (that is, including Windows which
>> is what Zahra wants), I believe shiny is the right tool.
>>
>> So Zahra, if you want to use shiny, you need to look at their own
>> tutorials, step by step, and try to understand how it works.
>> They have predefined tools to make "apps", which can be deployed either
>> locally or on a web server. But you will be dependent on the available
>> shiny toolkit.
>> Otherwise, if you want to make a completely customized interface, you need
>> to use a combination of R, HTML and Javascript.
>>
>> Take a look at the GUI from the QCAGUI package (download the sources, it's
>> in the "inst" directory): it can read the local filesystem, import /
>> export
>> data, it does various data transformations and various QCA related
>> analyses
>> and graphs.
>> Everything is highly customized, with drop-down menus and pop-up dialogs,
>> including an output one which mimics the R console.
>> To look at the interface, type:
>>
>> library(QCAGUI)
>> runGUI()
>>
>> I hope it helps,
>> Adrian
>
>
>


-- 
Adrian Dusa
University of Bucharest
Romanian Social Data Archive
Soseaua Panduri nr.90
050663 Bucharest sector 5
Romania

[[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] How to create an executable file from R GUI?

2016-02-22 Thread Dmitri Popavenko
That is a very nice interface, indeed!
What kind of HTML you used for this interface, it is looking different from
the normal.

On Sun, Feb 21, 2016 at 11:37 AM, Adrian Dușa  wrote:

> Oh, thanks Peter, good example for Mac, but indeed not working on Windows.
> For a completely cross-platform solution (that is, including Windows which
> is what Zahra wants), I believe shiny is the right tool.
>
> So Zahra, if you want to use shiny, you need to look at their own
> tutorials, step by step, and try to understand how it works.
> They have predefined tools to make "apps", which can be deployed either
> locally or on a web server. But you will be dependent on the available
> shiny toolkit.
> Otherwise, if you want to make a completely customized interface, you need
> to use a combination of R, HTML and Javascript.
>
> Take a look at the GUI from the QCAGUI package (download the sources, it's
> in the "inst" directory): it can read the local filesystem, import / export
> data, it does various data transformations and various QCA related analyses
> and graphs.
> Everything is highly customized, with drop-down menus and pop-up dialogs,
> including an output one which mimics the R console.
> To look at the interface, type:
>
> library(QCAGUI)
> runGUI()
>
> I hope it helps,
> Adrian

[[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] How to create an executable file from R GUI?

2016-02-21 Thread Adrian Dușa
Oh, thanks Peter, good example for Mac, but indeed not working on Windows.
For a completely cross-platform solution (that is, including Windows which
is what Zahra wants), I believe shiny is the right tool.

So Zahra, if you want to use shiny, you need to look at their own
tutorials, step by step, and try to understand how it works.
They have predefined tools to make "apps", which can be deployed either
locally or on a web server. But you will be dependent on the available
shiny toolkit.
Otherwise, if you want to make a completely customized interface, you need
to use a combination of R, HTML and Javascript.

Take a look at the GUI from the QCAGUI package (download the sources, it's
in the "inst" directory): it can read the local filesystem, import / export
data, it does various data transformations and various QCA related analyses
and graphs.
Everything is highly customized, with drop-down menus and pop-up dialogs,
including an output one which mimics the R console.
To look at the interface, type:

library(QCAGUI)
runGUI()

I hope it helps,
Adrian

On Sat, Feb 20, 2016 at 2:46 PM, peter dalgaard  wrote:

> It's quite platform dependent, but this idea works for tcl/tk on Mac. I
> don't think it would be too hard to do similar things on Linux, Windows may
> be a bigger challenge (or not).
>
> Peter-Dalgaards-MacBook-Air:tmp pd$ cat foo.app
> #!/usr/bin/Rscript
> library(tcltk)
> demo(tkfaq)
> tkwait.variable("exit")
>
> Make it executable (chmod +x foo.app) and you can double-click it in the
> Finder. (Notice that as written, there is nothing to shut down the tkwait
> loop, so you'll have to force quit it.)
>
> Peter D.
>
> > On 19 Feb 2016, at 23:36 , Adrian Dușa  wrote:
> >
> > Your function, buildGui(), what does it use, Tcl/Tk or something else?
> > If it's Tcl/Tk, I believe you need a normal R console opened. My .bat
> file
> > only works for a command line, which is fine if the user interface opens
> up
> > in a webpage, but I'm pretty sure it doesn\t work with Tcl/Tk.
> > What kind of window does your function return?
> > Adrian
> >
> > On Fri, Feb 19, 2016 at 4:35 PM, Zahra Samadi 
> wrote:
> >
> >> Adriana,
> >> My GUI file is a function returning a window. This function is named
> >> buildGui(). How should I create this batch file using the piece of code
> >> you've written?
> >>
> >> ------
> >> * From: * Adrian Dușa ;
> >> * To: * Greg Snow <538...@gmail.com>;
> >> * Cc: * simon0...@yahoo.com ; r-help@r-project.org
> <
> >> r-help@r-project.org>;
> >> * Subject: * Re: [R] How to create an executable file from R GUI?
> >> * Sent: * Thu, Feb 18, 2016 9:03:52 PM
> >>
> >> Simon, Greg,
> >>
> >> That is the very reason why I've given up on Tck/Tk, in favor of shiny.
> >> The user interface opens up in a webpage, without opening the normal R
> >> console (it only opens a Terminal window).
> >>
> >> To exemplify, package QCAGUI has a function called runGUI(), and on
> >> Windows it's a simple matter of creating a .bat file,
> >> which for my user interface it only contains this:
> >>
> >> CLS
> >>
> >> TITLE QCA Qualitative Comparative Analysis
> >>
> >> C:/PROGRA~1/R/R-3.2.3/bin/R.exe --slave --no-restore -e
> >> "setwd('D:/');QCAGUI::runGUI()"
> >>
> >>
> >> The double click on the .bat file, and that's it.
> >> I hope it helps,
> >> Adrian
> >>
> >>
> >>
> >> On Thu, Feb 18, 2016 at 7:24 PM, Greg Snow <538...@gmail.com> wrote:
> >>
> >>> To give a full answer we need some more detail from you.  For example
> >>> what operating system are you on? what do you mean by "users click on
> >>> it"? and at what point do you want them to click (after running R,
> >>> when looking at the desktop, etc.)
> >>>
> >>> But to help get you started you may want to look at the help page
> >>> `?Startup` which tells you all the things that R does as it starts up
> >>> and how to have it run commands automatically as it is starting up.
> >>>
> >>> I have created some GUI examples in the past that clients then wanted
> >>> to have on their own computer to play with and demonstrate to others.
> >>> I usually would install R on their machine for them and create a
> >>> shortcut on the desktop (these were all MS Windows computers) that
> >

Re: [R] How to create an executable file from R GUI?

2016-02-20 Thread Zahra Samadi via R-help
Peter, 
I didn't understand your codes :)
But I really seek Windows solution.


[[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] How to create an executable file from R GUI?

2016-02-20 Thread peter dalgaard
It's quite platform dependent, but this idea works for tcl/tk on Mac. I don't 
think it would be too hard to do similar things on Linux, Windows may be a 
bigger challenge (or not).

Peter-Dalgaards-MacBook-Air:tmp pd$ cat foo.app
#!/usr/bin/Rscript
library(tcltk)
demo(tkfaq)
tkwait.variable("exit")

Make it executable (chmod +x foo.app) and you can double-click it in the 
Finder. (Notice that as written, there is nothing to shut down the tkwait loop, 
so you'll have to force quit it.)

Peter D.

> On 19 Feb 2016, at 23:36 , Adrian Dușa  wrote:
> 
> Your function, buildGui(), what does it use, Tcl/Tk or something else?
> If it's Tcl/Tk, I believe you need a normal R console opened. My .bat file
> only works for a command line, which is fine if the user interface opens up
> in a webpage, but I'm pretty sure it doesn\t work with Tcl/Tk.
> What kind of window does your function return?
> Adrian
> 
> On Fri, Feb 19, 2016 at 4:35 PM, Zahra Samadi  wrote:
> 
>> Adriana,
>> My GUI file is a function returning a window. This function is named
>> buildGui(). How should I create this batch file using the piece of code
>> you've written?
>> 
>> --
>> * From: * Adrian Dușa ;
>> * To: * Greg Snow <538...@gmail.com>;
>> * Cc: * simon0...@yahoo.com ; r-help@r-project.org <
>> r-help@r-project.org>;
>> * Subject: * Re: [R] How to create an executable file from R GUI?
>> * Sent: * Thu, Feb 18, 2016 9:03:52 PM
>> 
>> Simon, Greg,
>> 
>> That is the very reason why I've given up on Tck/Tk, in favor of shiny.
>> The user interface opens up in a webpage, without opening the normal R
>> console (it only opens a Terminal window).
>> 
>> To exemplify, package QCAGUI has a function called runGUI(), and on
>> Windows it's a simple matter of creating a .bat file,
>> which for my user interface it only contains this:
>> 
>> CLS
>> 
>> TITLE QCA Qualitative Comparative Analysis
>> 
>> C:/PROGRA~1/R/R-3.2.3/bin/R.exe --slave --no-restore -e
>> "setwd('D:/');QCAGUI::runGUI()"
>> 
>> 
>> The double click on the .bat file, and that's it.
>> I hope it helps,
>> Adrian
>> 
>> 
>> 
>> On Thu, Feb 18, 2016 at 7:24 PM, Greg Snow <538...@gmail.com> wrote:
>> 
>>> To give a full answer we need some more detail from you.  For example
>>> what operating system are you on? what do you mean by "users click on
>>> it"? and at what point do you want them to click (after running R,
>>> when looking at the desktop, etc.)
>>> 
>>> But to help get you started you may want to look at the help page
>>> `?Startup` which tells you all the things that R does as it starts up
>>> and how to have it run commands automatically as it is starting up.
>>> 
>>> I have created some GUI examples in the past that clients then wanted
>>> to have on their own computer to play with and demonstrate to others.
>>> I usually would install R on their machine for them and create a
>>> shortcut on the desktop (these were all MS Windows computers) that
>>> pointed to the standard R executable, but started in a specific
>>> directory/folder.  Then in that folder I created a ".Rprofile" file
>>> with the commands to load in the appropriate data and packages and run
>>> the gui demonstration.  The user could then double click on the
>>> shortcut on the desktop and 2 windows would pop up (the regular R
>>> interface and my gui demo), I instructed the client to just minimize
>>> and ignore the regular R window and they were then able to use my demo
>>> and then close everything when they were finished.  You could do
>>> something similar (but exactly how will differ between Windows, Mac,
>>> and Linux computers).
>>> 
>>> On Thu, Feb 18, 2016 at 9:27 AM, simon0098--- via R-help
>>>  wrote:
>>>> Hi,
>>>> I've created a GUI using RGtk2 package. How can I make an executable
>>> file from my R script so that users click on it and the GUI appears for
>>> them?
>>>> 
>>>> 
>>>>[[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 p

Re: [R] How to create an executable file from R GUI?

2016-02-20 Thread Adrian Dușa
I don't know about RGtk2, never tried it, but I assume it is similar to
Tcl/Tk situation: you need to open an R console to make it work.
My approach works, only because I am using the package shiny, and R's web
server can be started via a script in the terminal.
I might be wrong of course, but I haven't been able to start a GUI from a
script, other than using a webpage,

Package shiny is very nice, and since it can be started with a script, it
means that one can also use the normal R console in parallel, if needed.
Otherwise, if started from the R console, R will be busy listening to the
web server: it's either R, or the GUI, but not both in the same time.


On Sat, Feb 20, 2016 at 8:50 AM, Zahra Samadi  wrote:

> My function returns a RGtk2 window. It's not important if my GUI opens in
> a browser, I just want to have a file that when clicked, my GUI opens.
>
>
> [[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.
>



-- 
Adrian Dusa
University of Bucharest
Romanian Social Data Archive
Soseaua Panduri nr.90
050663 Bucharest sector 5
Romania

[[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] How to create an executable file from R GUI?

2016-02-20 Thread simon0098--- via R-help
I tried Shiny using this link: 

oddhypothesis.blogspot.co.uk/2014/04/deploying-self-contained-r-apps-to.html

But I got the following error in R portable:
Fatal error: unable to open base package
I checked for base package but R 3.2.3 ( latest version) doesn't have updates 
for this package! So I decided to look for alternative method.


[[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] How to create an executable file from R GUI?

2016-02-20 Thread Zahra Samadi
My function returns a RGtk2 window. It's not important if my GUI opens in a 
browser, I just want to have a file that when clicked, my GUI opens.


[[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] How to create an executable file from R GUI?

2016-02-19 Thread Adrian Dușa
Your function, buildGui(), what does it use, Tcl/Tk or something else?
If it's Tcl/Tk, I believe you need a normal R console opened. My .bat file
only works for a command line, which is fine if the user interface opens up
in a webpage, but I'm pretty sure it doesn\t work with Tcl/Tk.
What kind of window does your function return?
Adrian

On Fri, Feb 19, 2016 at 4:35 PM, Zahra Samadi  wrote:

> Adriana,
> My GUI file is a function returning a window. This function is named
> buildGui(). How should I create this batch file using the piece of code
> you've written?
>
> --
> * From: * Adrian Dușa ;
> * To: * Greg Snow <538...@gmail.com>;
> * Cc: * simon0...@yahoo.com ; r-help@r-project.org <
> r-help@r-project.org>;
> * Subject: * Re: [R] How to create an executable file from R GUI?
> * Sent: * Thu, Feb 18, 2016 9:03:52 PM
>
> Simon, Greg,
>
> That is the very reason why I've given up on Tck/Tk, in favor of shiny.
> The user interface opens up in a webpage, without opening the normal R
> console (it only opens a Terminal window).
>
> To exemplify, package QCAGUI has a function called runGUI(), and on
> Windows it's a simple matter of creating a .bat file,
> which for my user interface it only contains this:
>
> CLS
>
> TITLE QCA Qualitative Comparative Analysis
>
> C:/PROGRA~1/R/R-3.2.3/bin/R.exe --slave --no-restore -e
> "setwd('D:/');QCAGUI::runGUI()"
>
>
> The double click on the .bat file, and that's it.
> I hope it helps,
> Adrian
>
>
>
> On Thu, Feb 18, 2016 at 7:24 PM, Greg Snow <538...@gmail.com> wrote:
>
>> To give a full answer we need some more detail from you.  For example
>> what operating system are you on? what do you mean by "users click on
>> it"? and at what point do you want them to click (after running R,
>> when looking at the desktop, etc.)
>>
>> But to help get you started you may want to look at the help page
>> `?Startup` which tells you all the things that R does as it starts up
>> and how to have it run commands automatically as it is starting up.
>>
>> I have created some GUI examples in the past that clients then wanted
>> to have on their own computer to play with and demonstrate to others.
>> I usually would install R on their machine for them and create a
>> shortcut on the desktop (these were all MS Windows computers) that
>> pointed to the standard R executable, but started in a specific
>> directory/folder.  Then in that folder I created a ".Rprofile" file
>> with the commands to load in the appropriate data and packages and run
>> the gui demonstration.  The user could then double click on the
>> shortcut on the desktop and 2 windows would pop up (the regular R
>> interface and my gui demo), I instructed the client to just minimize
>> and ignore the regular R window and they were then able to use my demo
>> and then close everything when they were finished.  You could do
>> something similar (but exactly how will differ between Windows, Mac,
>> and Linux computers).
>>
>> On Thu, Feb 18, 2016 at 9:27 AM, simon0098--- via R-help
>>  wrote:
>> > Hi,
>> > I've created a GUI using RGtk2 package. How can I make an executable
>> file from my R script so that users click on it and the GUI appears for
>> them?
>> >
>> >
>> > [[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.
>>
>>
>>
>> --
>> Gregory (Greg) L. Snow Ph.D.
>> 538...@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.
>>
>>
>
>
> --
> Adrian Dusa
> University of Bucharest
> Romanian Social Data Archive
> Soseaua Panduri nr.90
> 050663 Bucharest sector 5
> Romania
>



-- 
Adrian Dusa
University of Bucharest
Romanian Social Data Archive
Soseaua Panduri nr.90
050663 Bucharest sector 5
Romania

[[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] How to create an executable file from R GUI?

2016-02-19 Thread Zahra Samadi
Adriana, 
My GUI file is a function returning a window. This function is named 
buildGui(). How should I create this batch file using the piece of code you've 
written?


[[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] How to create an executable file from R GUI?

2016-02-18 Thread Adrian Dușa
Simon, Greg,

That is the very reason why I've given up on Tck/Tk, in favor of shiny.
The user interface opens up in a webpage, without opening the normal R
console (it only opens a Terminal window).

To exemplify, package QCAGUI has a function called runGUI(), and on Windows
it's a simple matter of creating a .bat file,
which for my user interface it only contains this:

CLS

TITLE QCA Qualitative Comparative Analysis

C:/PROGRA~1/R/R-3.2.3/bin/R.exe --slave --no-restore -e
"setwd('D:/');QCAGUI::runGUI()"


The double click on the .bat file, and that's it.
I hope it helps,
Adrian



On Thu, Feb 18, 2016 at 7:24 PM, Greg Snow <538...@gmail.com> wrote:

> To give a full answer we need some more detail from you.  For example
> what operating system are you on? what do you mean by "users click on
> it"? and at what point do you want them to click (after running R,
> when looking at the desktop, etc.)
>
> But to help get you started you may want to look at the help page
> `?Startup` which tells you all the things that R does as it starts up
> and how to have it run commands automatically as it is starting up.
>
> I have created some GUI examples in the past that clients then wanted
> to have on their own computer to play with and demonstrate to others.
> I usually would install R on their machine for them and create a
> shortcut on the desktop (these were all MS Windows computers) that
> pointed to the standard R executable, but started in a specific
> directory/folder.  Then in that folder I created a ".Rprofile" file
> with the commands to load in the appropriate data and packages and run
> the gui demonstration.  The user could then double click on the
> shortcut on the desktop and 2 windows would pop up (the regular R
> interface and my gui demo), I instructed the client to just minimize
> and ignore the regular R window and they were then able to use my demo
> and then close everything when they were finished.  You could do
> something similar (but exactly how will differ between Windows, Mac,
> and Linux computers).
>
> On Thu, Feb 18, 2016 at 9:27 AM, simon0098--- via R-help
>  wrote:
> > Hi,
> > I've created a GUI using RGtk2 package. How can I make an executable
> file from my R script so that users click on it and the GUI appears for
> them?
> >
> >
> > [[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.
>
>
>
> --
> Gregory (Greg) L. Snow Ph.D.
> 538...@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.
>



-- 
Adrian Dusa
University of Bucharest
Romanian Social Data Archive
Soseaua Panduri nr.90
050663 Bucharest sector 5
Romania

[[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] How to create an executable file from R GUI?

2016-02-18 Thread Zahra Samadi
OK. I should add that I want to have a shortcut on my desktop. My operating 
system is Windoes. I just need that when users click on this shortcut, my GUI 
appears without opening R environment since my users are completely unfamiliar 
with programming. 


[[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] How to create an executable file from R GUI?

2016-02-18 Thread Greg Snow
To give a full answer we need some more detail from you.  For example
what operating system are you on? what do you mean by "users click on
it"? and at what point do you want them to click (after running R,
when looking at the desktop, etc.)

But to help get you started you may want to look at the help page
`?Startup` which tells you all the things that R does as it starts up
and how to have it run commands automatically as it is starting up.

I have created some GUI examples in the past that clients then wanted
to have on their own computer to play with and demonstrate to others.
I usually would install R on their machine for them and create a
shortcut on the desktop (these were all MS Windows computers) that
pointed to the standard R executable, but started in a specific
directory/folder.  Then in that folder I created a ".Rprofile" file
with the commands to load in the appropriate data and packages and run
the gui demonstration.  The user could then double click on the
shortcut on the desktop and 2 windows would pop up (the regular R
interface and my gui demo), I instructed the client to just minimize
and ignore the regular R window and they were then able to use my demo
and then close everything when they were finished.  You could do
something similar (but exactly how will differ between Windows, Mac,
and Linux computers).

On Thu, Feb 18, 2016 at 9:27 AM, simon0098--- via R-help
 wrote:
> Hi,
> I've created a GUI using RGtk2 package. How can I make an executable file 
> from my R script so that users click on it and the GUI appears for them?
>
>
> [[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.



-- 
Gregory (Greg) L. Snow Ph.D.
538...@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.


[R] How to create an executable file from R GUI?

2016-02-18 Thread simon0098--- via R-help
Hi,
I've created a GUI using RGtk2 package. How can I make an executable file from 
my R script so that users click on it and the GUI appears for them? 


[[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] Get the output of a function in R GUI

2015-10-22 Thread Jesús Para Fernández
Thanks, but just one more question

How can I catch the response and put it on a tktext?

Imagien there is a function that the response is an error, how can i catch this 
error and manage it?

Thanks!

> From: pda...@gmail.com
> Subject: Re: [R] Get the output of a function in R GUI
> Date: Thu, 22 Oct 2015 11:17:34 +0200
> CC: r-help@r-project.org
> To: j.para.fernan...@hotmail.com
> 
> 
> On 22 Oct 2015, at 10:49 , Jesús Para Fernández 
>  wrote:
> 
> > Hi,
> > 
> > I want to create my own RGUI, so I�m using tcltk for that. 
> > 
> > In a very simple example, I want to get the response of a function into a 
> > tktext, so I have done this:
> > data<-c(2,3,5,2)
> > tt<-tktoplevel
> > text<-tktext(tt)
> > tkpack(text)
> > sum(data)
> > 
> > How can I get the output of sum(data) in my tktext??
> 
> 
> For instance with
> 
> tkinsert(text, "end", sum(data))
> 
> However, you need to reach out for a Tcl/Tk reference manual to sort out the 
> mysteries of the index argument and of the widget subcommands in general.
> 
> -pd
> 
> > 
> > Thanks!
> > Jes�s 
> >   
> > [[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] Get the output of a function in R GUI

2015-10-22 Thread peter dalgaard

On 22 Oct 2015, at 10:49 , Jesús Para Fernández  
wrote:

> Hi,
> 
> I want to create my own RGUI, so I�m using tcltk for that. 
> 
> In a very simple example, I want to get the response of a function into a 
> tktext, so I have done this:
> data<-c(2,3,5,2)
> tt<-tktoplevel
> text<-tktext(tt)
> tkpack(text)
> sum(data)
> 
> How can I get the output of sum(data) in my tktext??


For instance with

tkinsert(text, "end", sum(data))

However, you need to reach out for a Tcl/Tk reference manual to sort out the 
mysteries of the index argument and of the widget subcommands in general.

-pd

> 
> Thanks!
> Jes�s 
> 
>   [[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] Get the output of a function in R GUI

2015-10-22 Thread Jesús Para Fernández
Thanks, but it does�nt do what I want.

What I wnat is to insert it into a tktext. 

Jes�s

Date: Thu, 22 Oct 2015 10:06:20 +0100
Subject: Re: [R] Get the output of a function in R GUI
From: kmezh...@gmail.com
To: j.para.fernan...@hotmail.com
CC: r-help@r-project.org

Hi, 

require(tcltk)
data<-c(2,3,5,2)
PressedOK <- function()
{
  tkmessageBox(message=sum(data))
}

tt <- tktoplevel()
OK.but <- tkbutton(tt,text="OK",command=PressedOK)
tkgrid(OK.but)
tkfocus(tt)

Please take a look in examples: 
http://mcu.edu.tw/~chenmh/teaching/project/r/reference/RTclTkExamples/
Karim

On Thu, Oct 22, 2015 at 9:49 AM, Jes�s Para Fern�ndez 
 wrote:
Hi,



I want to create my own RGUI, so I�m using tcltk for that.



In a very simple example, I want to get the response of a function into a 
tktext, so I have done this:

data<-c(2,3,5,2)

tt<-tktoplevel

text<-tktext(tt)

tkpack(text)

sum(data)



How can I get the output of sum(data) in my tktext??



Thanks!

Jes�s



[[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] Get the output of a function in R GUI

2015-10-22 Thread Karim Mezhoud
Hi,

require(tcltk)
data<-c(2,3,5,2)
PressedOK <- function()
{
  tkmessageBox(message=sum(data))
}

tt <- tktoplevel()
OK.but <- tkbutton(tt,text="OK",command=PressedOK)
tkgrid(OK.but)
tkfocus(tt)

Please take a look in examples:
http://mcu.edu.tw/~chenmh/teaching/project/r/reference/RTclTkExamples/
Karim

On Thu, Oct 22, 2015 at 9:49 AM, Jesús Para Fernández <
j.para.fernan...@hotmail.com> wrote:

> Hi,
>
> I want to create my own RGUI, so I´m using tcltk for that.
>
> In a very simple example, I want to get the response of a function into a
> tktext, so I have done this:
> data<-c(2,3,5,2)
> tt<-tktoplevel
> text<-tktext(tt)
> tkpack(text)
> sum(data)
>
> How can I get the output of sum(data) in my tktext??
>
> Thanks!
> Jesús
>
> [[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.

[R] Get the output of a function in R GUI

2015-10-22 Thread Jesús Para Fernández
Hi,

I want to create my own RGUI, so I�m using tcltk for that. 

In a very simple example, I want to get the response of a function into a 
tktext, so I have done this:
data<-c(2,3,5,2)
tt<-tktoplevel
text<-tktext(tt)
tkpack(text)
sum(data)

How can I get the output of sum(data) in my tktext??

Thanks!
Jes�s 
  
[[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] R GUI plot by color

2015-07-27 Thread jpara3
Ok,  I will take it into account in the future.

Thanks!! 



--
View this message in context: 
http://r.789695.n4.nabble.com/R-GUI-plot-by-color-tp4710297p4710382.html
Sent from the R help mailing list archive at Nabble.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] R GUI plot by color

2015-07-26 Thread Robert Baer



On 7/24/2015 6:23 AM, Jim Lemon wrote:

Hi jpara3,
Your example, when I got it to go:

one<-c(3,2,2)
two<-c("a","b","b")
data<-dataframe(one,two)
plot(data$one,col=data$two)
Wow Jim. Psychic indeed!  Not only did you answer with NO reproducible 
example, but on round 2 you fixed a non-working example and explained 
why it was an accident that it works.  What is the stock market about to 
do? :)


jpara3 - Those of us without Jim's talent can be more helpful if you 
read and follow the guide at the bottom of each email.:


PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.





does indeed work, and I'll explain how. You are plotting the values of
data$one against the _values_ of data$two (see point 3 of my
response). In this case, the values of data$two are of class "factor",
which means that they have numeric values attached to the levels (a,
b) of the factor. When you pass these values as the "col" argument,
they are silently converted to their numeric values (1,2,2). In the
default palette, these numbers represent the colors - black, red, red.
Those are the colors in which the points are plotted. So far, so good.
Let's look at the other two points that I guessed.

1) The column names of data2 are not numbers

colnames(data)
[1] "one" "two"

As you can see, the column names are character variables, and they
don't translate to numbers:

as.numeric(colnames(data))
[1] NA NA

2) The number of columns in data2 is not equal to the number of values
in data1 that you are plotting

It's pretty obvious that there are two values in the column names and
three in the vector of values that you are plotting in your
example.So, I think I got three out of three without knowing what the
data were.

Jim


On Fri, Jul 24, 2015 at 7:53 PM, jpara3  wrote:

I have done a trial with a dataframe like this:
one<-c(3,2,2)
two<-c(a,b,b)
data<-dataframe(uno,dos)

plot(data$one,col=data$two)

and it plots perfect.
If you paste the code above in R, it has errors and does NOT plot 
perfectly.   I still did not understand what you were trying to do. You 
owe Jim big time.



If I try it with the code that i have post in the first message, selecting
data1 and data2 as i nthis example, the plot is plotted, but all dots with
the same color.

Thanks for the answer but noone of the 3 topics is the root problem.





--
View this message in context: 
http://r.789695.n4.nabble.com/R-GUI-plot-by-color-tp4710297p4710300.html
Sent from the R help mailing list archive at Nabble.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.

__
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] R GUI plot by color

2015-07-24 Thread jpara3
Yes, you were right!! 

Thanks.




--
View this message in context: 
http://r.789695.n4.nabble.com/R-GUI-plot-by-color-tp4710297p4710320.html
Sent from the R help mailing list archive at Nabble.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] R GUI plot by color

2015-07-24 Thread Jim Lemon
Hi jpara3,
Your example, when I got it to go:

one<-c(3,2,2)
two<-c("a","b","b")
data<-dataframe(one,two)
plot(data$one,col=data$two)

does indeed work, and I'll explain how. You are plotting the values of
data$one against the _values_ of data$two (see point 3 of my
response). In this case, the values of data$two are of class "factor",
which means that they have numeric values attached to the levels (a,
b) of the factor. When you pass these values as the "col" argument,
they are silently converted to their numeric values (1,2,2). In the
default palette, these numbers represent the colors - black, red, red.
Those are the colors in which the points are plotted. So far, so good.
Let's look at the other two points that I guessed.

1) The column names of data2 are not numbers

colnames(data)
[1] "one" "two"

As you can see, the column names are character variables, and they
don't translate to numbers:

as.numeric(colnames(data))
[1] NA NA

2) The number of columns in data2 is not equal to the number of values
in data1 that you are plotting

It's pretty obvious that there are two values in the column names and
three in the vector of values that you are plotting in your
example.So, I think I got three out of three without knowing what the
data were.

Jim


On Fri, Jul 24, 2015 at 7:53 PM, jpara3  wrote:
> I have done a trial with a dataframe like this:
> one<-c(3,2,2)
> two<-c(a,b,b)
> data<-dataframe(uno,dos)
>
> plot(data$one,col=data$two)
>
> and it plots perfect.
>
> If I try it with the code that i have post in the first message, selecting
> data1 and data2 as i nthis example, the plot is plotted, but all dots with
> the same color.
>
> Thanks for the answer but noone of the 3 topics is the root problem.
>
>
>
>
>
> --
> View this message in context: 
> http://r.789695.n4.nabble.com/R-GUI-plot-by-color-tp4710297p4710300.html
> Sent from the R help mailing list archive at Nabble.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.

__
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] R GUI plot by color

2015-07-24 Thread jpara3
I have done a trial with a dataframe like this:
one<-c(3,2,2)
two<-c(a,b,b)
data<-dataframe(uno,dos)

plot(data$one,col=data$two)

and it plots perfect.

If I try it with the code that i have post in the first message, selecting
data1 and data2 as i nthis example, the plot is plotted, but all dots with
the same color.

Thanks for the answer but noone of the 3 topics is the root problem.





--
View this message in context: 
http://r.789695.n4.nabble.com/R-GUI-plot-by-color-tp4710297p4710300.html
Sent from the R help mailing list archive at Nabble.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] R GUI plot by color

2015-07-24 Thread Jim Lemon
Hi jpara3,
Hmmm. It's becoming clearer, yes I think the answer is emerging from
the swirling clouds of uncertainty.

1) The column names of data2 are not numbers

2) The number of columns in data2 is not equal to the number of values
in data1 that you are plotting

3) You probably want to plot colors determined by the values in data2,
not the names of its columns

Please send payment for this psychic reading to

Jim


On Fri, Jul 24, 2015 at 6:43 PM, jpara3  wrote:
> Hi,
>
> I want to do a plot from a variable (which i select from a listbox) with the
> color factor of the variable that i have selected from another listbox.
>
> To be not very heavy pasting all the code, i will only paste real important
> parts:
>
> "data1" and "data2" are the extacted parts of the dataframes "data" from a
> tcltk listbox:
>
> data1<<- dataframe[as.numeric(tkcurselection(tl))+1]
> data2<<- dataframe[as.numeric(tkcurselection(tl))+1]
>
> As i want to plot the data1 with the color of data2, i use this code:
>
> plot(data1,col=colnames(data2))
>
> This works perfect for plotting the data1 variable, but it do not change the
> col of the dots by data2.
>
> I also have probed with
>
> plot(data1,col=factor(colnames(data2)))
>
> But nothing happens with the color.
>
> Thanks!!
>
>
>
>
>
>
> --
> View this message in context: 
> http://r.789695.n4.nabble.com/R-GUI-plot-by-color-tp4710297.html
> Sent from the R help mailing list archive at Nabble.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.

__
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] R GUI plot by color

2015-07-24 Thread jpara3
Hi, 

I want to do a plot from a variable (which i select from a listbox) with the
color factor of the variable that i have selected from another listbox.

To be not very heavy pasting all the code, i will only paste real important
parts:

"data1" and "data2" are the extacted parts of the dataframes "data" from a
tcltk listbox:

data1<<- dataframe[as.numeric(tkcurselection(tl))+1]
data2<<- dataframe[as.numeric(tkcurselection(tl))+1]

As i want to plot the data1 with the color of data2, i use this code:

plot(data1,col=colnames(data2))

This works perfect for plotting the data1 variable, but it do not change the
col of the dots by data2. 

I also have probed with 

plot(data1,col=factor(colnames(data2)))

But nothing happens with the color. 

Thanks!!






--
View this message in context: 
http://r.789695.n4.nabble.com/R-GUI-plot-by-color-tp4710297.html
Sent from the R help mailing list archive at Nabble.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] R GUI tklistbox get value

2015-07-21 Thread jpara3
Thanks mr FOX, now it works perfect!!!





--
View this message in context: 
http://r.789695.n4.nabble.com/R-GUI-tklistbox-get-value-tp4710064p4710123.html
Sent from the R help mailing list archive at Nabble.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] R GUI tklistbox get value

2015-07-20 Thread John Fox
Dear j.para.fernandez,

Try

selecvar <- dat[, as.numeric(tkcurselection(tl))+1]

Omitting the comma returns a one-column data frame, not a numeric vector.

I hope this helps,
 John


John Fox, Professor
McMaster University
Hamilton, Ontario, Canada
http://socserv.mcmaster.ca/jfox/

On Mon, 20 Jul 2015 03:29:07 -0700 (PDT)
 jpara3  wrote:
> Hi, i have a dataframe, dat, with 2 variables, one and two.
> 
> I want to print in R the mean of the selected variable of the dataframe. You
> can select it with a tklistbox, but when you click OK button, the mean is
> not displayed, just NA
> 
> 
> 
> 
> 
> one<-c(5,5,6,9,5,8)
> two<-c(12,13,14,12,14,12)
> dat<-data.frame(uno,dos)
> 
> require(tcltk)
> tt<-tktoplevel()
> tl<-tklistbox(tt,height=4,selectmode="single")
> tkgrid(tklabel(tt,text="Selecciona la variable para calcular media"))
> tkgrid(tl)
> for (i in (1:4))
> {
> tkinsert(tl,"end",colnames(dat[i]))
> }
>  
> OnOK <- function()
> {
> 
>   selecvar <- dat[as.numeric(tkcurselection(tl))+1]
>
>   print(mean(selecvar))
> 
> }
> OK.but <-tkbutton(tt,text="   OK   ",command=OnOK)
> tkgrid(OK.but)
> tkfocus(tt)
> 
> #
> 
> Can someone please help me?? Thanks!!! 
> 
> 
> 
> --
> View this message in context: 
> http://r.789695.n4.nabble.com/R-GUI-tklistbox-get-value-tp4710064.html
> Sent from the R help mailing list archive at Nabble.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.

__
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] R GUI tklistbox get value

2015-07-20 Thread jpara3
Hi, i have a dataframe, dat, with 2 variables, one and two.

I want to print in R the mean of the selected variable of the dataframe. You
can select it with a tklistbox, but when you click OK button, the mean is
not displayed, just NA





one<-c(5,5,6,9,5,8)
two<-c(12,13,14,12,14,12)
dat<-data.frame(uno,dos)

require(tcltk)
tt<-tktoplevel()
tl<-tklistbox(tt,height=4,selectmode="single")
tkgrid(tklabel(tt,text="Selecciona la variable para calcular media"))
tkgrid(tl)
for (i in (1:4))
{
tkinsert(tl,"end",colnames(dat[i]))
}
 
OnOK <- function()
{

  selecvar <- dat[as.numeric(tkcurselection(tl))+1]
   
  print(mean(selecvar))

}
OK.but <-tkbutton(tt,text="   OK   ",command=OnOK)
tkgrid(OK.but)
tkfocus(tt)

#

Can someone please help me?? Thanks!!! 



--
View this message in context: 
http://r.789695.n4.nabble.com/R-GUI-tklistbox-get-value-tp4710064.html
Sent from the R help mailing list archive at Nabble.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] R GUI for undergraduate lab class?

2014-07-14 Thread john verzani


Ranjan Maitra  inbox.com> writes:

> 
> Hi Louise,



The INZight GUI might give students something to work with.
https://www.stat.auckland.ac.nz/~wild/iNZight/

__
R-help@r-project.org mailing list
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] R] R GUI for undergraduate lab class?

2014-07-14 Thread Dr. Thomas W. MacFarland
Hi Louise:

Pasted below is a section from a syllabus where I list a set of Tegrity-based 
URLs that demonstrate the R Commander Graphical User Interface, for R-based 
analyses and graphics.

The videos are all about 1 hour in length but there is a slider at the bottom 
so it is fairly easy to move past course specific sections or other portions 
that you may not need to review.

Comment:  Students in this class have no prior experience with R and minimal, 
if any, experience with syntax.  I try to start them out with R Commander since 
it is a fairly easy to use R GUI.  In time I move them over to R Studio and 
near the end of the term they use an ASCII editor to construct their own 
syntax, bypassing R Commander and R Studio.  Some students take to this easily 
and others prefer the GUI approach.

Comment:  The Tegrity videos then to show best using IE and Chrome.

Best wishes.

Tom MacFarland


\begin{longtable}{ l || p{0.10in} p{4.75in} }
\multicolumn{3}{ c }{
\textbf{Weekly Instruction}}   \\
  & &  \\
\hline
  & &  \\
{\bf Week 00} & & Module 00 -- Video Overview of Biostatistics (DEP 5001), 
\url{https://tegr.it/y/1bv3i} 1:14:26 Hrs\\
  & &  \\[-0.10in]
{\bf Week 01} & & Module 01 -- Overview of Biostatistics (DEP 5001), 
\url{https://tegr.it/y/1bv3z} 1:26:50 Hrs\\
  & &  \\[-0.10in]
  & & Review the syllabus  \\
  & &  \\[-0.10in]
  & & Use of the Blackboard Course Management System (CMS) \\
  & &  \\[-0.10in]
  & & Alternates for communication and instruction (e.g., online 
equivalent of a fire drill) \\
  & &  \\[-0.10in]
{\bf Week 02} & & Module 02 -- Introduction:  Biostatistics and R, 
\url{https://tegr.it/y/1bvmt} 0:57:37 Hrs\\
  & &  \\[-0.10in]
{\bf Week 03} & & Module 03 -- Data in the Large, \url{https://tegr.it/y/1bvmq} 
0:47:31 Hrs\\
  & &  \\[-0.10in]
{\bf Week 04} & & Module 04 -- Population, Normal Distribution, and Sampling, 
\url{https://tegr.it/y/1bvmn} 0:52:14 Hrs and \url{https://tegr.it/y/1c1tj} 
1:02:24 Hrs \\
  & &  \\[-0.10in]
{\bf Week 05} & & Module 05 -- R Graphical User Interface (R Commander, R-GUI) 
and R Command Line Interface (R Syntax, R-CLI), \url{https://tegr.it/y/1bvmk} 
0:46:54 Hrs\\
  & &  \\[-0.10in]
{\bf Week 06} & & Module 06 -- Data Exploration, Descriptive Statistics, and 
Measures of Central Tendency, \url{https://tegr.it/y/1bvmh} 0:55:37 Hrs\\
  & &  \\[-0.10in]
{\bf Week 07} & & Module 07 -- Student's t-Test for Independent Samples, 
\url{https://tegr.it/y/1bvme} 1:09:43 Hrs\\
  & &  \\[-0.10in]
{\bf Week 08} & & Module 08 -- Student's t-Test for Matched Pairs, 
\url{https://tegr.it/y/1bvmb} 0:36:05 Hrs\\
  & &  \\[-0.10in]
{\bf Week 09} & & Module 09 -- Analyses and Graphics for a Large Dataset With 
No Missing Data, \url{https://tegr.it/y/1bvm8} 0:19:36 Hrs\\
  & &  \\[-0.10in]
{\bf Week 10} & & Module 10 -- Analyses and Graphics for a Large Dataset With 
Missing Data, \url{https://tegr.it/y/1bvm5} 0:45:51 Hrs\\
  & &  \\[-0.10in]
{\bf Week 11} & & Module 11 -- Oneway Analysis of Variance (ANOVA), 
\url{https://tegr.it/y/1bvm2} 1:00:34 Hrs\\
  & &  \\[-0.10in]
{\bf Week 12} & & Module 12 -- Twoway Analysis of Variance (ANOVA), 
\url{https://tegr.it/y/1btlg} 1:05:55 Hrs\\
  & &  \\[-0.10in]
{\bf Week 13} & & Module 13 -- Correlation and Linear Regression, 
\url{https://tegr.it/y/1bvly} 0:56:30 Hrs\\
  & &  \\[-0.10in]
{\bf Week 14} & & Module 14 -- Future Actions and Next Steps, 
\url{https://tegr.it/y/1bvlv} 0:33:38 Hrs\\
  & &  \\[-0.10in]
{\bf Week 15} & & Review and Completion of All Assignments \\
  & &  \\[-0.10in]
{\bf Week 16} & & Review and Completion of All Assignments \\
  & &  \\[-0.10in]
  & & Conclusions  \\
  & &  \\[-0.10in]
\hline
& & \\[-0.10in]
\end{longtable}

  



Date: Sat, 12 Jul 2014 13:47:08 -0700
From: Louise Stevenson 
To: r-help@r-project.org
Subject: [R] R GUI for undergradu

Re: [R] R GUI for undergraduate lab class?

2014-07-13 Thread Christoph Scherber
The best GUI I know for such purposes is John Fox 's Rcmdr package. It was 
built for undergraduate courses. Cheers, Christoph 


Von Samsung Mobile gesendet

 Ursprüngliche Nachricht 
Von: Louise Stevenson  
Datum: 12.07.2014  22:47  (GMT+01:00) 
An: r-help@r-project.org 
Betreff: [R] R GUI for undergraduate lab class? 
 
Hi,

I'm working on a new set of simple, ecological modeling exercises for our
campus' undergraduate Introductory Biology lab series. The students work
with simple population models by looking at graphs and seeing how changing
parameter values and initial population sizes changes how the populations
fluctuate through time. Does anyone know of an existing R GUI or any other
interface that would be good for an undergraduate setting? Basically I want
something that shows the students the model's output as graphs and lets them
change parameter values but the equations/coding itself is hidden such that
they can't change any of that. I want what Populus can do (a fantastic
program written for this exact purpose, info here:
http://www.cbs.umn.edu/research/resources/populus) but I want to be able to
upload data so the students can compare model outputs to real data and I
can't figure out how to get Populus to plot data. Any help would be very
much appreciated! Thank you!

Sincerely,
Louise Stevenson
Graduate Student, University of California, Santa Barbara
Department of Ecology, Evolution and Marine Biology

__
R-help@r-project.org mailing list
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
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] R GUI for undergraduate lab class?

2014-07-12 Thread Ranjan Maitra
Hi Louise,

I tried using Deducer (graphical frontend to R) in my introductory
class (Stat 105 at Iowa State University) for  civil and construction
engineers and this was a roaring success this year. The class itself
has a wee bit of software experience, which has previously been done
using JMP. Most instructors (graduate TAs, typically) haven't
particularly been enamoured of using JMP, so I decided to explore the
possibility of using a GUI version of R. 

I am not in general a great fan of any kind of GUI for my own
work: however, it makes sense for this kind of class and I wanted a
one-click solution for the Windoze user which would make it possible
for them to use R with minimal typing. (Windoze users are primarily
what made up the students in this this class.)

I looked at a few R packages: pmg (or Poor Man's GUI, which appeared to
not have been updated since 2009, so I am not sure how active this
project currently is) and Rcmdr (R commander). Both these packages
served my purpose for a limited amount, but were not able to do all the
aspects of regression needed in the class (in pmg's case, could not
calculate the residuals, but in the case of RCmdr's case, could not
provide a residuals plot without the entire plethora of diagnostics
also showing up) so I decided to look at other alternatives. Also,
installing Rcmdr (with its dependencies) was not particularly easy from
the student's perspective (in my view).

I found my solution in Deducer which actually has its own website:
www.deducer.org. For Windoze users, it is a one-click
installation. The beauty of this software, in my mind, is that it can do
a lot of things (including quite involved calculations)  and has its
entire suite of graphics built on the ggplot package. Being a GUI, one
has to look around for how to do particular things (which may not
always be in the place that I might thing is intuitive, but it is
there). The manual is generally decent: however, the graphics part of
the manual is perfunctory at best. And it uses Java, a resource hog I
generally abhor.

I sent the students the e-mail (below) on how to install (and come
prepared for the class last week so that we could do a demo and
examples). They did not have much issues. In fact, in class, I got
exactly one complaint: "Can't all this be done in excel?"
-- I completed this question for him: "... and also on pen and paper"
-- but other than that, most students have taken to it and turned in
their homeworks without much fuss. In fact, some have liked it and
explored with it. 

In our introductory classes, we have typically used JMP. But if some of
us prefer using an open-source option that is not encumbered by
patents and proprietary licenses but have been bothered by R's learning
curve, using it through Deducer might be a possible option.


Btw, here is the e-mail I sent my class on how to go about installing
Deducer (note that the instructions are from late January):



Dear students,

For Stat 105, we will be demonstrating Deducer which is
available at http://www.deducer.orgfor installation. Deducer is a
graphical frontend to the statistical software R.

If you are installing to Windows, please use:

http://neolab.stat.ucla.edu/cranstats/Deducer-R-2.15.0-win.exe

This will install all you need in a one-click operation.For other OS's,
please use:

http://www.deducer.org/pmwiki/index.php?n=Main.MacOSXInstallation

for MacOSX while for Linux, please use:

http://www.deducer.org/pmwiki/index.php?n=Main.LinuxInstallation

For both Mac and Linux, you will need to install R prior to instaling
Deducer and JGR. We will go through a demonstration of Chapter 4 using
Deducer in class tomorrow.

I hope that this helps!

Many thanks and best wishes,
Ranjan


On Sat, 12 Jul 2014 13:47:08 -0700 Louise Stevenson
 wrote:

> Hi,
> 
> I'm working on a new set of simple, ecological modeling exercises for our
> campus' undergraduate Introductory Biology lab series. The students work
> with simple population models by looking at graphs and seeing how changing
> parameter values and initial population sizes changes how the populations
> fluctuate through time. Does anyone know of an existing R GUI or any other
> interface that would be good for an undergraduate setting? Basically I want
> something that shows the students the model's output as graphs and lets them
> change parameter values but the equations/coding itself is hidden such that
> they can't change any of that. I want what Populus can do (a fantastic
> program written for this exact purpose, info here:
> http://www.cbs.umn.edu/research/resources/populus) but I want to be able to
> upload data so the students can compare model outputs to real data and I
> can't figure out how to get Populus to plot data. Any help would be very
> much appreciated! Thank you!
> 
> Sinc

Re: [R] R GUI for undergraduate lab class?

2014-07-12 Thread Richard M. Heiberger
I recommend RExcel.
RExcel is an add-in for Windows Excel that gives complete access to
the entirety of R
from Windows Excel.  It is free for educational use.

The program by Erich Neuwirth is at http://rcom.univie.ac.at
Our book, designed as a supplement to any text, is at
http://www.springer.com/978-1-4419-0051-7

Rich


On Sat, Jul 12, 2014 at 4:47 PM, Louise Stevenson
 wrote:
> Hi,
>
> I'm working on a new set of simple, ecological modeling exercises for our
> campus' undergraduate Introductory Biology lab series. The students work
> with simple population models by looking at graphs and seeing how changing
> parameter values and initial population sizes changes how the populations
> fluctuate through time. Does anyone know of an existing R GUI or any other
> interface that would be good for an undergraduate setting? Basically I want
> something that shows the students the model's output as graphs and lets them
> change parameter values but the equations/coding itself is hidden such that
> they can't change any of that. I want what Populus can do (a fantastic
> program written for this exact purpose, info here:
> http://www.cbs.umn.edu/research/resources/populus) but I want to be able to
> upload data so the students can compare model outputs to real data and I
> can't figure out how to get Populus to plot data. Any help would be very
> much appreciated! Thank you!
>
> Sincerely,
> Louise Stevenson
> Graduate Student, University of California, Santa Barbara
> Department of Ecology, Evolution and Marine Biology
>
> __
> R-help@r-project.org mailing list
> 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
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] R GUI for undergraduate lab class?

2014-07-12 Thread Roy Mendelssohn
There are probably several solutions to what you want to do, but you might look 
at Shiny as one possibility:

http://shiny.rstudio.com

-Roy M.
On Jul 12, 2014, at 1:47 PM, Louise Stevenson 
 wrote:

> Hi,
> 
> I'm working on a new set of simple, ecological modeling exercises for our
> campus' undergraduate Introductory Biology lab series. The students work
> with simple population models by looking at graphs and seeing how changing
> parameter values and initial population sizes changes how the populations
> fluctuate through time. Does anyone know of an existing R GUI or any other
> interface that would be good for an undergraduate setting? Basically I want
> something that shows the students the model's output as graphs and lets them
> change parameter values but the equations/coding itself is hidden such that
> they can't change any of that. I want what Populus can do (a fantastic
> program written for this exact purpose, info here:
> http://www.cbs.umn.edu/research/resources/populus) but I want to be able to
> upload data so the students can compare model outputs to real data and I
> can't figure out how to get Populus to plot data. Any help would be very
> much appreciated! Thank you!
> 
> Sincerely,
> Louise Stevenson
> Graduate Student, University of California, Santa Barbara
> Department of Ecology, Evolution and Marine Biology
> 
> __
> R-help@r-project.org mailing list
> 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.

**
"The contents of this message do not reflect any position of the U.S. 
Government or NOAA."
**
Roy Mendelssohn
Supervisory Operations Research Analyst
NOAA/NMFS
Environmental Research Division
Southwest Fisheries Science Center
1352 Lighthouse Avenue
Pacific Grove, CA 93950-2097

e-mail: roy.mendelss...@noaa.gov (Note new e-mail address)
voice: (831)-648-9029
fax: (831)-648-8440
www: http://www.pfeg.noaa.gov/

"Old age and treachery will overcome youth and skill."
"From those who have been given much, much will be expected" 
"the arc of the moral universe is long, but it bends toward justice" -MLK Jr.

__
R-help@r-project.org mailing list
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] R GUI for undergraduate lab class?

2014-07-12 Thread Louise Stevenson
Hi,

I'm working on a new set of simple, ecological modeling exercises for our
campus' undergraduate Introductory Biology lab series. The students work
with simple population models by looking at graphs and seeing how changing
parameter values and initial population sizes changes how the populations
fluctuate through time. Does anyone know of an existing R GUI or any other
interface that would be good for an undergraduate setting? Basically I want
something that shows the students the model's output as graphs and lets them
change parameter values but the equations/coding itself is hidden such that
they can't change any of that. I want what Populus can do (a fantastic
program written for this exact purpose, info here:
http://www.cbs.umn.edu/research/resources/populus) but I want to be able to
upload data so the students can compare model outputs to real data and I
can't figure out how to get Populus to plot data. Any help would be very
much appreciated! Thank you!

Sincerely,
Louise Stevenson
Graduate Student, University of California, Santa Barbara
Department of Ecology, Evolution and Marine Biology

__
R-help@r-project.org mailing list
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] Gui for R-Script

2014-05-30 Thread Jeff Newmiller
Possible, yes, anything is possible, but it your goal is to easily hide R from 
the users then you will probably not find the project worth the effort required.
---
Jeff NewmillerThe .   .  Go Live...
DCN:Basics: ##.#.   ##.#.  Live Go...
  Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/BatteriesO.O#.   #.O#.  with
/Software/Embedded Controllers)   .OO#.   .OO#.  rocks...1k
--- 
Sent from my phone. Please excuse my brevity.

On May 30, 2014 9:48:46 AM PDT, Shane Carey  wrote:
>Hi,
>
>I'm just looking into creating a GUI for my R-Script. Is it possible to
>create a gui for the script and send it to somebody? Maybe as a .exe
>for
>example
>
>Thanks

__
R-help@r-project.org mailing list
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] Gui for R-Script

2014-05-30 Thread Greg Snow
There are several options for creating GUIs depending on how much
control you want and how much work you are willing to put in.

One simple option is the tkexamp function in the TeachingDemos
package.  This approach would require whoever receives your script to
have R running, but then they could just run your script and have a
GUI to change parameters and see the results.

Another option is shiny from the Rstudio developers.  This has 2
options, you can either send a script that the user would then run on
their own machine (would need R and packages installed) or you can set
up a server and send the user the URL, R would only be installed on
the server and the user would only need web access.

I don't know of any options that would produce an .exe, since any R
code does need access to an implementation of R and it seems a bit of
overkill to package all of R with each sample script that you want to
run.

On Fri, May 30, 2014 at 10:48 AM, Shane Carey  wrote:
> Hi,
>
> I'm just looking into creating a GUI for my R-Script. Is it possible to
> create a gui for the script and send it to somebody? Maybe as a .exe for
> example
>
> Thanks
>
>
> --
> Shane
>
> [[alternative HTML version deleted]]
>
> __
> R-help@r-project.org mailing list
> 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.



-- 
Gregory (Greg) L. Snow Ph.D.
538...@gmail.com

__
R-help@r-project.org mailing list
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] Gui for R-Script

2014-05-30 Thread Shane Carey
Hi,

I'm just looking into creating a GUI for my R-Script. Is it possible to
create a gui for the script and send it to somebody? Maybe as a .exe for
example

Thanks


-- 
Shane

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
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] Getting the current number of rows in windows R gui console (Carlos Arias)

2014-01-21 Thread Duncan Murdoch

On 14-01-21 7:27 PM, Carlos Arias wrote:

Hello, I'm currently trying to set some default settings and I know how to
get the width of the console with getOption("width"), this corresponds to
the number of columns of the console in the Rconsole file. I would also
like to get the current number of rows from inside R. Is there an R option
to get this value?



options("width") gives you the line length that various R functions use; 
it doesn't necessarily tell you the window width.  (Setting the window 
width does update the option value, but not vice versa.)


There aren't functions to get window size at the R level, though you 
could theoretically use getWindowsHandle() to get the handle of the R 
console Window, and use Windows API functions to get its measurements. 
You can use loadRconsole() to load new settings from a file.


Duncan Murdoch

__
R-help@r-project.org mailing list
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] Getting the current number of rows in windows R gui console (Carlos Arias)

2014-01-21 Thread Carlos Arias
Hello, I'm currently trying to set some default settings and I know how to
get the width of the console with getOption("width"), this corresponds to
the number of columns of the console in the Rconsole file. I would also
like to get the current number of rows from inside R. Is there an R option
to get this value?

Thank you,

Carlos Arias

Statistician at ICFES Colombia

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
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] GUI tools for R

2013-08-16 Thread mohan . radhakrishnan
Hi,

I am not the expert but I came across shiny.rstudio.org. It has Twitter
bootstrap as its foundation. Others will know if there is a proper web
framework that R can integrate with.


Thanks.





   [R] GUI tools for R  


   ashz 
 to:
   r-help   
16-08-2013 03:19 PM 




   Sent by: 
  r-help-boun...@r-project.org  









Hi,

I wish to build a GUI for my R script, what are the best and easiest tools
to use and which ones as good documentation or books?

Thanks





--
View this message in context:
http://r.789695.n4.nabble.com/GUI-tools-for-R-tp4673925.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
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.




This e-Mail may contain proprietary and confidential information and is sent 
for the intended recipient(s) only.  If by an addressing or transmission error 
this mail has been misdirected to you, you are requested to delete this mail 
immediately. You are also hereby notified that any use, any form of 
reproduction, dissemination, copying, disclosure, modification, distribution 
and/or publication of this e-mail message, contents or its attachment other 
than by its intended recipient/s is strictly prohibited.

Visit us at http://www.polarisFT.com

__
R-help@r-project.org mailing list
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] GUI tools for R

2013-08-16 Thread ashz
Hi,

I wish to build a GUI for my R script, what are the best and easiest tools
to use and which ones as good documentation or books?

Thanks





--
View this message in context: 
http://r.789695.n4.nabble.com/GUI-tools-for-R-tp4673925.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
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] help: R GUI front-end has stopped working

2013-05-13 Thread Duncan Murdoch

On 13-05-13 3:58 AM, irene castro conde wrote:

Hello,

I'm using the function nlminb of the package stats inside a loop and when the number 
of trials grows, R crashes and says "R
GUI front-end has stopped working". Could you help me with this problem? I have 
try in versions 2.15.1,2.15.2 and 3.0.0.


This is a bug that has been reported before:

https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=15244

but so far we don't have an example that is reproducible enough to track 
it down.


Could you please make your code reproducible (e.g. call set.seed(1234) 
at the beginning, or some other seed value) and shorter?  Just pick out 
the value of i that causes the crash, don't loop over 3000 different values.


Duncan Murdoch




sessionInfo()

R version 2.15.2 (2012-10-26)
Platform: i386-w64-mingw32/i386 (32-bit)

locale:
[1] LC_COLLATE=Galician_Spain.1252  LC_CTYPE=Galician_Spain.1252
[3] LC_MONETARY=Galician_Spain.1252 LC_NUMERIC=C
[5] LC_TIME=Galician_Spain.1252

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


This is my code:



u<-runif(3000)

k=13

n=length(u)

prob=vector(length=n)

ro=vector(length=n)

beta1=vector(length=n)

g1=vector(length=n)

sb1=vector(length=n)

low=vector(length=n)

tlow=vector(length=n)

effects=vector(length=n)

vb1=vector(length=n)

AA=list()

BB=list()

nnI=list()

library(stats)

for (i in 1:n){

v=as.numeric(u<=u[i])

p=mean(v)

A=vector(length=k)

n1=n%/%k

A<-sapply(1:k,function(m) A<-sum(v[((m-1)*n1+1):(m*n1)]))

A[k]=sum(v[((k-1)*n1+1):n])

AA[[i]]<-A

B=c(rep(n1,k-1),length(v[((k-1)*n1+1):n]))

BB[[i]]<-B

l1=vector(length=(length(A)))

L1<-function(pe,rho){

for(j in 1:length(A)){

if(A[j]==0){l1[j]=0} else {l1[j]<-sum(log(pe+(-rho/(rho-1))*(0:(A[j]-1}

}

return(sum(l1))}

l2=vector(length=(length(B-A)))

L2<-function(pe,rho){

for(j in 1:length(B-A)){

if((B[j]-A[j])==0){l2[j]=0} else 
{l2[j]<-sum(log(1-pe+(-rho/(rho-1))*(0:(B[j]-A[j]-1}

}

return(sum(l2))}

l3=vector(length=(length(B)))

L3<-function(pe,rho){

for(j in 1:length(A)){

if(B[j]==0){l1[j]=0} else {l3[j]<-sum(log(1+(-rho/(rho-1))*(0:(B[j]-1}

}

return(sum(l3))}

L<-function(pe,rho){

L<-L1(pe,rho)+L2(pe,rho)-L3(pe,rho)

return(L)

}

Max<- function(x){ -L(x[1], x[2])}


opt<-nlminb(c(0.01,0.01), Max,lower = rep(0.001,2), upper = 
rep(0.999,2),control=list(rel.tol=1e-6))
prob[i]=opt$par[1]

ro[i]=opt$par[2]

}


Thanks,
Irene Castro Conde. 
[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
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
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] help: R GUI front-end has stopped working

2013-05-13 Thread PIKAL Petr
Hi

Try to make crashes reproducible. As I said it works on my machine without any 
problem.

sessionInfo()
R Under development (unstable) (2013-02-13 r61942)
Platform: i386-w64-mingw32/i386 (32-bit)

locale:
[1] LC_COLLATE=Czech_Czech Republic.1250  LC_CTYPE=Czech_Czech Republic.1250
[3] LC_MONETARY=Czech_Czech Republic.1250 LC_NUMERIC=C
[5] LC_TIME=Czech_Czech Republic.1250

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

other attached packages:
[1] lattice_0.20-13 fun_0.1

Maybe you could use ?debug or similar means for tracing values and evaluating 
the way your code is working.

Maybe others can give you better insight so I cc to list.

Regards
Petr

From: irene castro conde [mailto:erea...@hotmail.com]
Sent: Monday, May 13, 2013 10:49 AM
To: PIKAL Petr
Subject: RE: [R] help: R GUI front-end has stopped working

Hi,

Thanks for answering. Yes, it is an extract of my function, I have to 
optimizate the L function, which is an likelihood, to obtain a vector of ro and 
another of prob. I have just try again and R have crashed. What can be happend? 
because it crashes in my boss computer too. But the thing it is that it does 
not crash always but it does the most of the times. Specially with a big "n".


Regards,
Irene.
> From: petr.pi...@precheza.cz<mailto:petr.pi...@precheza.cz>
> To: erea...@hotmail.com<mailto:erea...@hotmail.com>; 
> r-help@r-project.org<mailto:r-help@r-project.org>
> Subject: RE: [R] help: R GUI front-end has stopped working
> Date: Mon, 13 May 2013 08:33:32 +
>
> Hi
>
> Works for me without error. However are you sure your code does what you 
> suppose it does?
>
> It does not return anything visible
>
> BB is list 3000x13 with all values same except last element in each node.
> AA is list 3000x13 with various values.
> ro is a vector with 2997 values 0.001 one value .999 and 2 values 0.008
>
> I did not check values of other objects.
>
> Regards
> Petr
>
>
> > -Original Message-
> > From: r-help-boun...@r-project.org<mailto:r-help-boun...@r-project.org> 
> > [mailto:r-help-bounces@r-
> > project.org<mailto:r-help-bounces@r-%0b%3e%20%3e%20project.org>] On Behalf 
> > Of irene castro conde
> > Sent: Monday, May 13, 2013 9:59 AM
> > To: R-help@r-project.org<mailto:R-help@r-project.org>
> > Subject: [R] help: R GUI front-end has stopped working
> >
> > Hello,
> >
> > I'm using the function nlminb of the package stats inside a loop and
> > when the number of trials grows, R crashes and says "R GUI front-end
> > has stopped working". Could you help me with this problem? I have try
> > in versions 2.15.1,2.15.2 and 3.0.0.
> >
> > > sessionInfo()
> > R version 2.15.2 (2012-10-26)
> > Platform: i386-w64-mingw32/i386 (32-bit)
> >
> > locale:
> > [1] LC_COLLATE=Galician_Spain.1252 LC_CTYPE=Galician_Spain.1252
> > [3] LC_MONETARY=Galician_Spain.1252 LC_NUMERIC=C
> > [5] LC_TIME=Galician_Spain.1252
> >
> > attached base packages:
> > [1] stats graphics grDevices utils datasets methods base
> >
> >
> > This is my code:
> >
> >
> >
> > u<-runif(3000)
> >
> > k=13
> >
> > n=length(u)
> >
> > prob=vector(length=n)
> >
> > ro=vector(length=n)
> >
> > beta1=vector(length=n)
> >
> > g1=vector(length=n)
> >
> > sb1=vector(length=n)
> >
> > low=vector(length=n)
> >
> > tlow=vector(length=n)
> >
> > effects=vector(length=n)
> >
> > vb1=vector(length=n)
> >
> > AA=list()
> >
> > BB=list()
> >
> > nnI=list()
> >
> > library(stats)
> >
> > for (i in 1:n){
> >
> > v=as.numeric(u<=u[i])
> >
> > p=mean(v)
> >
> > A=vector(length=k)
> >
> > n1=n%/%k
> >
> > A<-sapply(1:k,function(m) A<-sum(v[((m-1)*n1+1):(m*n1)]))
> >
> > A[k]=sum(v[((k-1)*n1+1):n])
> >
> > AA[[i]]<-A
> >
> > B=c(rep(n1,k-1),length(v[((k-1)*n1+1):n]))
> >
> > BB[[i]]<-B
> >
> > l1=vector(length=(length(A)))
> >
> > L1<-function(pe,rho){
> >
> > for(j in 1:length(A)){
> >
> > if(A[j]==0){l1[j]=0} else {l1[j]<-sum(log(pe+(-rho/(rho-1))*(0:(A[j]-
> > 1}
> >
> > }
> >
> > return(sum(l1))}
> >
> > l2=vector(length=(length(B-A)))
> >
> > L2<-function(pe,rho){
> >
> > for(j in 1:length(B-A)){
> >
> > if((B[j]-A[j])==0){l2[j]=0} else {l2[j]<-sum(log(1-pe+(-rho/(rho-
> > 1))*(0:(B[j]-A[j]-1}
> >

Re: [R] help: R GUI front-end has stopped working

2013-05-13 Thread PIKAL Petr
Hi

Works for me without error. However are you sure your code does what you 
suppose it does?

It does not return anything visible

BB is list 3000x13 with all values same except last element in each node.
AA is list 3000x13 with various values.
ro is a vector with 2997 values 0.001 one value .999 and 2 values 0.008

I did not check values of other objects.

Regards
Petr


> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-bounces@r-
> project.org] On Behalf Of irene castro conde
> Sent: Monday, May 13, 2013 9:59 AM
> To: R-help@r-project.org
> Subject: [R] help: R GUI front-end has stopped working
> 
> Hello,
> 
> I'm using the function nlminb of the package stats inside a loop and
> when the number of trials grows, R crashes and says "R GUI front-end
> has stopped working". Could you help me with this problem? I have try
> in versions 2.15.1,2.15.2 and 3.0.0.
> 
> > sessionInfo()
> R version 2.15.2 (2012-10-26)
> Platform: i386-w64-mingw32/i386 (32-bit)
> 
> locale:
> [1] LC_COLLATE=Galician_Spain.1252  LC_CTYPE=Galician_Spain.1252
> [3] LC_MONETARY=Galician_Spain.1252 LC_NUMERIC=C
> [5] LC_TIME=Galician_Spain.1252
> 
> attached base packages:
> [1] stats graphics  grDevices utils datasets  methods   base
> 
> 
> This is my code:
> 
> 
> 
> u<-runif(3000)
> 
> k=13
> 
> n=length(u)
> 
> prob=vector(length=n)
> 
> ro=vector(length=n)
> 
> beta1=vector(length=n)
> 
> g1=vector(length=n)
> 
> sb1=vector(length=n)
> 
> low=vector(length=n)
> 
> tlow=vector(length=n)
> 
> effects=vector(length=n)
> 
> vb1=vector(length=n)
> 
> AA=list()
> 
> BB=list()
> 
> nnI=list()
> 
> library(stats)
> 
> for (i in 1:n){
> 
> v=as.numeric(u<=u[i])
> 
> p=mean(v)
> 
> A=vector(length=k)
> 
> n1=n%/%k
> 
> A<-sapply(1:k,function(m) A<-sum(v[((m-1)*n1+1):(m*n1)]))
> 
> A[k]=sum(v[((k-1)*n1+1):n])
> 
> AA[[i]]<-A
> 
> B=c(rep(n1,k-1),length(v[((k-1)*n1+1):n]))
> 
> BB[[i]]<-B
> 
> l1=vector(length=(length(A)))
> 
> L1<-function(pe,rho){
> 
> for(j in 1:length(A)){
> 
> if(A[j]==0){l1[j]=0} else {l1[j]<-sum(log(pe+(-rho/(rho-1))*(0:(A[j]-
> 1}
> 
> }
> 
> return(sum(l1))}
> 
> l2=vector(length=(length(B-A)))
> 
> L2<-function(pe,rho){
> 
> for(j in 1:length(B-A)){
> 
> if((B[j]-A[j])==0){l2[j]=0} else {l2[j]<-sum(log(1-pe+(-rho/(rho-
> 1))*(0:(B[j]-A[j]-1}
> 
> }
> 
> return(sum(l2))}
> 
> l3=vector(length=(length(B)))
> 
> L3<-function(pe,rho){
> 
> for(j in 1:length(A)){
> 
> if(B[j]==0){l1[j]=0} else {l3[j]<-sum(log(1+(-rho/(rho-1))*(0:(B[j]-
> 1}
> 
> }
> 
> return(sum(l3))}
> 
> L<-function(pe,rho){
> 
> L<-L1(pe,rho)+L2(pe,rho)-L3(pe,rho)
> 
> return(L)
> 
> }
> 
> Max<- function(x){ -L(x[1], x[2])}
> 
> 
> opt<-nlminb(c(0.01,0.01), Max,lower = rep(0.001,2), upper =
> rep(0.999,2),control=list(rel.tol=1e-6))
> prob[i]=opt$par[1]
> 
> ro[i]=opt$par[2]
> 
> }
> 
> 
> Thanks,
> Irene Castro Conde.
>   [[alternative HTML version deleted]]
> 
> __
> R-help@r-project.org mailing list
> 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
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 GUI front-end has stopped working

2013-05-13 Thread irene castro conde
Hello,

I'm using the function nlminb of the package stats inside a loop and when the 
number of trials grows, R crashes and says "R 
GUI front-end has stopped working". Could you help me with this problem? I have 
try in versions 2.15.1,2.15.2 and 3.0.0.  

> sessionInfo()
R version 2.15.2 (2012-10-26)
Platform: i386-w64-mingw32/i386 (32-bit)

locale:
[1] LC_COLLATE=Galician_Spain.1252  LC_CTYPE=Galician_Spain.1252   
[3] LC_MONETARY=Galician_Spain.1252 LC_NUMERIC=C   
[5] LC_TIME=Galician_Spain.1252

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


This is my code:



u<-runif(3000)

k=13

n=length(u)

prob=vector(length=n)

ro=vector(length=n)

beta1=vector(length=n)

g1=vector(length=n)

sb1=vector(length=n)

low=vector(length=n)

tlow=vector(length=n)

effects=vector(length=n)

vb1=vector(length=n)

AA=list()

BB=list()

nnI=list()

library(stats)

for (i in 1:n){

v=as.numeric(u<=u[i])

p=mean(v)

A=vector(length=k)

n1=n%/%k

A<-sapply(1:k,function(m) A<-sum(v[((m-1)*n1+1):(m*n1)]))

A[k]=sum(v[((k-1)*n1+1):n])

AA[[i]]<-A

B=c(rep(n1,k-1),length(v[((k-1)*n1+1):n]))

BB[[i]]<-B

l1=vector(length=(length(A)))

L1<-function(pe,rho){

for(j in 1:length(A)){

if(A[j]==0){l1[j]=0} else {l1[j]<-sum(log(pe+(-rho/(rho-1))*(0:(A[j]-1}

}

return(sum(l1))}

l2=vector(length=(length(B-A)))

L2<-function(pe,rho){

for(j in 1:length(B-A)){

if((B[j]-A[j])==0){l2[j]=0} else 
{l2[j]<-sum(log(1-pe+(-rho/(rho-1))*(0:(B[j]-A[j]-1}

}

return(sum(l2))}

l3=vector(length=(length(B)))

L3<-function(pe,rho){

for(j in 1:length(A)){

if(B[j]==0){l1[j]=0} else {l3[j]<-sum(log(1+(-rho/(rho-1))*(0:(B[j]-1}

}

return(sum(l3))}

L<-function(pe,rho){

L<-L1(pe,rho)+L2(pe,rho)-L3(pe,rho)

return(L)

}

Max<- function(x){ -L(x[1], x[2])}


opt<-nlminb(c(0.01,0.01), Max,lower = rep(0.001,2), upper = 
rep(0.999,2),control=list(rel.tol=1e-6))
prob[i]=opt$par[1]

ro[i]=opt$par[2]

}


Thanks,
Irene Castro Conde.   
[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
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] R GUI frond has stopped working

2013-03-10 Thread Jeff Newmiller
t;> trying URL
>>>>
>>>
>'http://bioconductor.org/packages/2.11/bioc/bin/windows/contrib/2.15/BiocGen
>>>> erics_0.4.0.zip'
>>>> Content type 'application/zip' length 246934 bytes (241 Kb)
>>>> opened URL
>>>> downloaded 241 Kb
>>>>
>>>> trying URL
>>> 'http://cran.fhcrc.org/bin/windows/contrib/2.15/Rcpp_0.10.2.zip'
>>>> Content type 'application/zip' length 3882722 bytes (3.7 Mb)
>>>> opened URL
>>>> downloaded 3.7 Mb
>>>>
>>>> trying URL
>>>>
>>>
>'http://bioconductor.org/packages/2.11/bioc/bin/windows/contrib/2.15/Biobase
>>>> _2.18.0.zip'
>>>> Content type 'application/zip' length 2346708 bytes (2.2 Mb)
>>>> opened URL
>>>> downloaded 2.2 Mb
>>>>
>>>> trying URL
>>>> 'http://cran.fhcrc.org/bin/windows/contrib/2.15/waveslim_1.7.1.zip'
>>>> Content type 'application/zip' length 927137 bytes (905 Kb)
>>>> opened URL
>>>> downloaded 905 Kb
>>>>
>>>> trying URL
>>>>
>>>
>'http://bioconductor.org/packages/2.11/bioc/bin/windows/contrib/2.15/mzR_1.4
>>>> .6.zip'
>>>> Content type 'application/zip' length 3256167 bytes (3.1 Mb)
>>>> opened URL
>>>> downloaded 3.1 Mb
>>>>
>>>> trying URL
>>>>
>>>
>'http://bioconductor.org/packages/2.11/data/experiment/bin/windows/contrib/2
>>>> .15/faahKO_1.2.12.zip'
>>>> Content type 'application/zip' length 16590820 bytes (15.8 Mb)
>>>> opened URL
>>>> downloaded 15.8 Mb
>>>>
>>>> trying URL
>>>>
>>>
>'http://bioconductor.org/packages/2.11/data/experiment/bin/windows/contrib/2
>>>> .15/msdata_0.1.12.zip'
>>>> Content type 'application/zip' length 13742308 bytes (13.1 Mb)
>>>> opened URL
>>>> downloaded 13.1 Mb
>>>>
>>>> trying URL
>>> 'http://cran.fhcrc.org/bin/windows/contrib/2.15/ncdf_1.6.6.zip'
>>>> Content type 'application/zip' length 331657 bytes (323 Kb)
>>>> opened URL
>>>> downloaded 323 Kb
>>>>
>>>> trying URL
>>>>
>>>
>'http://bioconductor.org/packages/2.11/bioc/bin/windows/contrib/2.15/multtes
>>>> t_2.14.0.zip'
>>>> Content type 'application/zip' length 1512257 bytes (1.4 Mb)
>>>> opened URL
>>>> downloaded 1.4 Mb
>>>>
>>>> trying URL
>>> 'http://cran.fhcrc.org/bin/windows/contrib/2.15/rgl_0.93.928.zip'
>>>> Content type 'application/zip' length 1978923 bytes (1.9 Mb)
>>>> opened URL
>>>> downloaded 1.9 Mb
>>>>
>>>> trying URL
>>>>
>>>
>'http://bioconductor.org/packages/2.11/bioc/bin/windows/contrib/2.15/MassSpe
>>>> cWavelet_1.24.0.zip'
>>>> Content type 'application/zip' length 1190983 bytes (1.1 Mb)
>>>> opened URL
>>>> downloaded 1.1 Mb
>>>>
>>>> trying URL
>>> 'http://cran.fhcrc.org/bin/windows/contrib/2.15/RANN_2.2.1.zip'
>>>> Content type 'application/zip' length 445857 bytes (435 Kb)
>>>> opened URL
>>>> downloaded 435 Kb
>>>>
>>>> trying URL
>>> 'http://cran.fhcrc.org/bin/windows/contrib/2.15/snow_0.3-10.zip'
>>>> Content type 'application/zip' length 65961 bytes (64 Kb)
>>>> opened URL
>>>> downloaded 64 Kb
>>>>
>>>> trying URL
>>> 'http://cran.fhcrc.org/bin/windows/contrib/2.15/RUnit_0.4.26.zip'
>>>> Content type 'application/zip' length 195724 bytes (191 Kb)
>>>> opened URL
>>>> downloaded 191 Kb
>>>>
>>>> trying URL
>>>>
>>>
>'http://bioconductor.org/packages/2.11/bioc/bin/windows/contrib/2.15/xcms_1.
>>>> 34.0.zip'
>>>> Content type 'application/zip' length 1871439 bytes (1.8 Mb)
>>>> opened URL
>>>> downloaded 1.8 Mb
>>>>
>>>> package 'BiocGenerics' successfully unpacked and MD5 sums checked
>>>> package 'Rcpp' successfully unpacked and MD5 sums checked
>>>> package 'Biobase&#x

Re: [R] R GUI frond has stopped working

2013-03-10 Thread Uwe Ligges
type 'application/zip' length 1978923 bytes (1.9 Mb)
opened URL
downloaded 1.9 Mb

trying URL


'http://bioconductor.org/packages/2.11/bioc/bin/windows/contrib/2.15/MassSpe

cWavelet_1.24.0.zip'
Content type 'application/zip' length 1190983 bytes (1.1 Mb)
opened URL
downloaded 1.1 Mb

trying URL

'http://cran.fhcrc.org/bin/windows/contrib/2.15/RANN_2.2.1.zip'

Content type 'application/zip' length 445857 bytes (435 Kb)
opened URL
downloaded 435 Kb

trying URL

'http://cran.fhcrc.org/bin/windows/contrib/2.15/snow_0.3-10.zip'

Content type 'application/zip' length 65961 bytes (64 Kb)
opened URL
downloaded 64 Kb

trying URL

'http://cran.fhcrc.org/bin/windows/contrib/2.15/RUnit_0.4.26.zip'

Content type 'application/zip' length 195724 bytes (191 Kb)
opened URL
downloaded 191 Kb

trying URL


'http://bioconductor.org/packages/2.11/bioc/bin/windows/contrib/2.15/xcms_1.

34.0.zip'
Content type 'application/zip' length 1871439 bytes (1.8 Mb)
opened URL
downloaded 1.8 Mb

package 'BiocGenerics' successfully unpacked and MD5 sums checked
package 'Rcpp' successfully unpacked and MD5 sums checked
package 'Biobase' successfully unpacked and MD5 sums checked
package 'waveslim' successfully unpacked and MD5 sums checked
package 'mzR' successfully unpacked and MD5 sums checked
package 'faahKO' successfully unpacked and MD5 sums checked
package 'msdata' successfully unpacked and MD5 sums checked
package 'ncdf' successfully unpacked and MD5 sums checked
package 'multtest' successfully unpacked and MD5 sums checked
package 'rgl' successfully unpacked and MD5 sums checked
package 'MassSpecWavelet' successfully unpacked and MD5 sums checked
package 'RANN' successfully unpacked and MD5 sums checked
package 'snow' successfully unpacked and MD5 sums checked
package 'RUnit' successfully unpacked and MD5 sums checked
package 'xcms' successfully unpacked and MD5 sums checked

The downloaded binary packages are in
C:\Users\Philippos\AppData\Local\Temp\RtmpW2o83w\downloaded_packages
Warning message:
installed directory not writable, cannot update packages

'KernSmooth',

'survival'

Apologies if I was doing any silly mistakes
Filippos

-Original Message-
From: Uwe Ligges [mailto:lig...@statistik.tu-dortmund.de]
Sent: 09 March 2013 15:14
To: lefelit
Cc: 'PIKAL Petr'; r-help@r-project.org
Subject: Re: [R] R GUI frond has stopped working



On 09.03.2013 00:53, lefelit wrote:

Hi

I found the source of the problem. The R would not let me update the
"survival" and "KernSmooth" package at the R/library folder. I
manually delete them and then download the latest version of them to
proceed with the xcms installation. I work on a window 7 computer

and

R 2.15.3/2/1 (all version gave the same error).

Hope this provides more information about the problem


"Not let me update" means either you have not had the required

permissions

for the file access or you had the packages already loaded, so R

could not

remove them.

Uwe Ligges



Regards
Filippos



-Original Message-
From: PIKAL Petr [mailto:petr.pi...@precheza.cz]
Sent: 08 March 2013 15:18
To: lefelit; r-help@r-project.org
Subject: RE: [R] R GUI frond has stopped working

Hi

Some issues:

1 do not use HTML mail
2 what OS
3 which R version
4 when and how it stopped working - exact error message (if any)
5 did you ask xcms maintainer for help? (it is not in standard CRAN
packages)
6 try to send reproducible example for others to enable them to test
the problem

Regards
Petr



-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-bounces@r-
project.org] On Behalf Of lefelit
Sent: Friday, March 08, 2013 10:58 AM
To: r-help@r-project.org
Subject: [R] R GUI frond has stopped working

Hi



I have sent couple of days ago an email describing an issue in
regards to R software when I use the xcms package. I haven't got

any

response whether my post has been made public to receive any help

for

other users. Is my email again treated as spam or considered as
inappropriate to be published?



Kind regards

Filippos


[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
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
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
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
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
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] R GUI frond has stopped working

2013-03-09 Thread Jeff Newmiller
;> downloaded 13.1 Mb
>>
>> trying URL
>'http://cran.fhcrc.org/bin/windows/contrib/2.15/ncdf_1.6.6.zip'
>> Content type 'application/zip' length 331657 bytes (323 Kb)
>> opened URL
>> downloaded 323 Kb
>>
>> trying URL
>>
>'http://bioconductor.org/packages/2.11/bioc/bin/windows/contrib/2.15/multtes
>> t_2.14.0.zip'
>> Content type 'application/zip' length 1512257 bytes (1.4 Mb)
>> opened URL
>> downloaded 1.4 Mb
>>
>> trying URL
>'http://cran.fhcrc.org/bin/windows/contrib/2.15/rgl_0.93.928.zip'
>> Content type 'application/zip' length 1978923 bytes (1.9 Mb)
>> opened URL
>> downloaded 1.9 Mb
>>
>> trying URL
>>
>'http://bioconductor.org/packages/2.11/bioc/bin/windows/contrib/2.15/MassSpe
>> cWavelet_1.24.0.zip'
>> Content type 'application/zip' length 1190983 bytes (1.1 Mb)
>> opened URL
>> downloaded 1.1 Mb
>>
>> trying URL
>'http://cran.fhcrc.org/bin/windows/contrib/2.15/RANN_2.2.1.zip'
>> Content type 'application/zip' length 445857 bytes (435 Kb)
>> opened URL
>> downloaded 435 Kb
>>
>> trying URL
>'http://cran.fhcrc.org/bin/windows/contrib/2.15/snow_0.3-10.zip'
>> Content type 'application/zip' length 65961 bytes (64 Kb)
>> opened URL
>> downloaded 64 Kb
>>
>> trying URL
>'http://cran.fhcrc.org/bin/windows/contrib/2.15/RUnit_0.4.26.zip'
>> Content type 'application/zip' length 195724 bytes (191 Kb)
>> opened URL
>> downloaded 191 Kb
>>
>> trying URL
>>
>'http://bioconductor.org/packages/2.11/bioc/bin/windows/contrib/2.15/xcms_1.
>> 34.0.zip'
>> Content type 'application/zip' length 1871439 bytes (1.8 Mb)
>> opened URL
>> downloaded 1.8 Mb
>>
>> package 'BiocGenerics' successfully unpacked and MD5 sums checked
>> package 'Rcpp' successfully unpacked and MD5 sums checked
>> package 'Biobase' successfully unpacked and MD5 sums checked
>> package 'waveslim' successfully unpacked and MD5 sums checked
>> package 'mzR' successfully unpacked and MD5 sums checked
>> package 'faahKO' successfully unpacked and MD5 sums checked
>> package 'msdata' successfully unpacked and MD5 sums checked
>> package 'ncdf' successfully unpacked and MD5 sums checked
>> package 'multtest' successfully unpacked and MD5 sums checked
>> package 'rgl' successfully unpacked and MD5 sums checked
>> package 'MassSpecWavelet' successfully unpacked and MD5 sums checked
>> package 'RANN' successfully unpacked and MD5 sums checked
>> package 'snow' successfully unpacked and MD5 sums checked
>> package 'RUnit' successfully unpacked and MD5 sums checked
>> package 'xcms' successfully unpacked and MD5 sums checked
>>
>> The downloaded binary packages are in
>> C:\Users\Philippos\AppData\Local\Temp\RtmpW2o83w\downloaded_packages
>> Warning message:
>> installed directory not writable, cannot update packages
>'KernSmooth',
>> 'survival'
>>
>> Apologies if I was doing any silly mistakes
>> Filippos
>>
>> -Original Message-
>> From: Uwe Ligges [mailto:lig...@statistik.tu-dortmund.de]
>> Sent: 09 March 2013 15:14
>> To: lefelit
>> Cc: 'PIKAL Petr'; r-help@r-project.org
>> Subject: Re: [R] R GUI frond has stopped working
>>
>>
>>
>> On 09.03.2013 00:53, lefelit wrote:
>>> Hi
>>>
>>> I found the source of the problem. The R would not let me update the
>>> "survival" and "KernSmooth" package at the R/library folder. I
>>> manually delete them and then download the latest version of them to
>>> proceed with the xcms installation. I work on a window 7 computer
>and
>>> R 2.15.3/2/1 (all version gave the same error).
>>>
>>> Hope this provides more information about the problem
>>
>> "Not let me update" means either you have not had the required
>permissions
>> for the file access or you had the packages already loaded, so R
>could not
>> remove them.
>>
>> Uwe Ligges
>>
>>
>>> Regards
>>> Filippos
>>>
>>>
>>>
>>> -Original Message-
>>> From: PIKAL Petr [mailto:petr.pi...@precheza.cz]
>>> Sent: 08 March 2013 15:18
>>> To: lefelit; r-h

Re: [R] R GUI frond has stopped working

2013-03-09 Thread lefelit
D5 sums checked
package 'ncdf' successfully unpacked and MD5 sums checked
package 'multtest' successfully unpacked and MD5 sums checked
package 'rgl' successfully unpacked and MD5 sums checked
package 'MassSpecWavelet' successfully unpacked and MD5 sums checked
package 'RANN' successfully unpacked and MD5 sums checked
package 'snow' successfully unpacked and MD5 sums checked
package 'RUnit' successfully unpacked and MD5 sums checked
package 'xcms' successfully unpacked and MD5 sums checked

The downloaded binary packages are in
C:\Users\Philippos\AppData\Local\Temp\RtmpW2o83w\downloaded_packages
Warning message:
installed directory not writable, cannot update packages 'KernSmooth',
'survival'

Apologies if I was doing any silly mistakes 
Filippos

-Original Message-
From: Uwe Ligges [mailto:lig...@statistik.tu-dortmund.de] 
Sent: 09 March 2013 15:14
To: lefelit
Cc: 'PIKAL Petr'; r-help@r-project.org
Subject: Re: [R] R GUI frond has stopped working



On 09.03.2013 00:53, lefelit wrote:
> Hi
>
> I found the source of the problem. The R would not let me update the 
> "survival" and "KernSmooth" package at the R/library folder. I 
> manually delete them and then download the latest version of them to 
> proceed with the xcms installation. I work on a window 7 computer and 
> R 2.15.3/2/1 (all version gave the same error).
>
> Hope this provides more information about the problem

"Not let me update" means either you have not had the required permissions
for the file access or you had the packages already loaded, so R could not
remove them.

Uwe Ligges


> Regards
> Filippos
>
>
>
> -Original Message-
> From: PIKAL Petr [mailto:petr.pi...@precheza.cz]
> Sent: 08 March 2013 15:18
> To: lefelit; r-help@r-project.org
> Subject: RE: [R] R GUI frond has stopped working
>
> Hi
>
> Some issues:
>
> 1 do not use HTML mail
> 2 what OS
> 3 which R version
> 4 when and how it stopped working - exact error message (if any)
> 5 did you ask xcms maintainer for help? (it is not in standard CRAN
> packages)
> 6 try to send reproducible example for others to enable them to test 
> the problem
>
> Regards
> Petr
>
>
>> -Original Message-
>> From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- 
>> project.org] On Behalf Of lefelit
>> Sent: Friday, March 08, 2013 10:58 AM
>> To: r-help@r-project.org
>> Subject: [R] R GUI frond has stopped working
>>
>> Hi
>>
>>
>>
>> I have sent couple of days ago an email describing an issue in 
>> regards to R software when I use the xcms package. I haven't got any 
>> response whether my post has been made public to receive any help for 
>> other users. Is my email again treated as spam or considered as 
>> inappropriate to be published?
>>
>>
>>
>> Kind regards
>>
>> Filippos
>>
>>
>>  [[alternative HTML version deleted]]
>>
>> __
>> R-help@r-project.org mailing list
>> 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
> 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
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] R GUI frond has stopped working

2013-03-09 Thread Uwe Ligges
d and MD5 sums checked
package 'mzR' successfully unpacked and MD5 sums checked
package 'faahKO' successfully unpacked and MD5 sums checked
package 'msdata' successfully unpacked and MD5 sums checked
package 'ncdf' successfully unpacked and MD5 sums checked
package 'multtest' successfully unpacked and MD5 sums checked
package 'rgl' successfully unpacked and MD5 sums checked
package 'MassSpecWavelet' successfully unpacked and MD5 sums checked
package 'RANN' successfully unpacked and MD5 sums checked
package 'snow' successfully unpacked and MD5 sums checked
package 'RUnit' successfully unpacked and MD5 sums checked
package 'xcms' successfully unpacked and MD5 sums checked

The downloaded binary packages are in
C:\Users\Philippos\AppData\Local\Temp\RtmpW2o83w\downloaded_packages
Warning message:
installed directory not writable, cannot update packages 'KernSmooth',
'survival'

Apologies if I was doing any silly mistakes
Filippos

-Original Message-
From: Uwe Ligges [mailto:lig...@statistik.tu-dortmund.de]
Sent: 09 March 2013 15:14
To: lefelit
Cc: 'PIKAL Petr'; r-help@r-project.org
Subject: Re: [R] R GUI frond has stopped working



On 09.03.2013 00:53, lefelit wrote:

Hi

I found the source of the problem. The R would not let me update the
"survival" and "KernSmooth" package at the R/library folder. I
manually delete them and then download the latest version of them to
proceed with the xcms installation. I work on a window 7 computer and
R 2.15.3/2/1 (all version gave the same error).

Hope this provides more information about the problem


"Not let me update" means either you have not had the required permissions
for the file access or you had the packages already loaded, so R could not
remove them.

Uwe Ligges



Regards
Filippos



-Original Message-
From: PIKAL Petr [mailto:petr.pi...@precheza.cz]
Sent: 08 March 2013 15:18
To: lefelit; r-help@r-project.org
Subject: RE: [R] R GUI frond has stopped working

Hi

Some issues:

1 do not use HTML mail
2 what OS
3 which R version
4 when and how it stopped working - exact error message (if any)
5 did you ask xcms maintainer for help? (it is not in standard CRAN
packages)
6 try to send reproducible example for others to enable them to test
the problem

Regards
Petr



-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-bounces@r-
project.org] On Behalf Of lefelit
Sent: Friday, March 08, 2013 10:58 AM
To: r-help@r-project.org
Subject: [R] R GUI frond has stopped working

Hi



I have sent couple of days ago an email describing an issue in
regards to R software when I use the xcms package. I haven't got any
response whether my post has been made public to receive any help for
other users. Is my email again treated as spam or considered as
inappropriate to be published?



Kind regards

Filippos


[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
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
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
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] R GUI frond has stopped working

2013-03-09 Thread Uwe Ligges



On 09.03.2013 00:53, lefelit wrote:

Hi

I found the source of the problem. The R would not let me update the
"survival" and "KernSmooth" package at the R/library folder. I manually
delete them and then download the latest version of them to proceed with the
xcms installation. I work on a window 7 computer and R 2.15.3/2/1 (all
version gave the same error).

Hope this provides more information about the problem


"Not let me update" means either you have not had the required 
permissions for the file access or you had the packages already loaded, 
so R could not remove them.


Uwe Ligges



Regards
Filippos



-Original Message-
From: PIKAL Petr [mailto:petr.pi...@precheza.cz]
Sent: 08 March 2013 15:18
To: lefelit; r-help@r-project.org
Subject: RE: [R] R GUI frond has stopped working

Hi

Some issues:

1 do not use HTML mail
2 what OS
3 which R version
4 when and how it stopped working - exact error message (if any)
5 did you ask xcms maintainer for help? (it is not in standard CRAN
packages)
6 try to send reproducible example for others to enable them to test the
problem

Regards
Petr



-Original Message-
From: r-help-boun...@r-project.org [mailto:r-help-bounces@r-
project.org] On Behalf Of lefelit
Sent: Friday, March 08, 2013 10:58 AM
To: r-help@r-project.org
Subject: [R] R GUI frond has stopped working

Hi



I have sent couple of days ago an email describing an issue in regards
to R software when I use the xcms package. I haven't got any response
whether my post has been made public to receive any help for other
users. Is my email again treated as spam or considered as
inappropriate to be published?



Kind regards

Filippos


[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
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
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
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] R GUI frond has stopped working

2013-03-08 Thread lefelit
Hi 

I found the source of the problem. The R would not let me update the
"survival" and "KernSmooth" package at the R/library folder. I manually
delete them and then download the latest version of them to proceed with the
xcms installation. I work on a window 7 computer and R 2.15.3/2/1 (all
version gave the same error). 

Hope this provides more information about the problem

Regards
Filippos



-Original Message-
From: PIKAL Petr [mailto:petr.pi...@precheza.cz] 
Sent: 08 March 2013 15:18
To: lefelit; r-help@r-project.org
Subject: RE: [R] R GUI frond has stopped working

Hi

Some issues:

1 do not use HTML mail
2 what OS
3 which R version
4 when and how it stopped working - exact error message (if any)
5 did you ask xcms maintainer for help? (it is not in standard CRAN
packages)
6 try to send reproducible example for others to enable them to test the
problem

Regards
Petr


> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- 
> project.org] On Behalf Of lefelit
> Sent: Friday, March 08, 2013 10:58 AM
> To: r-help@r-project.org
> Subject: [R] R GUI frond has stopped working
> 
> Hi
> 
> 
> 
> I have sent couple of days ago an email describing an issue in regards 
> to R software when I use the xcms package. I haven't got any response 
> whether my post has been made public to receive any help for other 
> users. Is my email again treated as spam or considered as 
> inappropriate to be published?
> 
> 
> 
> Kind regards
> 
> Filippos
> 
> 
>   [[alternative HTML version deleted]]
> 
> __
> R-help@r-project.org mailing list
> 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
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] R GUI frond has stopped working

2013-03-08 Thread PIKAL Petr
Hi

Some issues:

1 do not use HTML mail
2 what OS
3 which R version
4 when and how it stopped working - exact error message (if any)
5 did you ask xcms maintainer for help? (it is not in standard CRAN packages)
6 try to send reproducible example for others to enable them to test the problem

Regards
Petr


> -Original Message-
> From: r-help-boun...@r-project.org [mailto:r-help-bounces@r-
> project.org] On Behalf Of lefelit
> Sent: Friday, March 08, 2013 10:58 AM
> To: r-help@r-project.org
> Subject: [R] R GUI frond has stopped working
> 
> Hi
> 
> 
> 
> I have sent couple of days ago an email describing an issue in regards
> to R software when I use the xcms package. I haven't got any response
> whether my post has been made public to receive any help for other
> users. Is my email again treated as spam or considered as inappropriate
> to be published?
> 
> 
> 
> Kind regards
> 
> Filippos
> 
> 
>   [[alternative HTML version deleted]]
> 
> __
> R-help@r-project.org mailing list
> 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
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] R GUI frond has stopped working

2013-03-08 Thread lefelit
Hi

 

I have sent couple of days ago an email describing an issue in regards to R
software when I use the xcms package. I haven't got any response whether my
post has been made public to receive any help for other users. Is my email
again treated as spam or considered as inappropriate to be published?

 

Kind regards

Filippos 


[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
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] R Gui frond has stopped working

2013-03-06 Thread lefelit
I use R (2.15.2) on a windows 7 (64) for data mining with xcms package. This
is a routine process for me and didn't encount any problems until few weeks
ago when I got an error message for "R GUI  frond end has stopped working".
The following information was given  by windows to describe the error.

 

> \AppData\Local\Temp\WER5936.tmp.WERInternalMetadata.xml

> \AppData\Local\Temp\WER7243.tmp.appcompat.txt

> \AppData\Local\Temp\WER7282.tmp.mdmp

 

I have uninstall and re-install couple of time the R software but it did not
help. Any ideas how to resolve this issue? I even tried to upgrade to 2.15.3
or to 2.15.1 but still get the same error message

 

Thanks in advance for any help

 


[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
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] GUI Development reg

2012-11-16 Thread jverzaniNWBKZ
You can use the `gWidgets` package to do this kind of thing easily enough:

require(gWidgets)
my_vec <- character(0)
items <- state.name ## some  values

handler <- function(h,...) my_vec <<- svalue(h$obj)

w <- gwindow()
g <- ggroup(cont=w, horizontal=FALSE)
## one way to select one or more from many
gcheckboxgroup(items, cont=g, use.table=TRUE, handler=handler)




--
View this message in context: 
http://r.789695.n4.nabble.com/GUI-Development-reg-tp4649569p4649780.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
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] GUI Development reg

2012-11-16 Thread Ista Zahn
Hi Vijayan,

I just discovered http://www.rstudio.com/shiny/ which I think would
make it pretty easy to do this.

Best,
Ista

On Thu, Nov 15, 2012 at 1:31 AM, Vijayan Padmanabhan
 wrote:
> Dear R Group
>
> I have a character vector from which I want to select a few elements and
> create a new character vector.
> I need a GUI to do this in R Script.
> Can someone help?
>
> a<-c("A","B","C","D","E")
>
> ## I want to have a GUI  in R that will display elements in "object a"  as
> a drop down list.. from there I want to be able to select a few elements
> say my requirement is to select "A", "D" and "E" from the list
>
> and want to pass the selection into a new vector b, such that
>
> b<-c("A", "D" , "E")
>
> How do i do this in R?
>
>
>
>
> Regards
> Vijayan Padmanabhan
>
>
> "What is expressed without proof can be denied without proof" - Euclide.
>
> Please visit us at www.itcportal.com
> **
> This Communication is for the exclusive use of the intended recipient (s) and 
> shall
> not attach any liability on the originator or ITC Ltd./its Subsidiaries/its 
> Group
> Companies. If you are the addressee, the contents of this email are intended 
> for your use only and it shall not be forwarded to any third party, without 
> first obtaining written authorisation from the originator or ITC Ltd./its 
> Subsidiaries/its Group Companies. It may contain information which is 
> confidential and legally privileged and the same shall not be used or dealt 
> with by any third party in any manner whatsoever without the specific consent 
> of ITC Ltd./its Subsidiaries/its Group Companies.
> [[alternative HTML version deleted]]
>
> __
> R-help@r-project.org mailing list
> 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
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] GUI Development reg

2012-11-15 Thread Bert Gunter
Vijayan:

Choose one or both from the following.

1. You don't . R is a programming language that you learn. Read the
Intro to R Tutorial to start learning.

2. See the R GUI page on CRAN here: http://www.sciviews.org/_rgui/
 There are several GUI's available for R and you can choose one that
suits.

Cheers,
Bert

On Wed, Nov 14, 2012 at 10:31 PM, Vijayan Padmanabhan
 wrote:
> Dear R Group
>
> I have a character vector from which I want to select a few elements and
> create a new character vector.
> I need a GUI to do this in R Script.
> Can someone help?
>
> a<-c("A","B","C","D","E")
>
> ## I want to have a GUI  in R that will display elements in "object a"  as
> a drop down list.. from there I want to be able to select a few elements
> say my requirement is to select "A", "D" and "E" from the list
>
> and want to pass the selection into a new vector b, such that
>
> b<-c("A", "D" , "E")
>
> How do i do this in R?
>
>
>
>
> Regards
> Vijayan Padmanabhan
>
>
> "What is expressed without proof can be denied without proof" - Euclide.
>
> Please visit us at www.itcportal.com
> **
> This Communication is for the exclusive use of the intended recipient (s) and 
> shall
> not attach any liability on the originator or ITC Ltd./its Subsidiaries/its 
> Group
> Companies. If you are the addressee, the contents of this email are intended 
> for your use only and it shall not be forwarded to any third party, without 
> first obtaining written authorisation from the originator or ITC Ltd./its 
> Subsidiaries/its Group Companies. It may contain information which is 
> confidential and legally privileged and the same shall not be used or dealt 
> with by any third party in any manner whatsoever without the specific consent 
> of ITC Ltd./its Subsidiaries/its Group Companies.
> [[alternative HTML version deleted]]
>
> __
> R-help@r-project.org mailing list
> 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.



-- 

Bert Gunter
Genentech Nonclinical Biostatistics

Internal Contact Info:
Phone: 467-7374
Website:
http://pharmadevelopment.roche.com/index/pdb/pdb-functional-groups/pdb-biostatistics/pdb-ncb-home.htm

__
R-help@r-project.org mailing list
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] GUI Development reg

2012-11-14 Thread Vijayan Padmanabhan
Dear R Group

I have a character vector from which I want to select a few elements and 
create a new character vector.
I need a GUI to do this in R Script.
Can someone help?

a<-c("A","B","C","D","E")

## I want to have a GUI  in R that will display elements in "object a"  as 
a drop down list.. from there I want to be able to select a few elements 
say my requirement is to select "A", "D" and "E" from the list 

and want to pass the selection into a new vector b, such that 

b<-c("A", "D" , "E")

How do i do this in R?




Regards
Vijayan Padmanabhan


"What is expressed without proof can be denied without proof" - Euclide. 

Please visit us at www.itcportal.com
**
This Communication is for the exclusive use of the intended recipient (s) and 
shall
not attach any liability on the originator or ITC Ltd./its Subsidiaries/its 
Group 
Companies. If you are the addressee, the contents of this email are intended 
for your use only and it shall not be forwarded to any third party, without 
first obtaining written authorisation from the originator or ITC Ltd./its 
Subsidiaries/its Group Companies. It may contain information which is 
confidential and legally privileged and the same shall not be used or dealt 
with by any third party in any manner whatsoever without the specific consent 
of ITC Ltd./its Subsidiaries/its Group Companies.
[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
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] Is it possible to start R-GUI in a windowed state under Windows OS

2012-07-16 Thread Michael Sumner
Is it that R is running in SDI mode? Change and save to MDI in GUI
Preferences, then restart R.

Just a guess.

On Monday, July 16, 2012, Wei Wu wrote:

> Is it possible to start R-Gui in a windowed state under windows? (I am
> running Windows 7 and Vista)
> I have the set the property for R icon to "normal window" option, but that
> has no effect.
> Thanks.
>
> __
> R-help@r-project.org  mailing list
> 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.
>


-- 
Michael Sumner
Hobart, Australia
e-mail: mdsum...@gmail.com

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
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] Is it possible to start R-GUI in a windowed state under Windows OS

2012-07-16 Thread Duncan Murdoch

On 12-07-15 6:15 PM, Wei Wu wrote:

Is it possible to start R-Gui in a windowed state under windows? (I am running 
Windows 7 and Vista)
I have the set the property for R icon to "normal window" option, but that has 
no effect.


It always starts in what I would call a "windowed state".  What do you 
want it to do differently?


Duncan Murdoch

__
R-help@r-project.org mailing list
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] Is it possible to start R-GUI in a windowed state under Windows OS

2012-07-15 Thread Wei Wu
Is it possible to start R-Gui in a windowed state under windows? (I am running 
Windows 7 and Vista)
I have the set the property for R icon to "normal window" option, but that has 
no effect.
Thanks.

__
R-help@r-project.org mailing list
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] GUI

2012-01-18 Thread Michael Schmidt
A couple of points.  I don't know which Linux distro you are using, but in
general I think it best to install R from the terminal using a CRAN mirror
rather than from the Linux distro repository.  The distro repositories are
sometimes not completely up to date, so you will get more current updates
from the CRAN repositories.  You will also need to add your CRAN mirror to
the Linux software source so it will automatically check for updates.
Instructions for all of this are on the Internet.  When you add new
packages, also use the terminal and log on as an administrative user.
Otherwise, your new packages may not install to the secure system area.

In Linux, the default is for R to run as a terminal application, so you
will need a GUI.  I use R Commander and it works nicely.  It is my
understanding that for some of the more complex analyses it may be best to
use the terminal.  I had a little trouble customizing my R Commander,
especially the font sizes.  This was a bug that was fixed within 24 hours
and now all is good.  An easy way to keep custom settings is with a
.Rprofile file in your user area.  You will also probably want to create a
desktop launcher.

GUI compatibility shouldn't be a problem.  Unlike Windows, in Linux the GUI
is layered on top of the OS.  So, if you use a gnome desktop and want to
run a KDE GUI, it is just a matter of downloading the necessary packages
specific to the GUI.  Linux usually analyzes dependencies and will download
what you need.  One exception i ran into was with the rgl package in R
Commander.  However, a thread on the Ubuntu site provided information about
the missing packages and, once they were installed, all worked well.

Hopefully, you shouldn't have any problems with either a gnome or KDE
desktop.  I can't be so sure about the Unity desktop that Ubuntu has
adopted.  I know, for example, that there have been issues with swt/Jface
Java applications on Unity.  That's why I switched to Linux Mint.

Hope that helps.

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
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] GUI

2012-01-18 Thread Milan Bouchet-Valat
Le mercredi 18 janvier 2012 à 16:23 +0100, Poul Kristensen a écrit :
> How differs Rstudio from RKward?
They seem to be quite similar, but their feature seats are somewhat
different. I don't know RStudio enough to tell.

> I am not aware of the frequence of releases in R but I think it should
> be considered
> that using packets from repositories ensures that you get the updates
> automaticallly.
Sure (if available).

> If using RKward you have to use KDE as Linux desktop.
> Rstudio is for Gnome.
What makes you think that? Although RKWard is written in Qt and uses KDE
libraries, I'm using it under GNOME and it works very well. It doesn't
look completely the same as GNOME apps, but that's very reasonable.
RStudio doesn't really use GTK themes either.

So basically, when you're using GNOME, RKWard and RStudio are two good
alternatives that won't look absolutely integrated with the rest of the
desktop, but that work very well.

> BTW:
> I hope my mails goes to the list. In Gmails new interface it looks
> like I am only mailing
> to the last sender!.  :/
It didn't work, but let's say I forward it.




Regards

__
R-help@r-project.org mailing list
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] GUI

2012-01-18 Thread Milan Bouchet-Valat
Le mercredi 18 janvier 2012 à 06:11 -0800, Scott Raynaud a écrit :
> I'm setting up a Linux box to run R.  I ususally run in a Windows
> envrionment but after 
> reading the docs I'm not sure what to expect in terms of the front end
> appearance in 
> Linux.  Does it resemble Windows or will I need Rkward or R Commander?
Just try it. :-)

You'll need to install a GUI if you want one on Linux. The good news is,
there are plenty of them on Linux too (and I think RKWard is a good
choice there).


Regards

__
R-help@r-project.org mailing list
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] GUI

2012-01-18 Thread Scott Raynaud
I'm setting up a Linux box to run R.  I ususally run in a Windows envrionment 
but after 
reading the docs I'm not sure what to expect in terms of the front end 
appearance in 
Linux.  Does it resemble Windows or will I need Rkward or R Commander?

__
R-help@r-project.org mailing list
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] GUI preferences are not saved

2012-01-14 Thread Prof Brian Ripley

On 15/01/2012 01:57, Phillip Feldman wrote:

I'm running R version 2.14.1 (2011-12-22) on a 32-bit Windows machine.
  I've edited the GUI preferences to increase the font size, saving my
preferences after doing so, but the next time I start an R session, my
changes to the GUI preferences are lost.  Is there a way to make the
GUI preference changes permanent?


Save them in the right place.  See ?Rconsole for where it is looking 
(and a file you can edit directly).


--
Brian D. Ripley,  rip...@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford, Tel:  +44 1865 272861 (self)
1 South Parks Road, +44 1865 272866 (PA)
Oxford OX1 3TG, UKFax:  +44 1865 272595

__
R-help@r-project.org mailing list
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] GUI preferences are not saved

2012-01-14 Thread Phillip Feldman
I'm running R version 2.14.1 (2011-12-22) on a 32-bit Windows machine.
 I've edited the GUI preferences to increase the font size, saving my
preferences after doing so, but the next time I start an R session, my
changes to the GUI preferences are lost.  Is there a way to make the
GUI preference changes permanent?

Phillip

__
R-help@r-project.org mailing list
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] Gui editor / viewer for large data

2011-07-14 Thread Andreas Borg

Dear all,

I am searching for a possibility to view large data sets (e.g. stored in 
ffdf objects) in a GUI window in a memory-efficient way. So far I looked 
at gtkDfEdit (package RGtk2Extras) and gdf (package gWidgets). Both 
operate (as far as I can see) on data frames stored in memory. gtkDfEdit 
accepts an ff data frame as input, but there is a long delay before it 
shows up, so I presume the data is converted to an in-memory data.frame 
beforehand.


Ideal would be a solution similar to JTable in Java, where one can 
implement a 'table model' class with a method ("getValueAt" or sth. like 
that) that returns the value of the underlying data for a given table 
cell (by x and y coordinates). When the table is drawn, getValueAt() is 
called for each cell in the viewable area. Cells outside the viewable 
range are not queried, so there is no need to keep the whole data in 
memory - it can be fetched from disk or computed on demand.


Before I seriously consider coding a suitable function or class myself, 
I would like to ask you, the R community, if anyone knows of an existing 
solution. To summarize, I need
   - a scrollable spreadsheet-like GUI element to view and potentially 
edit data
   - which only loads as much of the data as it displays at one point 
in time,
   - thereby able to handle datasets that are too large to fit into 
main memory


Thanks for any suggestions,

Andreas

--
Andreas Borg
Medizinische Informatik

UNIVERSITÄTSMEDIZIN
der Johannes Gutenberg-Universität
Institut für Medizinische Biometrie, Epidemiologie und Informatik
Obere Zahlbacher Straße 69, 55131 Mainz
www.imbei.uni-mainz.de

Telefon +49 (0) 6131 175062
E-Mail: b...@imbei.uni-mainz.de

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. 
Wenn Sie nicht der
richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren 
Sie bitte sofort den
Absender und löschen Sie diese Mail. Das unerlaubte Kopieren sowie die 
unbefugte Weitergabe
dieser Mail und der darin enthaltenen Informationen ist nicht gestattet.

__
R-help@r-project.org mailing list
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] R-GUI shutdown

2011-06-28 Thread Uwe Ligges



On 27.06.2011 23:54, xin123620 wrote:

Dear R Users,

I was using R to import several years traffic data, but every time after
data successfully imported (no error or warning) when I tried to save this
workplace or tackle these data, R GUI would automatically shut down. Would
you have any ideas that how I should deal with this situation?  Thank you
very much.


- If this is not R-patched with updated package, update
- Try to make it reproducible and give us the relevant info so that we 
can reproduce.

- Tell what sessionInfo() says directly before you manage to crash R.

Uwe Ligges




Best,
Chengxin

--
View this message in context: 
http://r.789695.n4.nabble.com/R-GUI-shutdown-tp3628965p3628965.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
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
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] R-GUI shutdown

2011-06-27 Thread xin123620
Dear R Users,

I was using R to import several years traffic data, but every time after
data successfully imported (no error or warning) when I tried to save this
workplace or tackle these data, R GUI would automatically shut down. Would
you have any ideas that how I should deal with this situation?  Thank you
very much.

Best,
Chengxin

--
View this message in context: 
http://r.789695.n4.nabble.com/R-GUI-shutdown-tp3628965p3628965.html
Sent from the R help mailing list archive at Nabble.com.

__
R-help@r-project.org mailing list
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 BRugs 0.53 and 0.71, on Win7 with R 2.12.2 and 2.13.0 (crashes R GUI)

2011-06-06 Thread Uwe Ligges



On 05.06.2011 23:42, Chris Chapman wrote:

Thanks again. FWIW, I tried an even older R version (2.11) + BRugs 0.53
and 0.70 ... but got the same errors as with the iterations reported
below. So I'm giving up on trying to solve the issue.

My workaround is that I'm using the R2WinBUGS package instead. So far
that has worked well -- I've run a few iterations of models with no
problems.

Specifically, none of the errors below have occurred (this is using R
2.13.0, R2WinBUGS 2.1-18, OpenBUGS 3.0.3 as installed by BRugs, running
under Windows 7/32-bit). Unlike with BRugs, I'm able to use R2WinBUGS to
run a model, change it, run again with new parameters, etc., with no
crashes or other problems yet.


Strange, since the BRugs example always worked well for me and some 
others. Hence I cannot tell where the interaction comes from that causes 
the crashes.




Uwe: thank you for your work there as well!


Well, I am very far behind my schedule for BRugs!!!

Best wishes,
uwe



-- Chris

--
From: "Uwe Ligges" 
Sent: Monday, May 30, 2011 12:57 AM
To: "Chris Chapman" 
Cc: 
Subject: Re: [R] Error with BRugs 0.53 and 0.71, on Win7 with R 2.12.2
and 2.13.0 (crashes R GUI)




On 29.05.2011 23:19, Chris Chapman wrote:

Uwe -- thank you. No, this occurs on three different machines: two at
work (a Lenovo laptop running Win7-32, plus an HP workstation running
Win7-64) ... and I just tried another Compaq desktop machine at home
running WinXP-32, with the same result.

I agree that this seems highly unusual since the examples are so simple
and obviously work in general; yet it is also highly replicable for me,
and I'm at a loss as to what might be the root cause given the different
machines and Windows versions. FWIW, everything else in my R environment
(Rgui, Tinn-R, RStudio, ggplot2, various other packages) runs OK.
OpenBUGS in itself also seems OK albeit in limited tests.

Could there be something in the "handleRes()" error that suggests
anything to examine (firewall, antivirus, file locations, or some file
permissions, perhaps? -- although those also vary across my machines,
esp. from work to home).


The only thing I can say is, yes, perhaps.
Sorry, but I am still unable to reproduce so far.

Uwe




Thanks again,

-- Chris
--
From: "Uwe Ligges" 
Sent: Sunday, May 29, 2011 10:07 AM
To: "Chris Chapman" 
Cc: 
Subject: Re: [R] Error with BRugs 0.53 and 0.71, on Win7 with R 2.12.2
and 2.13.0 (crashes R GUI)


Sounds like a hardware problem to me, since I do not expereice any
problems with the example you gave at first. Is this all on the same
hardware?

Uwe Ligges



On 27.05.2011 18:38, Chris Chapman wrote:

I've run into persistent problems with OpenBUGS crashing when using
BRugs .53 and .71, and am hoping someone has suggestions. There is
obviously something unusual going on in my environment, but I'm at a
loss as to where to begin to try to solve it.

In a nutshell, what happens is that, as soon as I call "modelCheck()"
in BRugs, it gets an error or crashes ... but only some of the time
(90%< p< 100%). Following are details:

1. OpenBUGS 3.0.3 + BRugs 0.531:
It works occasionally, but approximately 90% of the time, I get the
following error from modelCheck():
Error in handleRes(res[[3]]) :

An OpenBUGS module or procedure was called that did not exist.



The specific code seems not to matter, but here is an example (model
taken from the OpenBUGS tutorial):
modelString =
" model
{
for (i in 1:N) {
r[i] ~ dbin(p[i], n[i])
b[i] ~ dnorm(0, tau)
logit(p[i])<- alpha0 + alpha1 * x1[i] + alpha2 * x2[i]
+ alpha12 * x1[i] * x2[i] + b[i]
}
alpha0 ~ dnorm(0, 1.0E-6)
alpha1 ~ dnorm(0, 1.0E-6)
alpha2 ~ dnorm(0, 1.0E-6)
alpha12 ~ dnorm(0, 1.0E-6)
tau ~ dgamma(0.001, 0.001)
sigma<- 1 / sqrt(tau)
}
"
print(modelString)
writeLines(modelString,con="model3.txt")
modelCheck( "model3.txt" )

Which (usually) produces:

modelCheck( "model3.txt" )

Error in handleRes(res[[3]]) :
An OpenBUGS module or procedure was called that did not exist.

I've copied at the end of this message an example from a single R
session that shows how it may work sometimes but not others.


2. OpenBUGS 3.2.1 + BRugs 0.71:

As above, the model occasionally works, but mostly it crashes R on
the modelCheck() line with the error "R for Windows GUI front-end has
stopped working".


I've tried the following combinations to try to get it to work:
A. Win7 32-bit + R 2.13 + BRugs 0.531 from standard CRAN repository
(installed from R)
B. Win7 32-bit + R 2.13 + BRugs 0.71 + OpenBUGS 3.2.1 (package and
EXE from OpenBUGS site)
C. Win7 64-bit [different machine] + R 2.13 (32-bit) + BRugs 0.531
D. Win7 64-bit + R 2.13 (32-bit) + BRugs 0.71 + OpenBugs 3.2.1
E. Win7 32-bit + *R 2.12.2* + BRugs 0.531 from standard 

Re: [R] Error with BRugs 0.53 and 0.71, on Win7 with R 2.12.2 and 2.13.0 (crashes R GUI)

2011-06-05 Thread Chris Chapman
Thanks again.  FWIW, I tried an even older R version (2.11) + BRugs 0.53 and 
0.70 ... but got the same errors as with the iterations reported below.  So 
I'm giving up on trying to solve the issue.


My workaround is that I'm using the R2WinBUGS package instead.  So far that 
has worked well -- I've run a few iterations of models with no problems.


Specifically, none of the errors below have occurred (this is using R 
2.13.0, R2WinBUGS 2.1-18, OpenBUGS 3.0.3 as installed by BRugs, running 
under Windows 7/32-bit).  Unlike with BRugs, I'm able to use R2WinBUGS to 
run a model, change it, run again with new parameters, etc., with no crashes 
or other problems yet.


Uwe: thank you for your work there as well!

-- Chris

--
From: "Uwe Ligges" 
Sent: Monday, May 30, 2011 12:57 AM
To: "Chris Chapman" 
Cc: 
Subject: Re: [R] Error with BRugs 0.53 and 0.71,	on Win7 with R 2.12.2 and 
2.13.0 (crashes R GUI)





On 29.05.2011 23:19, Chris Chapman wrote:

Uwe -- thank you. No, this occurs on three different machines: two at
work (a Lenovo laptop running Win7-32, plus an HP workstation running
Win7-64) ... and I just tried another Compaq desktop machine at home
running WinXP-32, with the same result.

I agree that this seems highly unusual since the examples are so simple
and obviously work in general; yet it is also highly replicable for me,
and I'm at a loss as to what might be the root cause given the different



(Rgui, Tinn-R, RStudio, ggplot2, various other packages) runs OK.
OpenBUGS in itself also seems OK albeit in limited tests.

Could there be something in the "handleRes()" error that suggests
anything to examine (firewall, antivirus, file locations, or some file
permissions, perhaps? -- although those also vary across my machines,
esp. from work to home).


The only thing I can say is, yes, perhaps.
Sorry, but I am still unable to reproduce so far.

Uwe




Thanks again,

-- Chris
--
From: "Uwe Ligges" 
Sent: Sunday, May 29, 2011 10:07 AM
To: "Chris Chapman" 
Cc: 
Subject: Re: [R] Error with BRugs 0.53 and 0.71, on Win7 with R 2.12.2
and 2.13.0 (crashes R GUI)


Sounds like a hardware problem to me, since I do not expereice any
problems with the example you gave at first. Is this all on the same
hardware?

Uwe Ligges



On 27.05.2011 18:38, Chris Chapman wrote:

I've run into persistent problems with OpenBUGS crashing when using
BRugs .53 and .71, and am hoping someone has suggestions. There is
obviously something unusual going on in my environment, but I'm at a
loss as to where to begin to try to solve it.

In a nutshell, what happens is that, as soon as I call "modelCheck()"
in BRugs, it gets an error or crashes ... but only some of the time
(90%< p< 100%). Following are details:

1. OpenBUGS 3.0.3 + BRugs 0.531:
It works occasionally, but approximately 90% of the time, I get the
following error from modelCheck():
Error in handleRes(res[[3]]) :

An OpenBUGS module or procedure was called that did not exist.



The specific code seems not to matter, but here is an example (model
taken from the OpenBUGS tutorial):
modelString =
" model
{
for (i in 1:N) {
r[i] ~ dbin(p[i], n[i])
b[i] ~ dnorm(0, tau)
logit(p[i])<- alpha0 + alpha1 * x1[i] + alpha2 * x2[i]
+ alpha12 * x1[i] * x2[i] + b[i]
}
alpha0 ~ dnorm(0, 1.0E-6)
alpha1 ~ dnorm(0, 1.0E-6)
alpha2 ~ dnorm(0, 1.0E-6)
alpha12 ~ dnorm(0, 1.0E-6)
tau ~ dgamma(0.001, 0.001)
sigma<- 1 / sqrt(tau)
}
"
print(modelString)
writeLines(modelString,con="model3.txt")
modelCheck( "model3.txt" )

Which (usually) produces:

modelCheck( "model3.txt" )

Error in handleRes(res[[3]]) :
An OpenBUGS module or procedure was called that did not exist.

I've copied at the end of this message an example from a single R
session that shows how it may work sometimes but not others.


2. OpenBUGS 3.2.1 + BRugs 0.71:

As above, the model occasionally works, but mostly it crashes R on



stopped working".


I've tried the following combinations to try to get it to work:
A. Win7 32-bit + R 2.13 + BRugs 0.531 from standard CRAN repository
(installed from R)
B. Win7 32-bit + R 2.13 + BRugs 0.71 + OpenBUGS 3.2.1 (package and
EXE from OpenBUGS site)
C. Win7 64-bit [different machine] + R 2.13 (32-bit) + BRugs 0.531
D. Win7 64-bit + R 2.13 (32-bit) + BRugs 0.71 + OpenBugs 3.2.1
E. Win7 32-bit + *R 2.12.2* + BRugs 0.531 from standard CRAN
repository (installed from R)
F. Win7 64-bit + R 2.12.2 (32-bit) + BRugs 0.531
G. Win7 64-bit + R 2.12.2 (32-bit) + BRugs 0.71 + OpenBugs 3.2.1
H. ... and various combinations of removing all R and openbugs
versions, clean installs, and trying again

In all cases, it occasionally works -- especially on first re-install
of the package -- but then generally gives the "handleRes" error with
BRugs 

Re: [R] GUI Experience - Box Plots

2011-06-03 Thread Vikas Garud
> A good place would be r-sig-gui. Regards
> Liviu
>

Thanks Liviu.  Subscribing to that list.

Hope, it is still OK to write mails on these lists as well.

Regards
Vikas Garud

__
R-help@r-project.org mailing list
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] GUI Experience - Box Plots

2011-06-03 Thread Liviu Andronic
On Fri, Jun 3, 2011 at 6:46 AM, Vikas Garud  wrote:
> Hi,
>
> This is to share my experience of using GUI's for using various
> Quality Management/Assurance tools.
> A few days back, I had I had written a mail about Box plots and
> received some very good suggestions, including that for simple
> scripts.  Thanks everybody for the same.
>
> Based on the suggestions, I am trying three GUI's:  R Commander,
> JGR-Deducer combination and RKward.
>
> For Box Plots, I found the JGR-Deducer combination the best choice.
>
> I could not get box plots - Factors and Dodging - in R Commander and
> RKward, though the reply on RKward mailing list suggests that the
> newer version of RKward should solve the problem.
>
> Thank you everybody for all the help.  I'll be asking questions about
> various tools that I would like to deploy through GUI's for R.  I'll
> also be sharing my experiences.
>
A good place would be r-sig-gui. Regards
Liviu


> Vikas Garud
>
> __
> R-help@r-project.org mailing list
> 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.
>



-- 
Do you know how to read?
http://www.alienetworks.com/srtest.cfm
http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader
Do you know how to write?
http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail

__
R-help@r-project.org mailing list
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] GUI Experience - Box Plots

2011-06-03 Thread Vikas Garud
Hi,

This is to share my experience of using GUI's for using various
Quality Management/Assurance tools.
A few days back, I had I had written a mail about Box plots and
received some very good suggestions, including that for simple
scripts.  Thanks everybody for the same.

Based on the suggestions, I am trying three GUI's:  R Commander,
JGR-Deducer combination and RKward.

For Box Plots, I found the JGR-Deducer combination the best choice.

I could not get box plots - Factors and Dodging - in R Commander and
RKward, though the reply on RKward mailing list suggests that the
newer version of RKward should solve the problem.

Thank you everybody for all the help.  I'll be asking questions about
various tools that I would like to deploy through GUI's for R.  I'll
also be sharing my experiences.

Vikas Garud

__
R-help@r-project.org mailing list
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 BRugs 0.53 and 0.71, on Win7 with R 2.12.2 and 2.13.0 (crashes R GUI)

2011-05-30 Thread Uwe Ligges



On 29.05.2011 23:19, Chris Chapman wrote:

Uwe -- thank you. No, this occurs on three different machines: two at
work (a Lenovo laptop running Win7-32, plus an HP workstation running
Win7-64) ... and I just tried another Compaq desktop machine at home
running WinXP-32, with the same result.

I agree that this seems highly unusual since the examples are so simple
and obviously work in general; yet it is also highly replicable for me,
and I'm at a loss as to what might be the root cause given the different
machines and Windows versions. FWIW, everything else in my R environment
(Rgui, Tinn-R, RStudio, ggplot2, various other packages) runs OK.
OpenBUGS in itself also seems OK albeit in limited tests.

Could there be something in the "handleRes()" error that suggests
anything to examine (firewall, antivirus, file locations, or some file
permissions, perhaps? -- although those also vary across my machines,
esp. from work to home).


The only thing I can say is, yes, perhaps.
Sorry, but I am still unable to reproduce so far.

Uwe




Thanks again,

-- Chris
--
From: "Uwe Ligges" 
Sent: Sunday, May 29, 2011 10:07 AM
To: "Chris Chapman" 
Cc: 
Subject: Re: [R] Error with BRugs 0.53 and 0.71, on Win7 with R 2.12.2
and 2.13.0 (crashes R GUI)


Sounds like a hardware problem to me, since I do not expereice any
problems with the example you gave at first. Is this all on the same
hardware?

Uwe Ligges



On 27.05.2011 18:38, Chris Chapman wrote:

I've run into persistent problems with OpenBUGS crashing when using
BRugs .53 and .71, and am hoping someone has suggestions. There is
obviously something unusual going on in my environment, but I'm at a
loss as to where to begin to try to solve it.

In a nutshell, what happens is that, as soon as I call "modelCheck()"
in BRugs, it gets an error or crashes ... but only some of the time
(90%< p< 100%). Following are details:

1. OpenBUGS 3.0.3 + BRugs 0.531:
It works occasionally, but approximately 90% of the time, I get the
following error from modelCheck():
Error in handleRes(res[[3]]) :

An OpenBUGS module or procedure was called that did not exist.



The specific code seems not to matter, but here is an example (model
taken from the OpenBUGS tutorial):
modelString =
" model
{
for (i in 1:N) {
r[i] ~ dbin(p[i], n[i])
b[i] ~ dnorm(0, tau)
logit(p[i])<- alpha0 + alpha1 * x1[i] + alpha2 * x2[i]
+ alpha12 * x1[i] * x2[i] + b[i]
}
alpha0 ~ dnorm(0, 1.0E-6)
alpha1 ~ dnorm(0, 1.0E-6)
alpha2 ~ dnorm(0, 1.0E-6)
alpha12 ~ dnorm(0, 1.0E-6)
tau ~ dgamma(0.001, 0.001)
sigma<- 1 / sqrt(tau)
}
"
print(modelString)
writeLines(modelString,con="model3.txt")
modelCheck( "model3.txt" )

Which (usually) produces:

modelCheck( "model3.txt" )

Error in handleRes(res[[3]]) :
An OpenBUGS module or procedure was called that did not exist.

I've copied at the end of this message an example from a single R
session that shows how it may work sometimes but not others.


2. OpenBUGS 3.2.1 + BRugs 0.71:

As above, the model occasionally works, but mostly it crashes R on
the modelCheck() line with the error "R for Windows GUI front-end has
stopped working".


I've tried the following combinations to try to get it to work:
A. Win7 32-bit + R 2.13 + BRugs 0.531 from standard CRAN repository
(installed from R)
B. Win7 32-bit + R 2.13 + BRugs 0.71 + OpenBUGS 3.2.1 (package and
EXE from OpenBUGS site)
C. Win7 64-bit [different machine] + R 2.13 (32-bit) + BRugs 0.531
D. Win7 64-bit + R 2.13 (32-bit) + BRugs 0.71 + OpenBugs 3.2.1
E. Win7 32-bit + *R 2.12.2* + BRugs 0.531 from standard CRAN
repository (installed from R)
F. Win7 64-bit + R 2.12.2 (32-bit) + BRugs 0.531
G. Win7 64-bit + R 2.12.2 (32-bit) + BRugs 0.71 + OpenBugs 3.2.1
H. ... and various combinations of removing all R and openbugs
versions, clean installs, and trying again

In all cases, it occasionally works -- especially on first re-install
of the package -- but then generally gives the "handleRes" error with
BRugs 0.531 or crashes with BRugs 0.71.

Thanks in advance for any suggestions!


=== example from a a single R session ===

R version 2.13.0 (2011-04-13)

Copyright (C) 2011 The R Foundation for Statistical Computing

ISBN 3-900051-07-0

Platform: i386-pc-mingw32/i386 (32-bit)


R is free software and comes with ABSOLUTELY NO WARRANTY.

You are welcome to redistribute it under certain conditions.

Type 'license()' or 'licence()' for distribution details.


Natural language support but running in an English locale


R is a collaborative project with many contributors.

Type 'contributors()' for more information and

'citation()' on how to cite R or R packages in publications.


Type 'demo()' for some demos, 'help()' for on-line help, or

'help.start()' for an HTML browser interface to h

Re: [R] Error with BRugs 0.53 and 0.71, on Win7 with R 2.12.2 and 2.13.0 (crashes R GUI)

2011-05-29 Thread Chris Chapman
Uwe -- thank you.  No, this occurs on three different machines: two at work 
(a Lenovo laptop running Win7-32, plus an HP workstation running Win7-64) 
... and I just tried another Compaq desktop machine at home running 
WinXP-32, with the same result.


I agree that this seems highly unusual since the examples are so simple and 
obviously work in general; yet it is also highly replicable for me, and I'm 
at a loss as to what might be the root cause given the different machines 
and Windows versions.  FWIW, everything else in my R environment (Rgui, 
Tinn-R, RStudio, ggplot2, various other packages) runs OK.  OpenBUGS in 
itself also seems OK albeit in limited tests.


Could there be something in the "handleRes()" error that suggests anything 
to examine (firewall, antivirus, file locations, or some file permissions, 
perhaps?  -- although those also vary across my machines, esp. from work to 
home).


Thanks again,

-- Chris
--
From: "Uwe Ligges" 
Sent: Sunday, May 29, 2011 10:07 AM
To: "Chris Chapman" 
Cc: 
Subject: Re: [R] Error with BRugs 0.53 and 0.71,	on Win7 with R 2.12.2 and 
2.13.0 (crashes R GUI)


Sounds like a hardware problem to me, since I do not expereice any 
problems with the example you gave at first. Is this all on the same 
hardware?


Uwe Ligges



On 27.05.2011 18:38, Chris Chapman wrote:
I've run into persistent problems with OpenBUGS crashing when using BRugs 
.53 and .71, and am hoping someone has suggestions.  There is obviously 
something unusual going on in my environment, but I'm at a loss as to 
where to begin to try to solve it.


In a nutshell, what happens is that, as soon as I call "modelCheck()" in 
BRugs, it gets an error or crashes ... but only some of the time (90%< 
p<  100%).  Following are details:


1. OpenBUGS 3.0.3 + BRugs 0.531:
It works occasionally, but approximately 90% of the time, I get the 
following error from modelCheck():

Error in handleRes(res[[3]]) :

An OpenBUGS module or procedure was called that did not exist.



The specific code seems not to matter, but here is an example (model 
taken from the OpenBUGS tutorial):

modelString =
"   model
{
   for (i in 1:N) {
  r[i] ~ dbin(p[i], n[i])
  b[i] ~ dnorm(0, tau)
  logit(p[i])<- alpha0 + alpha1 * x1[i] + alpha2 * x2[i]
  + alpha12 * x1[i] * x2[i] + b[i]
   }
   alpha0 ~ dnorm(0, 1.0E-6)
   alpha1 ~ dnorm(0, 1.0E-6)
   alpha2 ~ dnorm(0, 1.0E-6)
   alpha12 ~ dnorm(0, 1.0E-6)
   tau ~ dgamma(0.001, 0.001)
   sigma<- 1 / sqrt(tau)
}
"
print(modelString)
writeLines(modelString,con="model3.txt")
modelCheck( "model3.txt" )

Which (usually) produces:

modelCheck( "model3.txt" )

Error in handleRes(res[[3]]) :
   An OpenBUGS module or procedure was called that did not exist.

I've copied at the end of this message an example from a single R session 
that shows how it may work sometimes but not others.



2. OpenBUGS 3.2.1 + BRugs 0.71:

As above, the model occasionally works, but mostly it crashes R on the 



working".


I've tried the following combinations to try to get it to work:
A. Win7 32-bit + R 2.13 + BRugs 0.531 from standard CRAN repository 
(installed from R)
B. Win7 32-bit + R 2.13 + BRugs 0.71 + OpenBUGS 3.2.1 (package and EXE 
from OpenBUGS site)

C. Win7 64-bit [different machine] + R 2.13 (32-bit) + BRugs 0.531
D. Win7 64-bit +  R 2.13 (32-bit) + BRugs 0.71 + OpenBugs 3.2.1
E. Win7 32-bit + *R 2.12.2* + BRugs 0.531 from standard CRAN repository 
(installed from R)

F. Win7 64-bit + R 2.12.2 (32-bit) + BRugs 0.531
G. Win7 64-bit + R 2.12.2 (32-bit) + BRugs 0.71 + OpenBugs 3.2.1
H. ... and various combinations of removing all R and openbugs versions, 
clean installs, and trying again


In all cases, it occasionally works -- especially on first re-install of 
the package -- but then generally gives the "handleRes" error with BRugs 
0.531 or crashes with BRugs 0.71.



[[elided Hotmail spam]]



=== example from a a single R session ===

R version 2.13.0 (2011-04-13)

Copyright (C) 2011 The R Foundation for Statistical Computing

ISBN 3-900051-07-0

Platform: i386-pc-mingw32/i386 (32-bit)


R is free software and comes with ABSOLUTELY NO WARRANTY.

You are welcome to redistribute it under certain conditions.

Type 'license()' or 'licence()' for distribution details.


Natural language support but running in an English locale


R is a collaborative project with many contributors.

Type 'contributors()' for more information and

'citation()' on how to cite R or R packages in publications.


Type 'demo()' for some demos, 'help()' for on-line help, or

'help.start()' for an HTML browser interface to help.

Type 'q()' to quit R.


Loading required package: p

Re: [R] Error with BRugs 0.53 and 0.71, on Win7 with R 2.12.2 and 2.13.0 (crashes R GUI)

2011-05-29 Thread Uwe Ligges
Sounds like a hardware problem to me, since I do not expereice any 
problems with the example you gave at first. Is this all on the same 
hardware?


Uwe Ligges



On 27.05.2011 18:38, Chris Chapman wrote:

I've run into persistent problems with OpenBUGS crashing when using BRugs .53 
and .71, and am hoping someone has suggestions.  There is obviously something 
unusual going on in my environment, but I'm at a loss as to where to begin to 
try to solve it.

In a nutshell, what happens is that, as soon as I call "modelCheck()" in BRugs, it 
gets an error or crashes ... but only some of the time (90%<  p<  100%).  Following are 
details:

1. OpenBUGS 3.0.3 + BRugs 0.531:
It works occasionally, but approximately 90% of the time, I get the following 
error from modelCheck():
Error in handleRes(res[[3]]) :

An OpenBUGS module or procedure was called that did not exist.



The specific code seems not to matter, but here is an example (model taken from 
the OpenBUGS tutorial):
modelString =
"   model
{
   for (i in 1:N) {
  r[i] ~ dbin(p[i], n[i])
  b[i] ~ dnorm(0, tau)
  logit(p[i])<- alpha0 + alpha1 * x1[i] + alpha2 * x2[i]
  + alpha12 * x1[i] * x2[i] + b[i]
   }
   alpha0 ~ dnorm(0, 1.0E-6)
   alpha1 ~ dnorm(0, 1.0E-6)
   alpha2 ~ dnorm(0, 1.0E-6)
   alpha12 ~ dnorm(0, 1.0E-6)
   tau ~ dgamma(0.001, 0.001)
   sigma<- 1 / sqrt(tau)
}
"
print(modelString)
writeLines(modelString,con="model3.txt")
modelCheck( "model3.txt" )

Which (usually) produces:

modelCheck( "model3.txt" )

Error in handleRes(res[[3]]) :
   An OpenBUGS module or procedure was called that did not exist.

I've copied at the end of this message an example from a single R session that 
shows how it may work sometimes but not others.


2. OpenBUGS 3.2.1 + BRugs 0.71:

As above, the model occasionally works, but mostly it crashes R on the modelCheck() line 
with the error "R for Windows GUI front-end has stopped working".


I've tried the following combinations to try to get it to work:
A. Win7 32-bit + R 2.13 + BRugs 0.531 from standard CRAN repository (installed 
from R)
B. Win7 32-bit + R 2.13 + BRugs 0.71 + OpenBUGS 3.2.1 (package and EXE from 
OpenBUGS site)
C. Win7 64-bit [different machine] + R 2.13 (32-bit) + BRugs 0.531
D. Win7 64-bit +  R 2.13 (32-bit) + BRugs 0.71 + OpenBugs 3.2.1
E. Win7 32-bit + *R 2.12.2* + BRugs 0.531 from standard CRAN repository 
(installed from R)
F. Win7 64-bit + R 2.12.2 (32-bit) + BRugs 0.531
G. Win7 64-bit + R 2.12.2 (32-bit) + BRugs 0.71 + OpenBugs 3.2.1
H. ... and various combinations of removing all R and openbugs versions, clean 
installs, and trying again

In all cases, it occasionally works -- especially on first re-install of the package -- 
but then generally gives the "handleRes" error with BRugs 0.531 or crashes with 
BRugs 0.71.

Thanks in advance for any suggestions!


=== example from a a single R session ===

R version 2.13.0 (2011-04-13)

Copyright (C) 2011 The R Foundation for Statistical Computing

ISBN 3-900051-07-0

Platform: i386-pc-mingw32/i386 (32-bit)


R is free software and comes with ABSOLUTELY NO WARRANTY.

You are welcome to redistribute it under certain conditions.

Type 'license()' or 'licence()' for distribution details.


Natural language support but running in an English locale


R is a collaborative project with many contributors.

Type 'contributors()' for more information and

'citation()' on how to cite R or R packages in publications.


Type 'demo()' for some demos, 'help()' for on-line help, or

'help.start()' for an HTML browser interface to help.

Type 'q()' to quit R.


Loading required package: proto

Loading required package: grid

Loading required package: reshape

Loading required package: plyr


Attaching package: 'reshape'


The following object(s) are masked from 'package:plyr':


rename, round_any


[Previously saved workspace restored]



install.packages("BRugs")


Installing package(s) into 'C:/Users/cchap/Documents/R/win-library/2.13'

(as 'lib' is unspecified)

--- Please select a CRAN mirror for use in this session ---

also installing the dependency 'coda'


trying URL 'http://cran.fhcrc.org/bin/windows/contrib/2.13/coda_0.14-4.zip'

Content type 'application/zip' length 200622 bytes (195 Kb)

opened URL

downloaded 195 Kb


trying URL 
'http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/2.13/BRugs_0.5-3.1.zip'

Content type 'application/zip' length 5613828 bytes (5.4 Mb)

opened URL

downloaded 5.4 Mb


package 'coda' successfully unpacked and MD5 sums checked

package 'BRugs' successfully unpacked and MD5 sums checked


The downloaded packages are in

C:\Users\cchap\AppData\Local\Temp\RtmpoNcfyf\downloaded_packages


library(BRugs)


Loading required package: coda

Loading required package: lattice

Welcome to BRugs running on OpenBUGS version 3.0.3


# Specify the model in BUGS language, but save it as a string in R:



modelString = "


+ model {

+ for ( i in 1:n

[R] Error with BRugs 0.53 and 0.71, on Win7 with R 2.12.2 and 2.13.0 (crashes R GUI)

2011-05-27 Thread Chris Chapman
I've run into persistent problems with OpenBUGS crashing when using BRugs .53 
and .71, and am hoping someone has suggestions.  There is obviously something 
unusual going on in my environment, but I'm at a loss as to where to begin to 
try to solve it.

In a nutshell, what happens is that, as soon as I call "modelCheck()" in BRugs, 
it gets an error or crashes ... but only some of the time (90% < p < 100%).  
Following are details:

1. OpenBUGS 3.0.3 + BRugs 0.531:
It works occasionally, but approximately 90% of the time, I get the following 
error from modelCheck(): 
Error in handleRes(res[[3]]) : 

An OpenBUGS module or procedure was called that did not exist.



The specific code seems not to matter, but here is an example (model taken from 
the OpenBUGS tutorial):
modelString = 
"   model
   {
  for (i in 1:N) {
 r[i] ~ dbin(p[i], n[i])
 b[i] ~ dnorm(0, tau)
 logit(p[i]) <- alpha0 + alpha1 * x1[i] + alpha2 * x2[i]
 + alpha12 * x1[i] * x2[i] + b[i]
  }
  alpha0 ~ dnorm(0, 1.0E-6)
  alpha1 ~ dnorm(0, 1.0E-6)
  alpha2 ~ dnorm(0, 1.0E-6)
  alpha12 ~ dnorm(0, 1.0E-6)
  tau ~ dgamma(0.001, 0.001)
  sigma <- 1 / sqrt(tau)
   }
"
print(modelString)
writeLines(modelString,con="model3.txt")
modelCheck( "model3.txt" )

Which (usually) produces:
> modelCheck( "model3.txt" )
Error in handleRes(res[[3]]) : 
  An OpenBUGS module or procedure was called that did not exist.

I've copied at the end of this message an example from a single R session that 
shows how it may work sometimes but not others.


2. OpenBUGS 3.2.1 + BRugs 0.71: 

As above, the model occasionally works, but mostly it crashes R on the 
modelCheck() line with the error "R for Windows GUI front-end has stopped 
working".


I've tried the following combinations to try to get it to work:
A. Win7 32-bit + R 2.13 + BRugs 0.531 from standard CRAN repository (installed 
from R)
B. Win7 32-bit + R 2.13 + BRugs 0.71 + OpenBUGS 3.2.1 (package and EXE from 
OpenBUGS site)
C. Win7 64-bit [different machine] + R 2.13 (32-bit) + BRugs 0.531
D. Win7 64-bit +  R 2.13 (32-bit) + BRugs 0.71 + OpenBugs 3.2.1
E. Win7 32-bit + *R 2.12.2* + BRugs 0.531 from standard CRAN repository 
(installed from R)
F. Win7 64-bit + R 2.12.2 (32-bit) + BRugs 0.531
G. Win7 64-bit + R 2.12.2 (32-bit) + BRugs 0.71 + OpenBugs 3.2.1
H. ... and various combinations of removing all R and openbugs versions, clean 
installs, and trying again

In all cases, it occasionally works -- especially on first re-install of the 
package -- but then generally gives the "handleRes" error with BRugs 0.531 or 
crashes with BRugs 0.71.

Thanks in advance for any suggestions!


=== example from a a single R session ===
  
R version 2.13.0 (2011-04-13)

Copyright (C) 2011 The R Foundation for Statistical Computing

ISBN 3-900051-07-0

Platform: i386-pc-mingw32/i386 (32-bit)


R is free software and comes with ABSOLUTELY NO WARRANTY.

You are welcome to redistribute it under certain conditions.

Type 'license()' or 'licence()' for distribution details.


Natural language support but running in an English locale


R is a collaborative project with many contributors.

Type 'contributors()' for more information and

'citation()' on how to cite R or R packages in publications.


Type 'demo()' for some demos, 'help()' for on-line help, or

'help.start()' for an HTML browser interface to help.

Type 'q()' to quit R.


Loading required package: proto

Loading required package: grid

Loading required package: reshape

Loading required package: plyr


Attaching package: 'reshape'


The following object(s) are masked from 'package:plyr':


rename, round_any


[Previously saved workspace restored]


> install.packages("BRugs")

Installing package(s) into 'C:/Users/cchap/Documents/R/win-library/2.13'

(as 'lib' is unspecified)

--- Please select a CRAN mirror for use in this session ---

also installing the dependency 'coda'


trying URL 'http://cran.fhcrc.org/bin/windows/contrib/2.13/coda_0.14-4.zip'

Content type 'application/zip' length 200622 bytes (195 Kb)

opened URL

downloaded 195 Kb


trying URL 
'http://www.stats.ox.ac.uk/pub/RWin/bin/windows/contrib/2.13/BRugs_0.5-3.1.zip'

Content type 'application/zip' length 5613828 bytes (5.4 Mb)

opened URL

downloaded 5.4 Mb


package 'coda' successfully unpacked and MD5 sums checked

package 'BRugs' successfully unpacked and MD5 sums checked


The downloaded packages are in

C:\Users\cchap\AppData\Local\Temp\RtmpoNcfyf\downloaded_packages

> library(BRugs)

Loading required package: coda

Loading required package: lattice

Welcome to BRugs running on OpenBUGS version 3.0.3

> # Specify the model in BUGS language, but save it as a string in R:

> modelString = "

+ model {

+ for ( i in 1:nFlips ) {

+ y[i] ~ dbern( theta )

+ }

+ theta ~ dunif( priorA , priorB )

+ priorA <- 0.6

+ priorB <- 1.0

+ }

+ " # close quote to end modelString

> 

> # Write the modelString to a file, using R commands:

Re: [R] Gui immediately closes when started from command-line

2011-05-19 Thread Albert-Jan Roskam
Thanks, we tried it, but it didn't solve the problem. Some more info (mostly 
strings of ) was shown in the Dos box, but that was all. 

 Cheers!!
Albert-Jan 


~~
All right, but apart from the sanitation, the medicine, education, wine, public 
order, irrigation, roads, a fresh water system, and public health, what have 
the 
Romans ever done for us?
~~ 





From: Jonathan Gabris 
To: r-help@r-project.org
Sent: Thu, May 19, 2011 9:54:13 AM
Subject: Re: [R] Gui immediately closes when started from command-line

I had a problem similar to this I think. Though I cannot remember the 
symptoms.
Something to to with the lack of possible interaction with the console 
as I was using R as a backend to a Qt interface.

To solve the problem I used the flag: '--ess'
(using '--vanilla' is also a good idea)

(cf Appendix B:Invoking R, in one of the R manuals)

Hope this helps.

Jonathan.

> Hello,
>
> I want to run an r script that contains code for a gui (rgtk) on the command
> line (windows 2000, 32 bits) using R2.10.1, but the Gui disappears a few
> miliseconds after I started the program. What switch should I use to prevent
> this? I tried r.exe, rterm.exe and rscript.exe with various combinations of
> switches, but none of them works.
>  
> TIA
> Cheers!!
> Albert-Jan
>
>
> ~~
> All right, but apart from the sanitation, the medicine, education, wine,
public
> order, irrigation, roads, a fresh water system, and public health, what have 
>the
> Romans ever done for us?
> ~~
>     [[alternative HTML version deleted]]
>
>
>
> __
> R-help@r-project.org mailing list
> 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
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
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] Gui immediately closes when started from command-line

2011-05-19 Thread Jonathan Gabris
I had a problem similar to this I think. Though I cannot remember the 
symptoms.
Something to to with the lack of possible interaction with the console 
as I was using R as a backend to a Qt interface.


To solve the problem I used the flag: '--ess'
(using '--vanilla' is also a good idea)

(cf Appendix B:Invoking R, in one of the R manuals)

Hope this helps.

Jonathan.


Hello,

I want to run an r script that contains code for a gui (rgtk) on the command
line (windows 2000, 32 bits) using R2.10.1, but the Gui disappears a few
miliseconds after I started the program. What switch should I use to prevent
this? I tried r.exe, rterm.exe and rscript.exe with various combinations of
switches, but none of them works.
  
TIA

Cheers!!
Albert-Jan


~~
All right, but apart from the sanitation, the medicine, education, wine, public
order, irrigation, roads, a fresh water system, and public health, what have the
Romans ever done for us?
~~
[[alternative HTML version deleted]]



__
R-help@r-project.org mailing list
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
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] Gui immediately closes when started from command-line

2011-05-19 Thread Albert-Jan Roskam
Hello,

I want to run an r script that contains code for a gui (rgtk) on the command 
line (windows 2000, 32 bits) using R2.10.1, but the Gui disappears a few 
miliseconds after I started the program. What switch should I use to prevent 
this? I tried r.exe, rterm.exe and rscript.exe with various combinations of 
switches, but none of them works.
 
TIA
Cheers!!
Albert-Jan 


~~
All right, but apart from the sanitation, the medicine, education, wine, public 
order, irrigation, roads, a fresh water system, and public health, what have 
the 
Romans ever done for us?
~~ 
[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list
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] R gui on windows how to force to always show the last line of output

2011-04-05 Thread stan zimine
thank you, David, for your answer, which has a therapeutic effect.

Otherwise i was launching my prod code  from Emacs ESS  jas as Janice
suggested.


On Sat, Apr 2, 2011 at 2:27 PM, David Winsemius  wrote:
>
> On Apr 2, 2011, at 4:21 AM, stan zimine wrote:
>
>> Hi.
>> Googled but did not found the answer for the following little issue.
>>
>> how to force R gui  on windows (maybe a specific setting)  to always
>> show the last line of output in the window console.
>>
>>
>> My program in R makes measurements every 5 mins in indefinite loop and
>> prints  results in the console.
>>
>> The problem:  last messages are not visible,  The scrolling bar of the
>> gui console  gets shorter. I.e.  you have to scroll for the last
>> messages.
>>
>> Thanks if anybody knows the sol to this prob.
>
> You may want to add flush.console() to the code.
>
> --
>
> David Winsemius, MD
> West Hartford, CT
>
>

__
R-help@r-project.org mailing list
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] R gui on windows how to force to always show the last line of output

2011-04-03 Thread wulei wong
i wonder why you want to change R but not your program itself, you just
print the last sentence is ok?

wuleiwong
statistic@CSU

On 03-Apr-2011 9:06 PM, "lcn"  wrote:

CTRL+L helps.

2011/4/2 stan zimine 

> Hi.
> Googled but did not found the answer for the following little issue.
>
> how to force R gui  on windows (maybe a specific setting)  to always
> show the last line of output in the window console.
>
>
> My program in R makes measurements every 5 mins in indefinite loop and
>  prints  results in the console.
>
> The problem:  last messages are not visible,  The scrolling bar of the
> gui console  gets shorter. I.e.  you have to scroll for the last
> messages.
>
> Thanks if anybody knows the sol to this prob.
>
> SZ
>
> __
> R-help@r-project.org mailing list
> 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
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
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] R gui on windows how to force to always show the last line of output

2011-04-03 Thread lcn
CTRL+L helps.

2011/4/2 stan zimine 

> Hi.
> Googled but did not found the answer for the following little issue.
>
> how to force R gui  on windows (maybe a specific setting)  to always
> show the last line of output in the window console.
>
>
> My program in R makes measurements every 5 mins in indefinite loop and
>  prints  results in the console.
>
> The problem:  last messages are not visible,  The scrolling bar of the
> gui console  gets shorter. I.e.  you have to scroll for the last
> messages.
>
> Thanks if anybody knows the sol to this prob.
>
> SZ
>
> __
> R-help@r-project.org mailing list
> 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
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] R gui on windows how to force to always show the last line of output

2011-04-02 Thread David Winsemius


On Apr 2, 2011, at 4:21 AM, stan zimine wrote:


Hi.
Googled but did not found the answer for the following little issue.

how to force R gui  on windows (maybe a specific setting)  to always
show the last line of output in the window console.


My program in R makes measurements every 5 mins in indefinite loop and
prints  results in the console.

The problem:  last messages are not visible,  The scrolling bar of the
gui console  gets shorter. I.e.  you have to scroll for the last
messages.

Thanks if anybody knows the sol to this prob.


You may want to add flush.console() to the code.

--

David Winsemius, MD
West Hartford, CT

__
R-help@r-project.org mailing list
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.


  1   2   >