Re: [R] Possible solution to R installation problemst for Linux Mint 19 users

2018-07-21 Thread Jeff Newmiller
Each Mint version builds from an Ubuntu version. I don't use Mint. but this [1] 
web page tells me you should be pulling from a Bionic repo. Artful may work for 
you now, but in general it is risky to mix distribution revisions.

Note that this informative discussion should have occurred on the R-sig-debian 
mailing list, as it involves the intersection of R and debian derivatives, and 
is not about the R language as this mailing list is.

[1] https://linuxmint.com/download_all.php



On July 21, 2018 5:50:02 PM PDT, Clive Nicholas via R-help 
 wrote:
>Hello!
>
>If you're a newly-minted (pun _fully_ intended) user of Linux Mint 19
>("Tara") and you find you're having issues installing R (as I just
>have),
>please read on as I may have a solution for you.
>
>To set out the context, the problem looks like this:
>
>You (naturally) consult the relevant webpage at cran.r-project.org for
>your
>Linux Mint system (ubuntu) and add the pub key (I've always used
>Michael
>Rutter's). On my last Linux Mint system (18.2), I was using the
>following
>repositories
>
>deb http://cran.ma.imperial.ac.uk/bin/linux/ubuntu xenial/
>deb-src http://cran.ma.imperial.ac.uk/bin/linux/ubuntu xenial/
>
>which worked fine for me. Unfortunately on my new Linux Mint 19 system:
>
>clive@climate:~$ sudo apt-get update
>clive@climate:~$ sudo apt-get upgrade
>clive@climate:~$ sudo apt-get install r-base r-base-core r-base-dev
>Reading package lists... Done
>Building dependency tree
>Reading state information... Done
>Some packages could not be installed. This may mean that you have
>requested an impossible situation or if you are using the unstable
>distribution that some required packages have not yet been created
>or been moved out of Incoming.
>The following information may help to resolve the situation:
>
>The following packages have unmet dependencies.
> r-base-core : Depends: libcurl3 (>= 7.28.0) but it is not going to be
>installed
>Depends: libpng12-0 (>= 1.2.13-4) but it is not installable
>   Depends: libreadline6 (>= 6.0) but it is not installable
>E: Unable to correct problems, you have held broken packages.
>
>No matter how many legitimate bash calls I made, such as
>
>sudo dpkg --configure -a # NOT CURRENTLY WORKING PROPERLY AT PRESENT -
>THE
>LINUX TEAM ARE ONTO THIS, APPARENTLY
>sudo apt-get -f install
>sudo apt-get --fix-broken install r-base r-base-core r-base-dev
>
>nothing worked: I would simply get variations of the same error.
>
>It turns out the solution is to switch away from -xenial- to *-artful-*
>(a
>repository I've never used before and which appears to be the newest of
>all
>the Ubuntu repositories), so that
>
>deb http://cran.ma.imperial.ac.uk/bin/linux/ubuntu artful/
>deb-src http://cran.ma.imperial.ac.uk/bin/linux/ubuntu artful/
>
>(or whichever is your favourite mirror).
>
>Then:
>
>clive@climate:~$ sudo apt-get install r-base r-base-core r-base-dev
>Reading package lists... Done
>Building dependency tree
>Reading state information... Done
>The following additional packages will be installed:
>cdbs dh-translations jq libfile-which-perl libjq1 libonig4
>python3-scour
>r-cran-boot r-cran-class r-cran-cluster r-cran-codetools r-cran-foreign
>r-cran-kernsmooth
>  r-cran-lattice r-cran-mass r-cran-matrix r-cran-mgcv r-cran-nlme
>r-cran-nnet r-cran-rpart r-cran-spatial r-cran-survival r-recommended
>scour
>Suggested packages:
>  devscripts ess r-doc-info | r-doc-pdf r-mathlib r-base-html
>gir1.2-rsvg-2.0
>Recommended packages:
>  r-base-html r-doc-html
>The following NEW packages will be installed
>cdbs dh-translations jq libfile-which-perl libjq1 libonig4
>python3-scour
>r-base r-base-core r-base-dev r-cran-boot r-cran-class r-cran-cluster
>r-cran-codetools
>r-cran-foreign r-cran-kernsmooth r-cran-lattice r-cran-mass
>r-cran-matrix
>r-cran-mgcv r-cran-nlme r-cran-nnet r-cran-rpart r-cran-spatial
>r-cran-survival
>  r-recommended scour
>0 to upgrade, 27 to newly install, 0 to remove and 3 not to upgrade.
>Need to get 39.5 MB of archives.
>After this operation, 59.9 MB of additional disk space will be used.
>Do you want to continue? [Y/n] y
>Get:1 http://ftp.snt.utwente.nl/pub/os/linux/ubuntu bionic/universe
>amd64
>libonig4 amd64 6.7.0-1 [119 kB]
>
>[...]
>
>Setting up r-base (3.4.4-1ubuntu1) ...
>clive@climate:~$ R
>
>R version 3.4.4 (2018-03-15) -- "Someone to Lean On"
>Copyright (C) 2018 The R Foundation for Statistical Computing
>Platform: x86_64-pc-linux-gnu (64-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 

[R] Possible solution to R installation problemst for Linux Mint 19 users

2018-07-21 Thread Clive Nicholas via R-help
Hello!

If you're a newly-minted (pun _fully_ intended) user of Linux Mint 19
("Tara") and you find you're having issues installing R (as I just have),
please read on as I may have a solution for you.

To set out the context, the problem looks like this:

You (naturally) consult the relevant webpage at cran.r-project.org for your
Linux Mint system (ubuntu) and add the pub key (I've always used Michael
Rutter's). On my last Linux Mint system (18.2), I was using the following
repositories

deb http://cran.ma.imperial.ac.uk/bin/linux/ubuntu xenial/
deb-src http://cran.ma.imperial.ac.uk/bin/linux/ubuntu xenial/

which worked fine for me. Unfortunately on my new Linux Mint 19 system:

clive@climate:~$ sudo apt-get update
clive@climate:~$ sudo apt-get upgrade
clive@climate:~$ sudo apt-get install r-base r-base-core r-base-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies.
 r-base-core : Depends: libcurl3 (>= 7.28.0) but it is not going to be
installed
   Depends: libpng12-0 (>= 1.2.13-4) but it is not installable
   Depends: libreadline6 (>= 6.0) but it is not installable
E: Unable to correct problems, you have held broken packages.

No matter how many legitimate bash calls I made, such as

sudo dpkg --configure -a # NOT CURRENTLY WORKING PROPERLY AT PRESENT - THE
LINUX TEAM ARE ONTO THIS, APPARENTLY
sudo apt-get -f install
sudo apt-get --fix-broken install r-base r-base-core r-base-dev

nothing worked: I would simply get variations of the same error.

It turns out the solution is to switch away from -xenial- to *-artful-* (a
repository I've never used before and which appears to be the newest of all
the Ubuntu repositories), so that

deb http://cran.ma.imperial.ac.uk/bin/linux/ubuntu artful/
deb-src http://cran.ma.imperial.ac.uk/bin/linux/ubuntu artful/

(or whichever is your favourite mirror).

Then:

clive@climate:~$ sudo apt-get install r-base r-base-core r-base-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  cdbs dh-translations jq libfile-which-perl libjq1 libonig4 python3-scour
r-cran-boot r-cran-class r-cran-cluster r-cran-codetools r-cran-foreign
r-cran-kernsmooth
  r-cran-lattice r-cran-mass r-cran-matrix r-cran-mgcv r-cran-nlme
r-cran-nnet r-cran-rpart r-cran-spatial r-cran-survival r-recommended scour
Suggested packages:
  devscripts ess r-doc-info | r-doc-pdf r-mathlib r-base-html
gir1.2-rsvg-2.0
Recommended packages:
  r-base-html r-doc-html
The following NEW packages will be installed
  cdbs dh-translations jq libfile-which-perl libjq1 libonig4 python3-scour
r-base r-base-core r-base-dev r-cran-boot r-cran-class r-cran-cluster
r-cran-codetools
  r-cran-foreign r-cran-kernsmooth r-cran-lattice r-cran-mass r-cran-matrix
r-cran-mgcv r-cran-nlme r-cran-nnet r-cran-rpart r-cran-spatial
r-cran-survival
  r-recommended scour
0 to upgrade, 27 to newly install, 0 to remove and 3 not to upgrade.
Need to get 39.5 MB of archives.
After this operation, 59.9 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://ftp.snt.utwente.nl/pub/os/linux/ubuntu bionic/universe amd64
libonig4 amd64 6.7.0-1 [119 kB]

[...]

Setting up r-base (3.4.4-1ubuntu1) ...
clive@climate:~$ R

R version 3.4.4 (2018-03-15) -- "Someone to Lean On"
Copyright (C) 2018 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-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.

> plot(rnorm(1000)) # GRAPHIC DULY PRODUCED WITH NO ISSUES!
> q()
Save workspace image? [y/n/c]: n
clive@climate:~$

*Volia!* (Okay, so it doesn't install R 3.5.1 - the latest version - but
that should eventually correct itself with future updates.)

So, if you're having the same R installation problems I've just had after
migrating to Linux Mint 19, this should work for you. Good luck. :)


-- 
Clive Nicholas

"My colleagues in the social sciences talk a great deal about methodology.
I prefer to call it style." -- Freeman J. Dyson

[[alternative HTML version deleted]]

__

Re: [R] (no subject)

2018-07-21 Thread Rui Barradas

Hello,

Please always write to r-help, not to me personally, even if I was able 
to be of assistance in the past.


As for your question, your code has several problems.

1) rowSums and colSums return vectors, not matrices. Even if they did, 
see point 3) below.


2) You define K = 0 then in

X[1]=1/(K*A[i,j]*c[1,1]+K*A[i,j]*c[1,2]+K*A[i,j]*c[1,3])

the denominator is zero because A[i,j] and c[] are multiplied by it.

3) What are the i,j in A[i,j] and P[i,j]?


Hope this helps,

Rui Barradas


Às 11:51 de 21-07-2018, Atanasio Alberto Tembe Tembe escreveu:

Dear Mr. Barradas,

Thank you for your attention.

Sorry for this personalized e-mail. I recently posted a query about 
while loop, but I did not get good feedback. I am a beginner in R and I 
wonder if you can me help again.


If I have two matrices such as: a<-matrix(1:9,nrow=3,ncol=3) and 
c<-matrix(1:9,nrow=3,ncol=3).


with defined variables:
K=0
A[i,j]=colSums(a)
P[i,j]=rowSums(a)
F[i,j]=c[i,j]^(-2 )
X[i]=A[i,j]*c[i,j]
X[j]=P[i,j]*c[i,j]

How to perform the following calculation with while loop so that it 
stops when a convergence between X and Y values is reached?.


X[1]=1/(K*A[i,j]*c[1,1]+K*A[i,j]*c[1,2]+K*A[i,j]*c[1,3])

Y[1]=1/(X[1]*P[i,j]*c[1,1]+[X1]*P[i,j]*c[1,2]+[X1]*P[i,j]*c[1,3])

X[2]=1/(Y[1]*A[i,j]*c[2,1]+Y[1]*A[i,j]*c[2,2]+Y[1]*A[i,j]*c[2,3])

Y[2]=1/(X[2]*P[i,j]*c[2,1]+X[2]*P[i,j]*c[2,2]+X[2]*P[i,j]*c[2,3])

X[3]=1/(Y[2]*A[i,j]*c[3,1]+Y[1]*A[i,j]*c[3,2]+Y[2]*A[i,j]*c[3,3])

Y[3]=1/(X[3]*P[3]*c[3,1]+X[3]*P[3]*c[3,2]+X[3]*P[3]*c[3,3])


Thank you very much.










On Mon, Jul 16, 2018 at 6:51 PM, Atanasio Alberto Tembe Tembe 
mailto:manote...@gmail.com>> wrote:


Hi Mr. Barradas,

Thank you for your kind support. I will your suggestions.

Best regards
Tembe


On Mon, Jul 16, 2018 at 6:22 PM, Rui Barradas mailto:ruipbarra...@sapo.pt>> wrote:

Hello,

Please repost in plain text, NO HTML formating.

Also, you are missing an open parenthesis right after while:

while( sum(abs(Sb-D-Sc-t(Pi))>1E-5)){


Hope this helps,

Rui Barradas


Às 14:25 de 15-07-2018, Atanasio Alberto Tembe Tembe escreveu:

Hello!

Is there anyone who can help me to this the error bellow? Ijust
started using R recently. Thank you


while sum(abs(Sb-D-Sc-t(Pi))>1E-5{Error: unexpected symbol
in "while
sum">     >     k=K+1>     >     for(i in 1:nrow(c1)){+ 
    +
     for(j in 1:ncol(c1)){+             +   
  if(Sb!=0){+

           +                 T2=D*T/Sa+                 +
}else {+                 +                 T2=0       +
   +             }+             +             Sc=sum(t(T))+
+             if(Sc!=0){+                 +
T3=Pi*T2/Sc+                 +             }else {+ 
        +

                 T3=0+                 +             }+
Sb=sum(T)+             +         }+     }>     >     K[1] 0

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




-- 
Atanasio Alberto Tembe (Mr)

Doctoral student
Graduate School of Urban Innovation
Transportation and Urban Engineering Laboratory
Yokohama National University
Tel: +81-(0)80-4605-1305 
  Mail: tembe-atanasio...@ynu.jp

manote...@gmail.com 




--
Atanasio Alberto Tembe (Mr)
Doctoral student
Graduate School of Urban Innovation
Transportation and Urban Engineering Laboratory
Yokohama National University
Tel: +81-(0)80-4605-1305 
  Mail: tembe-atanasio...@ynu.jp 
manote...@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] Problem with mean()

2018-07-21 Thread Jeff Newmiller
Read ?mean.

Look at the argument list.

The mean function only applies to the first argument.

On July 21, 2018 9:39:42 AM PDT, John Kane via R-help  
wrote:
>Either I am doing something very stupid or my R installation has a
>glitch. What am I missing?
>dd1  <- 50
>dd2  <- 54
>
>mean(dd1, dd2)
>[1] 50  # wrong
>
>(dd1 + dd2)/2
>[1] 52 # correct
>
>aa  <- c(48, 52, 56, 54, 52)
>
>mean(aa)
>[1] 52.4 # correct
>
>
>
>   [[alternative HTML version deleted]]
>
>__
>R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide
>http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.

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

__
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] Problem with mean()

2018-07-21 Thread Duncan Murdoch

On 21/07/2018 12:39 PM, John Kane via R-help wrote:

Either I am doing something very stupid or my R installation has a glitch. What 
am I missing?
dd1  <- 50
dd2  <- 54

mean(dd1, dd2)
[1] 50  # wrong


Read the help page ?mean.  You are specifying the parameters x and trim.

Duncan Murdoch



(dd1 + dd2)/2
[1] 52 # correct

aa  <- c(48, 52, 56, 54, 52)

mean(aa)
[1] 52.4 # correct



[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.



__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Problem with mean()

2018-07-21 Thread Rui Barradas

Hello,

The first argument of mean is a vector, the dots argument is to be 
"passed to or from other methods." (from ?mean)


Try instead

mean(c(dd1, dd2))


Hope this helps,

Rui Barradas

Às 17:39 de 21-07-2018, John Kane via R-help escreveu:

Either I am doing something very stupid or my R installation has a glitch. What 
am I missing?
dd1  <- 50
dd2  <- 54

mean(dd1, dd2)
[1] 50  # wrong

(dd1 + dd2)/2
[1] 52 # correct

aa  <- c(48, 52, 56, 54, 52)

mean(aa)
[1] 52.4 # correct



[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.



__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


[R] Problem with mean()

2018-07-21 Thread John Kane via R-help
Either I am doing something very stupid or my R installation has a glitch. What 
am I missing?
dd1  <- 50
dd2  <- 54

mean(dd1, dd2)
[1] 50  # wrong

(dd1 + dd2)/2
[1] 52 # correct

aa  <- c(48, 52, 56, 54, 52)

mean(aa)
[1] 52.4 # correct



[[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] Install BMR package - Mac

2018-07-21 Thread Jeff Newmiller
Agree with Bert, but Google sez [1] might also be helpful.

[1] https://github.com/Microsoft/LightGBM/issues/3

On July 21, 2018 7:28:55 AM PDT, Bert Gunter  wrote:
>As this appears to be a Mac specific issue, if you don't get help here,
>you
>should try posting on the r-sig-mac list. Maybe even better would be to
>contact the maintainer of the BMR package, who might not monitor either
>list.
>
>
>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 Sat, Jul 21, 2018 at 6:00 AM, Beatrice Monti
>
>wrote:
>
>> Hi all,
>> I am having problems installing the BMR package.
>>
>> I have been trying the following:
>>
>> install.packages("devtools”)
>> library(devtools)
>> install_github("kthohr/BMR")
>>
>> This is the error I get:
>>
>> clang: error: unsupported option ‘-fopenmp'
>>
>> I have dowloaded and installed both gfortran and clang-6.0.0 from
>> https://cran.r-project.org/bin/macosx/tools/
>> bin/macosx/tools/>   but I still get the same error.
>> I am using R version 3.5.1 on Mac OS X.
>>
>> Any suggestion to solve this problem - which steps am I missing?
>> ps: my apologies if I missed important information - let me know if
>> further details are needed to explain the problem!
>>
>> Thank you so much for your help!
>> [[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.

-- 
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-es] Lanzar R desde Shiny server

2018-07-21 Thread Javier Marcuzzi
Estimado Jesús Para Fernández

Creo que no, porque R fue creado para comenzar, calcular, dar el resultado,
y finaliza, lo que usted pretende es algo que escuche todo el tiempo, y si
en ese tiempo sucede algo, ese algo le ordena a R comenzar su calculo y dar
el resultado, luego lógicamente se cierra, debe liberar la memoria y
recursos para ser reutilizados.

En ese sentido python mejora mucho a R porque el mismo lenguaje permite
realizar la web, rest, y los análisis estadísticos, lo que yo conozco en R
es colocar R como servicio, microssoft lo ofrece en azure y sql server que
tiene RServer, creo que oracle tiene algo semejante, pero son todos
servicios pagos. Lo que yo buscaría es en el sistema operativo que utiliza
un lenguaje que permita crear un servicio web, rest, un socket, algo que
escuche y que pueda conectar a R.

Javier Rubén Marcuzzi

El sáb., 21 jul. 2018 a las 11:38, Jesús Para Fernández (<
j.para.fernan...@hotmail.com>) escribió:

> Perdonad por el mensaje incompleto
>
> Lo que quiero es lanzar un proceso de R desde Shiny, pero un proceso que
> sea independiente a Shiny, es decir, como si fuera un cronjob pero que se
> ejecute enel momento de darle al boton lanzar proceso o algo asi.
>
> He vsito que se puede lanzar codigo R, con source, pero no es lo que busco
> ya que en el momento que corra la app si la cierro, cerraria tb ese
> proceso...
>
> ¿Alguna idea?
>
> Gracias!!!
> Jesús
> 
> De: R-help-es  en nombre de Jesús Para
> Fernández 
> Enviado: sábado, 21 de julio de 2018 16:24
> Para: r-help-es@r-project.org
> Asunto: [R-es] Lanzar R desde Shiny server
>
> Buenas
>
> No se si se puede y por eso acudo a esta comunidad..
>
> Quiero lanzar
>
> Obtener Outlook para Android
>
>
> [[alternative HTML version deleted]]
>
> ___
> R-help-es mailing list
> R-help-es@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-help-es
>
> [[alternative HTML version deleted]]
>
> ___
> R-help-es mailing list
> R-help-es@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-help-es
>

[[alternative HTML version deleted]]

___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es


Re: [R] Install BMR package - Mac

2018-07-21 Thread Bert Gunter
As this appears to be a Mac specific issue, if you don't get help here, you
should try posting on the r-sig-mac list. Maybe even better would be to
contact the maintainer of the BMR package, who might not monitor either
list.


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 Sat, Jul 21, 2018 at 6:00 AM, Beatrice Monti 
wrote:

> Hi all,
> I am having problems installing the BMR package.
>
> I have been trying the following:
>
> install.packages("devtools”)
> library(devtools)
> install_github("kthohr/BMR")
>
> This is the error I get:
>
> clang: error: unsupported option ‘-fopenmp'
>
> I have dowloaded and installed both gfortran and clang-6.0.0 from
> https://cran.r-project.org/bin/macosx/tools/  bin/macosx/tools/>   but I still get the same error.
> I am using R version 3.5.1 on Mac OS X.
>
> Any suggestion to solve this problem - which steps am I missing?
> ps: my apologies if I missed important information - let me know if
> further details are needed to explain the problem!
>
> Thank you so much for your help!
> [[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] Install BMR package - Mac

2018-07-21 Thread Beatrice Monti
Hi all,
I am having problems installing the BMR package.

I have been trying the following: 

install.packages("devtools”) 
library(devtools) 
install_github("kthohr/BMR")

This is the error I get:

clang: error: unsupported option ‘-fopenmp'

I have dowloaded and installed both gfortran and clang-6.0.0 from   
https://cran.r-project.org/bin/macosx/tools/ 
   but I still get the same error.
I am using R version 3.5.1 on Mac OS X.

Any suggestion to solve this problem - which steps am I missing? 
ps: my apologies if I missed important information - let me know if further 
details are needed to explain the problem!

Thank you so much for your help!
[[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] Fwd: Re: scatter plot coloring problem

2018-07-21 Thread Micha Silver



Hi

On 07/20/2018 03:16 PM, PIKAL Petr wrote:

Hi

Values in conv_df are almost same for each Error level

Thanks to Petr for help in catching this!


aggregate(conv_df$Intercept, list(conv_df$Error), mean)

  Group.1 x
1 High CML error -3.226313
2  Low CML error -3.226536
3  Med CML error -3.226422

aggregate(conv_df$Slope, list(conv_df$Error), mean)

  Group.1x
1 High CML error 8.325558
2  Low CML error 8.324242
3  Med CML error 8.324721

boxplot(split(conv_df$Slope, conv_df$Error))
boxplot(split(conv_df$Intercept, conv_df$Error))


so points in ggplot are overplotted and only colour for last plotted level is 
visible.


So I used geom_jitter() to get a reasonable looking visualization.


Cheers
Petr




--
Micha Silver
Ben Gurion Univ.
Sde Boker, Remote Sensing Lab
cell: +972-523-665918

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