Re: [R] How to install package meta on Linux Ubuntu 21?,
On 9/29/21 8:04 PM, Jeff Newmiller wrote: This is called hijacking a thread. Bad etiquette. You need to pay attention to column types and NA values. Only do regular expression manipulations on character data, and NA is never something you can do string operations on. To Giuseppa; When you see the characters without any surrounding quotes they are not really character values, but rather how the print function displays a missing value for a factor column. You cannot "eliminate it". In a very real sense it has already been "eliminated". Read up on missing value handling at: ?NA... although that aspect is not mentioned at the help page (although it should be. Look at this console session fragment: > factor(NA) [1] # factor missing values get the extra angle brackets. Levels: > NA [1] NA > char <- c("a", "NA", NA) > char [1] "a" "NA" NA # note that a character value of "NA" has quotes but a real missing value has none. -- David. On September 29, 2021 7:24:41 PM PDT, giuseppacef...@gmail.com wrote: Hello, I wonder if you can help me with this. I am trying to eliminate unnecessary characters from the columns of a data frame. For example this one, "df <- mutate_all(df, funs(str_replace_all(., "\\[|\\]", "")))" eliminates the [ and ] that sometimes surround a number. Ex; [24.5] [54.6] When I use the same command to eliminate the string "" it does not work. The only difference I have noticed is that the cell in the column containing the [ ] characters contains all the numbers in one row, but the cell in the column containing the "" characters contains several rows. For example: variable_name 1 2 3 ... I wonder if I have to collapse all the rows in a single row and eliminate one row. Thank you, Giuseppa Cefalu -Original Message- From: R-help On Behalf Of Rui Barradas Sent: Wednesday, September 29, 2021 3:13 PM To: Kevin Thorpe ; Luigi Marongiu Cc: R Help Mailing List Subject: Re: [R] How to install package meta on Linux Ubuntu 21? Hello, The recommended way is to install r-base-dev, you probably only have r-base. sudo apt-get update sudo apt-get install r-base-dev Hope this helps, Rui Barradas Às 17:53 de 29/09/21, Kevin Thorpe escreveu: It looks to me like you do not have the development packages installed in Ubuntu. These should be easy to obtain with a suitable apt-get command, but since I am not a primary Ubuntu user, I do not know the package names. On Sep 29, 2021, at 9:46 AM, Luigi Marongiu wrote: Hello I have R version 4.1.1 (2021-08-10) -- "Kick Things", on an Ubuntu 21 machine. I am trying to install the package meta but I get the following error: ``` ... ERROR: dependency ‘RcppEigen’ is not available for package ‘lme4’ * removing ‘/home/gigiux/R/x86_64-pc-linux-gnu-library/4.1/lme4’ Warning in install.packages : installation of package ‘lme4’ had non-zero exit status ERROR: dependency ‘lme4’ is not available for package ‘meta’ ``` I tried to install RcppEigen but: ``` ... /usr/bin/ld: cannot find -llapack /usr/bin/ld: cannot find -lblas /usr/bin/ld: cannot find -lgfortran collect2: error: ld returned 1 exit status make: *** [/usr/share/R/share/make/shlib.mk:10: RcppEigen.so] Error 1 ERROR: compilation failed for package ‘RcppEigen’ * removing ‘/home/gigiux/R/x86_64-pc-linux-gnu-library/4.1/RcppEigen’ Warning in install.packages : installation of package ‘RcppEigen’ had non-zero exit status ``` and lme4 requires RcppEigen. I launched `$ sudo apt-get install r-cran-rcppeigen` installation successful but I got the same error in installing RcppEigen. What could be the error? -- Best regards, Luigi __ 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. __ 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 install package meta on Linux Ubuntu 21?,
This is called hijacking a thread. Bad etiquette. You need to pay attention to column types and NA values. Only do regular expression manipulations on character data, and NA is never something you can do string operations on. On September 29, 2021 7:24:41 PM PDT, giuseppacef...@gmail.com wrote: >Hello, > >I wonder if you can help me with this. I am trying to eliminate unnecessary >characters from the columns of a data frame. For example this one, "df <- >mutate_all(df, > funs(str_replace_all(., "\\[|\\]", "")))" eliminates the [ > and ] that sometimes surround a number. Ex; [24.5] [54.6] > >When I use the same command to eliminate the string "" it does not work. >The only difference I have noticed is that the cell in the column containing >the [ ] characters contains all the numbers in one row, but the cell in the >column containing the "" characters contains several rows. > >For example: variable_name >1 >2 >3 ... >I wonder if I have to collapse all the rows in a single row and eliminate one >row. > >Thank you, > >Giuseppa Cefalu > >-Original Message- >From: R-help On Behalf Of Rui Barradas >Sent: Wednesday, September 29, 2021 3:13 PM >To: Kevin Thorpe ; Luigi Marongiu > >Cc: R Help Mailing List >Subject: Re: [R] How to install package meta on Linux Ubuntu 21? > >Hello, > >The recommended way is to install r-base-dev, you probably only have r-base. > >sudo apt-get update >sudo apt-get install r-base-dev > > >Hope this helps, > >Rui Barradas > >Às 17:53 de 29/09/21, Kevin Thorpe escreveu: >> It looks to me like you do not have the development packages installed in >> Ubuntu. These should be easy to obtain with a suitable apt-get command, but >> since I am not a primary Ubuntu user, I do not know the package names. >> >> >>> On Sep 29, 2021, at 9:46 AM, Luigi Marongiu >>> wrote: >>> >>> Hello >>> I have R version 4.1.1 (2021-08-10) -- "Kick Things", on an Ubuntu 21 >>> machine. I am trying to install the package meta but I get the >>> following error: >>> ``` >>> ... >>> ERROR: dependency ‘RcppEigen’ is not available for package ‘lme4’ >>> * removing ‘/home/gigiux/R/x86_64-pc-linux-gnu-library/4.1/lme4’ >>> Warning in install.packages : >>> installation of package ‘lme4’ had non-zero exit status >>> ERROR: dependency ‘lme4’ is not available for package ‘meta’ >>> ``` >>> I tried to install RcppEigen but: >>> ``` >>> ... >>> /usr/bin/ld: cannot find -llapack >>> /usr/bin/ld: cannot find -lblas >>> /usr/bin/ld: cannot find -lgfortran >>> collect2: error: ld returned 1 exit status >>> make: *** [/usr/share/R/share/make/shlib.mk:10: RcppEigen.so] Error 1 >>> ERROR: compilation failed for package ‘RcppEigen’ >>> * removing ‘/home/gigiux/R/x86_64-pc-linux-gnu-library/4.1/RcppEigen’ >>> Warning in install.packages : >>> installation of package ‘RcppEigen’ had non-zero exit status ``` >>> and lme4 requires RcppEigen. >>> I launched >>> `$ sudo apt-get install r-cran-rcppeigen` installation successful but >>> I got the same error in installing RcppEigen. >>> What could be the error? >>> -- >>> Best regards, >>> Luigi >>> >>> __ >>> 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. -- 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] How to install package meta on Linux Ubuntu 21?,
Hello, I wonder if you can help me with this. I am trying to eliminate unnecessary characters from the columns of a data frame. For example this one, "df <- mutate_all(df, funs(str_replace_all(., "\\[|\\]", "")))" eliminates the [ and ] that sometimes surround a number. Ex; [24.5] [54.6] When I use the same command to eliminate the string "" it does not work. The only difference I have noticed is that the cell in the column containing the [ ] characters contains all the numbers in one row, but the cell in the column containing the "" characters contains several rows. For example: variable_name 1 2 3 ... I wonder if I have to collapse all the rows in a single row and eliminate one row. Thank you, Giuseppa Cefalu -Original Message- From: R-help On Behalf Of Rui Barradas Sent: Wednesday, September 29, 2021 3:13 PM To: Kevin Thorpe ; Luigi Marongiu Cc: R Help Mailing List Subject: Re: [R] How to install package meta on Linux Ubuntu 21? Hello, The recommended way is to install r-base-dev, you probably only have r-base. sudo apt-get update sudo apt-get install r-base-dev Hope this helps, Rui Barradas Às 17:53 de 29/09/21, Kevin Thorpe escreveu: > It looks to me like you do not have the development packages installed in > Ubuntu. These should be easy to obtain with a suitable apt-get command, but > since I am not a primary Ubuntu user, I do not know the package names. > > >> On Sep 29, 2021, at 9:46 AM, Luigi Marongiu wrote: >> >> Hello >> I have R version 4.1.1 (2021-08-10) -- "Kick Things", on an Ubuntu 21 >> machine. I am trying to install the package meta but I get the >> following error: >> ``` >> ... >> ERROR: dependency ‘RcppEigen’ is not available for package ‘lme4’ >> * removing ‘/home/gigiux/R/x86_64-pc-linux-gnu-library/4.1/lme4’ >> Warning in install.packages : >> installation of package ‘lme4’ had non-zero exit status >> ERROR: dependency ‘lme4’ is not available for package ‘meta’ >> ``` >> I tried to install RcppEigen but: >> ``` >> ... >> /usr/bin/ld: cannot find -llapack >> /usr/bin/ld: cannot find -lblas >> /usr/bin/ld: cannot find -lgfortran >> collect2: error: ld returned 1 exit status >> make: *** [/usr/share/R/share/make/shlib.mk:10: RcppEigen.so] Error 1 >> ERROR: compilation failed for package ‘RcppEigen’ >> * removing ‘/home/gigiux/R/x86_64-pc-linux-gnu-library/4.1/RcppEigen’ >> Warning in install.packages : >> installation of package ‘RcppEigen’ had non-zero exit status ``` >> and lme4 requires RcppEigen. >> I launched >> `$ sudo apt-get install r-cran-rcppeigen` installation successful but >> I got the same error in installing RcppEigen. >> What could be the error? >> -- >> Best regards, >> Luigi >> >> __ >> 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] How to install package meta on Linux Ubuntu 21?
Yep, that was it! Now it worked. Thanks On Wed, Sep 29, 2021 at 9:13 PM Rui Barradas wrote: > > Hello, > > The recommended way is to install r-base-dev, you probably only have r-base. > > sudo apt-get update > sudo apt-get install r-base-dev > > > Hope this helps, > > Rui Barradas > > Às 17:53 de 29/09/21, Kevin Thorpe escreveu: > > It looks to me like you do not have the development packages installed in > > Ubuntu. These should be easy to obtain with a suitable apt-get command, but > > since I am not a primary Ubuntu user, I do not know the package names. > > > > > >> On Sep 29, 2021, at 9:46 AM, Luigi Marongiu > >> wrote: > >> > >> Hello > >> I have R version 4.1.1 (2021-08-10) -- "Kick Things", on an Ubuntu 21 > >> machine. I am trying to install the package meta but I get the > >> following error: > >> ``` > >> ... > >> ERROR: dependency ‘RcppEigen’ is not available for package ‘lme4’ > >> * removing ‘/home/gigiux/R/x86_64-pc-linux-gnu-library/4.1/lme4’ > >> Warning in install.packages : > >> installation of package ‘lme4’ had non-zero exit status > >> ERROR: dependency ‘lme4’ is not available for package ‘meta’ > >> ``` > >> I tried to install RcppEigen but: > >> ``` > >> ... > >> /usr/bin/ld: cannot find -llapack > >> /usr/bin/ld: cannot find -lblas > >> /usr/bin/ld: cannot find -lgfortran > >> collect2: error: ld returned 1 exit status > >> make: *** [/usr/share/R/share/make/shlib.mk:10: RcppEigen.so] Error 1 > >> ERROR: compilation failed for package ‘RcppEigen’ > >> * removing ‘/home/gigiux/R/x86_64-pc-linux-gnu-library/4.1/RcppEigen’ > >> Warning in install.packages : > >> installation of package ‘RcppEigen’ had non-zero exit status > >> ``` > >> and lme4 requires RcppEigen. > >> I launched > >> `$ sudo apt-get install r-cran-rcppeigen` > >> installation successful but I got the same error in installing RcppEigen. > >> What could be the error? > >> -- > >> Best regards, > >> Luigi > >> > >> __ > >> 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. > > -- Best regards, Luigi __ 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 install package meta on Linux Ubuntu 21?
Hello, The recommended way is to install r-base-dev, you probably only have r-base. sudo apt-get update sudo apt-get install r-base-dev Hope this helps, Rui Barradas Às 17:53 de 29/09/21, Kevin Thorpe escreveu: It looks to me like you do not have the development packages installed in Ubuntu. These should be easy to obtain with a suitable apt-get command, but since I am not a primary Ubuntu user, I do not know the package names. On Sep 29, 2021, at 9:46 AM, Luigi Marongiu wrote: Hello I have R version 4.1.1 (2021-08-10) -- "Kick Things", on an Ubuntu 21 machine. I am trying to install the package meta but I get the following error: ``` ... ERROR: dependency ‘RcppEigen’ is not available for package ‘lme4’ * removing ‘/home/gigiux/R/x86_64-pc-linux-gnu-library/4.1/lme4’ Warning in install.packages : installation of package ‘lme4’ had non-zero exit status ERROR: dependency ‘lme4’ is not available for package ‘meta’ ``` I tried to install RcppEigen but: ``` ... /usr/bin/ld: cannot find -llapack /usr/bin/ld: cannot find -lblas /usr/bin/ld: cannot find -lgfortran collect2: error: ld returned 1 exit status make: *** [/usr/share/R/share/make/shlib.mk:10: RcppEigen.so] Error 1 ERROR: compilation failed for package ‘RcppEigen’ * removing ‘/home/gigiux/R/x86_64-pc-linux-gnu-library/4.1/RcppEigen’ Warning in install.packages : installation of package ‘RcppEigen’ had non-zero exit status ``` and lme4 requires RcppEigen. I launched `$ sudo apt-get install r-cran-rcppeigen` installation successful but I got the same error in installing RcppEigen. What could be the error? -- Best regards, Luigi __ 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] How to install package meta on Linux Ubuntu 21?
It looks to me like you do not have the development packages installed in Ubuntu. These should be easy to obtain with a suitable apt-get command, but since I am not a primary Ubuntu user, I do not know the package names. > On Sep 29, 2021, at 9:46 AM, Luigi Marongiu wrote: > > Hello > I have R version 4.1.1 (2021-08-10) -- "Kick Things", on an Ubuntu 21 > machine. I am trying to install the package meta but I get the > following error: > ``` > ... > ERROR: dependency ‘RcppEigen’ is not available for package ‘lme4’ > * removing ‘/home/gigiux/R/x86_64-pc-linux-gnu-library/4.1/lme4’ > Warning in install.packages : > installation of package ‘lme4’ had non-zero exit status > ERROR: dependency ‘lme4’ is not available for package ‘meta’ > ``` > I tried to install RcppEigen but: > ``` > ... > /usr/bin/ld: cannot find -llapack > /usr/bin/ld: cannot find -lblas > /usr/bin/ld: cannot find -lgfortran > collect2: error: ld returned 1 exit status > make: *** [/usr/share/R/share/make/shlib.mk:10: RcppEigen.so] Error 1 > ERROR: compilation failed for package ‘RcppEigen’ > * removing ‘/home/gigiux/R/x86_64-pc-linux-gnu-library/4.1/RcppEigen’ > Warning in install.packages : > installation of package ‘RcppEigen’ had non-zero exit status > ``` > and lme4 requires RcppEigen. > I launched > `$ sudo apt-get install r-cran-rcppeigen` > installation successful but I got the same error in installing RcppEigen. > What could be the error? > -- > Best regards, > Luigi > > __ > 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. -- Kevin E. Thorpe Head of Biostatistics, Applied Health Research Centre (AHRC) Li Ka Shing Knowledge Institute of St. Michael's Assistant Professor, Dalla Lana School of Public Health University of Toronto email: kevin.tho...@utoronto.ca Tel: 416.864.5776 Fax: 416.864.3016 __ 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 install package meta on Linux Ubuntu 21?
Hello I have R version 4.1.1 (2021-08-10) -- "Kick Things", on an Ubuntu 21 machine. I am trying to install the package meta but I get the following error: ``` ... ERROR: dependency ‘RcppEigen’ is not available for package ‘lme4’ * removing ‘/home/gigiux/R/x86_64-pc-linux-gnu-library/4.1/lme4’ Warning in install.packages : installation of package ‘lme4’ had non-zero exit status ERROR: dependency ‘lme4’ is not available for package ‘meta’ ``` I tried to install RcppEigen but: ``` ... /usr/bin/ld: cannot find -llapack /usr/bin/ld: cannot find -lblas /usr/bin/ld: cannot find -lgfortran collect2: error: ld returned 1 exit status make: *** [/usr/share/R/share/make/shlib.mk:10: RcppEigen.so] Error 1 ERROR: compilation failed for package ‘RcppEigen’ * removing ‘/home/gigiux/R/x86_64-pc-linux-gnu-library/4.1/RcppEigen’ Warning in install.packages : installation of package ‘RcppEigen’ had non-zero exit status ``` and lme4 requires RcppEigen. I launched `$ sudo apt-get install r-cran-rcppeigen` installation successful but I got the same error in installing RcppEigen. What could be the error? -- Best regards, Luigi __ 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.