Re: [R] Updating Rcpp package when it is claimed by dplyr
Your last statement is extremely unlikely to be true. The dplyr package should not be present in a vanilla environment, so there should be no such conflict. -- Sent from my phone. Please excuse my brevity. On February 1, 2018 11:00:01 PM PST, Patrick Connolly wrote: >When i tried to install the hunspell package, I got this error >message: > >Error: package ‘Rcpp’ 0.12.3 was found, but >= 0.12.12 is required by >‘hunspell’ > >So I set about installing a new version of Rcpp but I get this message: > >Error in unloadNamespace(pkg_name) : > namespace ‘Rcpp’ is imported by ‘dplyr’ so cannot be unloaded > >How does one get around that? I tried installing Rcpp in a vanilla >session but the result was the same. > >TIA >Patrick > > >> sessionInfo() >R version 3.4.3 (2017-11-30) >Platform: x86_64-pc-linux-gnu (64-bit) >Running under: Ubuntu 14.04.5 LTS > >Matrix products: default >BLAS: /home/pat/local/R-3.4.3/lib/libRblas.so >LAPACK: /home/pat/local/R-3.4.3/lib/libRlapack.so > >locale: > [1] LC_CTYPE=en_NZ.UTF-8 LC_NUMERIC=C > [3] LC_TIME=en_NZ.UTF-8LC_COLLATE=en_NZ.UTF-8 > [5] LC_MONETARY=en_NZ.UTF-8LC_MESSAGES=en_NZ.UTF-8 > [7] LC_PAPER=en_NZ.UTF-8 LC_NAME=C > [9] LC_ADDRESS=C LC_TELEPHONE=C >[11] LC_MEASUREMENT=en_NZ.UTF-8 LC_IDENTIFICATION=C > >attached base packages: >[1] utils stats grDevices graphics methods base > >other attached packages: >[1] lattice_0.20-35 > >loaded via a namespace (and not attached): >[1] compiler_3.4.3 magrittr_1.5 R6_2.1.2 assertthat_0.1 >parallel_3.4.3 >[6] tools_3.4.3DBI_0.3.1 dplyr_0.4.3Rcpp_0.12.3 >grid_3.4.3 > > >-- >~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~. > > ___Patrick Connolly > {~._.~} Great minds discuss ideas > _( Y )_Average minds discuss events >(:_~*~_:) Small minds discuss people > (_)-(_) . Eleanor Roosevelt > >~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~. > >__ >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] Updating Rcpp package when it is claimed by dplyr
When i tried to install the hunspell package, I got this error message: Error: package ‘Rcpp’ 0.12.3 was found, but >= 0.12.12 is required by ‘hunspell’ So I set about installing a new version of Rcpp but I get this message: Error in unloadNamespace(pkg_name) : namespace ‘Rcpp’ is imported by ‘dplyr’ so cannot be unloaded How does one get around that? I tried installing Rcpp in a vanilla session but the result was the same. TIA Patrick > sessionInfo() R version 3.4.3 (2017-11-30) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 14.04.5 LTS Matrix products: default BLAS: /home/pat/local/R-3.4.3/lib/libRblas.so LAPACK: /home/pat/local/R-3.4.3/lib/libRlapack.so locale: [1] LC_CTYPE=en_NZ.UTF-8 LC_NUMERIC=C [3] LC_TIME=en_NZ.UTF-8LC_COLLATE=en_NZ.UTF-8 [5] LC_MONETARY=en_NZ.UTF-8LC_MESSAGES=en_NZ.UTF-8 [7] LC_PAPER=en_NZ.UTF-8 LC_NAME=C [9] LC_ADDRESS=C LC_TELEPHONE=C [11] LC_MEASUREMENT=en_NZ.UTF-8 LC_IDENTIFICATION=C attached base packages: [1] utils stats grDevices graphics methods base other attached packages: [1] lattice_0.20-35 loaded via a namespace (and not attached): [1] compiler_3.4.3 magrittr_1.5 R6_2.1.2 assertthat_0.1 parallel_3.4.3 [6] tools_3.4.3DBI_0.3.1 dplyr_0.4.3Rcpp_0.12.3grid_3.4.3 -- ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~. ___Patrick Connolly {~._.~} Great minds discuss ideas _( Y )_ Average minds discuss events (:_~*~_:) Small minds discuss people (_)-(_) . Eleanor Roosevelt ~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~. __ 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] Data Table Merge Help
I rarely use data.table, but I think the vignette for the package discusses rolling joins. Also, Google popped up [1]. [1] https://www.r-bloggers.com/understanding-data-table-rolling-joins/ -- Sent from my phone. Please excuse my brevity. On February 1, 2018 9:45:53 AM PST, "Graeve, Nick" wrote: >Hello > >I'm not sure if this is an appropriate use of this mailing list or not, >please let me know if it isn't. I'm struggling to figure out how to >merge two data tables based on max effective date logic compared to >when a payment occurred. My dtDistributions DT is a transactional >dataset while dtDepartments is a domain data set containing all >department names and the effective date of when department name changes >have occurred. For the Bob example below, there was a payment on >2016-01-01 which occurred in H229000. In 2012, this department was >named "Modified Name", in 2019 the department will be named "Final >Name". When I merge these two tables, I'd like it to pull the >transactional data and match it up to department name "Modified Name" >since that was the active department name at the time of that >transaction. I've read documentation on foverlaps, but I'm not sure if >this problem is considered a range of dates or not. At the bottom of >this post is a temporarily solution that is working but it runs for a >long time due to the amount of data in my actual source. > >Here is some sample data to get started: >library(data.table) >dtDistributions <- data.table(PayeeName = c("Bob", "Tracy", "Tom"), > Department = factor(c("H229000", "H135000", >"H047800")), > Amount = c(5, 34, 87), > PaymentDT = as.Date(c("2016-01-01", >"2015-01-01", "2015-01-01"))) > >dtDepartments <- data.table(Department = factor(c("H229000", "H229000", >"H229000", "H135000", "H047800")), > EffDT = as.Date(c("2019-01-01", "2012-01-01", >"1901-01-01", "1901-01-01", "1901-01-01")), > Descr = c("Final Name","Modified >Name","Original Name","Payables","Postal")) > >Here is the output I would like to see: >PayeeName Department PaymentDT Amount >Bob Modified Name 2016-01-01 5 >Tracy Payables 2015-01-01 34 >Tom Postal 2015-01-01 87 > >I was able to get this working by using the sqldf library, but it runs >for a very long time in my actual dataset and I'd like to use >data.table if at all possible. >library(sqldf) >joinString <- "SELECT A.PayeeName, B.Descr, A.PaymentDT, A.Amount > FROM dtDistributions A, dtDepartments B > WHERE A.DEPARTMENT = B.Department > AND B.EffDT = (SELECT MAX(ED.EffDT) > FROM dtDepartments ED > WHERE B.Department = ED.Department > AND ED.EffDT <= A.PaymentDT)" > >finalDT <- data.table(sqldf(joinString)) > > > >-Message Disclaimer- > >This e-mail message is intended only for the use of the individual or >entity to which it is addressed, and may contain information that is >privileged, confidential and exempt from disclosure under applicable >law. If you are not the intended recipient, any dissemination, >distribution or copying of this communication is strictly prohibited. >If you have received this communication in error, please notify us >immediately by reply email to conn...@principal.com and delete or >destroy all copies of the original message and attachments thereto. >Email sent to or from the Principal Financial Group or any of its >member companies may be retained as required by law or regulation. > >Nothing in this message is intended to constitute an Electronic >signature for purposes of the Uniform Electronic Transactions Act >(UETA) or the Electronic Signatures in Global and National Commerce Act >("E-Sign") unless a specific statement to the contrary is included in >this message. > >If you no longer wish to receive any further solicitation from the >Principal Financial Group you may unsubscribe at >https://www.principal.com/do-not-contact-form any time. > >If you are a Canadian resident and no longer wish to receive commercial >electronic messages you may unsubscribe at >https://www.principal.com/do-not-email-request-canadian-residents any >time. > > > > > >This message was secured by Zix(R). > >__ >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] Error while working with png output on linux server
What does capabilities() return? For example, I get > capabilities() jpeg pngtiff tcltk X11 TRUETRUETRUETRUETRUE aquahttp/ftp sockets libxmlfifo TRUETRUETRUETRUETRUE cledit iconv NLS profmem cairo FALSETRUETRUETRUETRUE ICU long.double libcurl TRUETRUETRUE If you get FALSE for png or X11, then you do indeed have an issue with your installation. And probably, as Jeff Newmiller suggested, with which support software is or is not installed on the system. -Don -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 Lab cell 925-724-7509 On 2/1/18, 6:50 AM, "R-help on behalf of Sariya, Sanjeev" wrote: I'm working on linux server: Linux 4.9.0-4-amd64 #1 SMP Debian 4.9.51-1 (2017-09-28) x86_64 GNU/Linux I get error while creating png files. I'm sharing my commands and error while I run those commands: >png("abc", type="cairo") Error in .External2(C_X11, paste0("png::", filename), g$width, g$height, : unable to start device PNG In addition: Warning message: In png("abc", type = "cairo") : unable to open connection to X11 display '' > png("apoeqqplot.png", res=600) Error in .External2(C_X11, paste0("png::", filename), g$width, g$height, : unable to start device PNG In addition: Warning message: In png("apoeqqplot.png", res = 600) : unable to open connection to X11 display '' dev.off() R version 3.4.2 (2017-09-28) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Debian GNU/Linux 9 (stretch) Matrix products: default BLAS: /mnt/mfs/cluster/bin/R-3.4/lib/libRblas.so LAPACK: /mnt/mfs/cluster/bin/R-3.4/lib/libRlapack.so locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C [3] LC_TIME=en_US.UTF-8LC_COLLATE=en_US.UTF-8 [5] LC_MONETARY=en_US.UTF-8LC_MESSAGES=en_US.UTF-8 [7] LC_PAPER=en_US.UTF-8 LC_NAME=C [9] LC_ADDRESS=C LC_TELEPHONE=C [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] CMplot_3.3.1 loaded via a namespace (and not attached): [1] compiler_3.4.2 tools_3.4.2 How do I fix this? [[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] Data Table Merge Help
Did you search first? (This is suggested by the posting guide -- below -- prior to posting). "merge 2 data.tables in R" brought up what looked like useful stuff, in particular the merge() function for data tables. If this does not do what you want, it may help to explain why not. Alternatively, there is a merge.data.frame function that may do the job if you first convert your data.table to a data.frame. As I do not use the data.table package, you or others may have to fill in details to make these work -- if they *can* work. 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 Thu, Feb 1, 2018 at 9:45 AM, Graeve, Nick wrote: > Hello > > I'm not sure if this is an appropriate use of this mailing list or not, > please let me know if it isn't. I'm struggling to figure out how to merge > two data tables based on max effective date logic compared to when a payment > occurred. My dtDistributions DT is a transactional dataset while > dtDepartments is a domain data set containing all department names and the > effective date of when department name changes have occurred. For the Bob > example below, there was a payment on 2016-01-01 which occurred in H229000. > In 2012, this department was named "Modified Name", in 2019 the department > will be named "Final Name". When I merge these two tables, I'd like it to > pull the transactional data and match it up to department name "Modified > Name" since that was the active department name at the time of that > transaction. I've read documentation on foverlaps, but I'm not sure if this > problem is considered a range of dates or not. At the bottom of this post is > a temporarily solution that is wo rking but it runs for a long time due to the amount of data in my actual source. > > Here is some sample data to get started: > library(data.table) > dtDistributions <- data.table(PayeeName = c("Bob", "Tracy", "Tom"), > Department = factor(c("H229000", "H135000", > "H047800")), > Amount = c(5, 34, 87), > PaymentDT = as.Date(c("2016-01-01", "2015-01-01", > "2015-01-01"))) > > dtDepartments <- data.table(Department = factor(c("H229000", "H229000", > "H229000", "H135000", "H047800")), > EffDT = as.Date(c("2019-01-01", "2012-01-01", > "1901-01-01", "1901-01-01", "1901-01-01")), > Descr = c("Final Name","Modified Name","Original > Name","Payables","Postal")) > > Here is the output I would like to see: > PayeeName Department PaymentDT Amount > BobModified Name 2016-01-01 5 > Tracy Payables 2015-01-01 34 > TomPostal 2015-01-01 87 > > I was able to get this working by using the sqldf library, but it runs for a > very long time in my actual dataset and I'd like to use data.table if at all > possible. > library(sqldf) > joinString <- "SELECT A.PayeeName, B.Descr, A.PaymentDT, A.Amount > FROM dtDistributions A, dtDepartments B > WHERE A.DEPARTMENT = B.Department > AND B.EffDT = (SELECT MAX(ED.EffDT) > FROM dtDepartments ED > WHERE B.Department = ED.Department > AND ED.EffDT <= A.PaymentDT)" > > finalDT <- data.table(sqldf(joinString)) > > > > -Message Disclaimer- > > This e-mail message is intended only for the use of the individual or entity > to which it is addressed, and may contain information that is privileged, > confidential and exempt from disclosure under applicable law. If you are not > the intended recipient, any dissemination, distribution or copying of this > communication is strictly prohibited. If you have received this communication > in error, please notify us immediately by reply email to > conn...@principal.com and delete or destroy all copies of the original > message and attachments thereto. Email sent to or from the Principal > Financial Group or any of its member companies may be retained as required by > law or regulation. > > Nothing in this message is intended to constitute an Electronic signature for > purposes of the Uniform Electronic Transactions Act (UETA) or the Electronic > Signatures in Global and National Commerce Act ("E-Sign") unless a specific > statement to the contrary is included in this message. > > If you no longer wish to receive any further solicitation from the Principal > Financial Group you may unsubscribe at > https://www.principal.com/do-not-contact-form any time. > > If you are a Canadian resident and no longer wish to receive commercial > electronic messages you may unsubscribe at > https://www.principal.com/do-not-email-request-canadian-residents any time. > > > > > > This message was secured by Zix(R). > > ___
[R] Data Table Merge Help
Hello I'm not sure if this is an appropriate use of this mailing list or not, please let me know if it isn't. I'm struggling to figure out how to merge two data tables based on max effective date logic compared to when a payment occurred. My dtDistributions DT is a transactional dataset while dtDepartments is a domain data set containing all department names and the effective date of when department name changes have occurred. For the Bob example below, there was a payment on 2016-01-01 which occurred in H229000. In 2012, this department was named "Modified Name", in 2019 the department will be named "Final Name". When I merge these two tables, I'd like it to pull the transactional data and match it up to department name "Modified Name" since that was the active department name at the time of that transaction. I've read documentation on foverlaps, but I'm not sure if this problem is considered a range of dates or not. At the bottom of this post is a temporarily solution that is working but it runs for a long time due to the amount of data in my actual source. Here is some sample data to get started: library(data.table) dtDistributions <- data.table(PayeeName = c("Bob", "Tracy", "Tom"), Department = factor(c("H229000", "H135000", "H047800")), Amount = c(5, 34, 87), PaymentDT = as.Date(c("2016-01-01", "2015-01-01", "2015-01-01"))) dtDepartments <- data.table(Department = factor(c("H229000", "H229000", "H229000", "H135000", "H047800")), EffDT = as.Date(c("2019-01-01", "2012-01-01", "1901-01-01", "1901-01-01", "1901-01-01")), Descr = c("Final Name","Modified Name","Original Name","Payables","Postal")) Here is the output I would like to see: PayeeName Department PaymentDT Amount Bob Modified Name 2016-01-01 5 Tracy Payables 2015-01-01 34 Tom Postal 2015-01-01 87 I was able to get this working by using the sqldf library, but it runs for a very long time in my actual dataset and I'd like to use data.table if at all possible. library(sqldf) joinString <- "SELECT A.PayeeName, B.Descr, A.PaymentDT, A.Amount FROM dtDistributions A, dtDepartments B WHERE A.DEPARTMENT = B.Department AND B.EffDT = (SELECT MAX(ED.EffDT) FROM dtDepartments ED WHERE B.Department = ED.Department AND ED.EffDT <= A.PaymentDT)" finalDT <- data.table(sqldf(joinString)) -Message Disclaimer- This e-mail message is intended only for the use of the individual or entity to which it is addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended recipient, any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by reply email to conn...@principal.com and delete or destroy all copies of the original message and attachments thereto. Email sent to or from the Principal Financial Group or any of its member companies may be retained as required by law or regulation. Nothing in this message is intended to constitute an Electronic signature for purposes of the Uniform Electronic Transactions Act (UETA) or the Electronic Signatures in Global and National Commerce Act ("E-Sign") unless a specific statement to the contrary is included in this message. If you no longer wish to receive any further solicitation from the Principal Financial Group you may unsubscribe at https://www.principal.com/do-not-contact-form any time. If you are a Canadian resident and no longer wish to receive commercial electronic messages you may unsubscribe at https://www.principal.com/do-not-email-request-canadian-residents any time. This message was secured by Zix(R). __ 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] Error while working with png output on linux server
Thank you. -- Sanjeev Sariya -Original Message- From: Jeff Newmiller [mailto:jdnew...@dcn.davis.ca.us] Sent: Thursday, February 01, 2018 12:09 PM To: Sariya, Sanjeev ; Thierry Onkelinx Cc: r-help@r-project.org Subject: RE: [R] Error while working with png output on linux server This is not an R issue so this is not a good venue... it has to do with which support software you have (not) installed. Try the R-sig-debian mailing list. Please clarify to them how you installed R... for Debian there are relevant deb packages and a corresponding Debian repository that provide the simplest route to a working system, but if you compile it yourself it is easy to miss dependencies. -- Sent from my phone. Please excuse my brevity. On February 1, 2018 8:23:13 AM PST, "Sariya, Sanjeev" wrote: >Thanks for your reply. I searched for the error on Google before >resorting to the R forum (help group). >I tried Sys.env(...) too, but didn't resolve the error I get. Hence I >am looking for solution. > > > >-- > > >-Original Message- >From: Thierry Onkelinx [mailto:thierry.onkel...@inbo.be] >Sent: Thursday, February 01, 2018 10:57 AM >To: Sariya, Sanjeev >Cc: Jeff Newmiller ; r-help@r-project.org >Subject: Re: [R] Error while working with png output on linux server > >Dear Sanjeev, > >It seems that you system neither supports X11 devices nor cairo >devices. See http://lmgtfy.com/?q=R+unable+to+open+connection+to+X11 >for possible solutions. > >Best regards, > >ir. Thierry Onkelinx >Statisticus / Statistician > >Vlaamse Overheid / Government of Flanders INSTITUUT VOOR NATUUR- EN >BOSONDERZOEK / RESEARCH INSTITUTE FOR NATURE AND FOREST Team Biometrie >& Kwaliteitszorg / Team Biometrics & Quality Assurance >thierry.onkel...@inbo.be Havenlaan 88 bus 73, 1000 Brussel www.inbo.be > >/// > To call in the statistician after the experiment >is done may be no more than asking him to perform a post-mortem >examination: he may be able to say what the experiment died of. ~ Sir >Ronald Aylmer Fisher The plural of anecdote is not data. ~ Roger >Brinner The combination of some data and an aching desire for an answer >does not ensure that a reasonable answer can be extracted from a given >body of data. ~ John Tukey >/// > > > > > >2018-02-01 16:18 GMT+01:00 Sariya, Sanjeev : >> Thanks for pointing to FAQ: I tried with cairo (shared in commands), >unfortunately didn't work. >> >> -- >> Sanjeev Sariya >> >> >> -Original Message- >> From: Jeff Newmiller [mailto:jdnew...@dcn.davis.ca.us] >> Sent: Thursday, February 01, 2018 10:12 AM >> To: r-help@r-project.org; Sariya, Sanjeev ; > >> r-help@r-project.org >> Subject: Re: [R] Error while working with png output on linux server >> >> FAQ 7.19? >> >> Also, read the Posting Guide, in particular about posting using plain >text. >> -- >> Sent from my phone. Please excuse my brevity. >> >> On February 1, 2018 6:50:42 AM PST, "Sariya, Sanjeev" > wrote: >>>I'm working on linux server: >>>Linux 4.9.0-4-amd64 #1 SMP Debian 4.9.51-1 (2017-09-28) x86_64 >>>GNU/Linux >>> >>>I get error while creating png files. I'm sharing my commands and >>>error while I run those commands: >>> png("abc", type="cairo") >>>Error in .External2(C_X11, paste0("png::", filename), g$width, >>>g$height, : >>> unable to start device PNG >>>In addition: Warning message: >>>In png("abc", type = "cairo") : unable to open connection to X11 >>>display '' >>> png("apoeqqplot.png", res=600) >>>Error in .External2(C_X11, paste0("png::", filename), g$width, >>>g$height, : >>> unable to start device PNG >>>In addition: Warning message: >>>In png("apoeqqplot.png", res = 600) : >>> unable to open connection to X11 display '' >>> >>>dev.off() >>> >>>R version 3.4.2 (2017-09-28) >>>Platform: x86_64-pc-linux-gnu (64-bit) Running under: Debian >GNU/Linux >>>9 (stretch) >>> >>>Matrix products: default >>>BLAS: /mnt/mfs/cluster/bin/R-3.4/lib/libRblas.so >>>LAPACK: /mnt/mfs/cluster/bin/R-3.4/lib/libRlapack.so >>> >>>locale: >>>[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C >>>[3] LC_TIME=en_US.UTF-8LC_COLLATE=en_US.UTF-8 >>>[5] LC_MONETARY=en_US.UTF-8LC_MESSAGES=en_US.UTF-8 >>>[7] LC_PAPER=en_US.UTF-8 LC_NAME=C >>>[9] LC_ADDRESS=C LC_TELEPHONE=C >>>[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C >>> >>>attached base packages: >>>[1] stats graphics grDevices utils datasets methods base >>> >>>other attached packages: >>>[1] CMplot_3.3.1 >>> >>>loaded via a namespace (and not attached): >>>[1] compiler_3.4.2 tools_3.4.2 >>> >>> >>>How do I fix this? >>> >>> >>> [[alternative HTML version deleted]] >>> >>>__ >>>R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see >>>https://stat.ethz.ch/mailman/listinfo/r-he
Re: [R] Error while working with png output on linux server
This is not an R issue so this is not a good venue... it has to do with which support software you have (not) installed. Try the R-sig-debian mailing list. Please clarify to them how you installed R... for Debian there are relevant deb packages and a corresponding Debian repository that provide the simplest route to a working system, but if you compile it yourself it is easy to miss dependencies. -- Sent from my phone. Please excuse my brevity. On February 1, 2018 8:23:13 AM PST, "Sariya, Sanjeev" wrote: >Thanks for your reply. I searched for the error on Google before >resorting to the R forum (help group). >I tried Sys.env(...) too, but didn't resolve the error I get. Hence I >am looking for solution. > > > >-- > > >-Original Message- >From: Thierry Onkelinx [mailto:thierry.onkel...@inbo.be] >Sent: Thursday, February 01, 2018 10:57 AM >To: Sariya, Sanjeev >Cc: Jeff Newmiller ; r-help@r-project.org >Subject: Re: [R] Error while working with png output on linux server > >Dear Sanjeev, > >It seems that you system neither supports X11 devices nor cairo >devices. See http://lmgtfy.com/?q=R+unable+to+open+connection+to+X11 >for possible solutions. > >Best regards, > >ir. Thierry Onkelinx >Statisticus / Statistician > >Vlaamse Overheid / Government of Flanders INSTITUUT VOOR NATUUR- EN >BOSONDERZOEK / RESEARCH INSTITUTE FOR NATURE AND FOREST Team Biometrie >& Kwaliteitszorg / Team Biometrics & Quality Assurance >thierry.onkel...@inbo.be Havenlaan 88 bus 73, 1000 Brussel www.inbo.be > >/// >To call in the statistician after the experiment is done may be no more >than asking him to perform a post-mortem examination: he may be able to >say what the experiment died of. ~ Sir Ronald Aylmer Fisher The plural >of anecdote is not data. ~ Roger Brinner The combination of some data >and an aching desire for an answer does not ensure that a reasonable >answer can be extracted from a given body of data. ~ John Tukey >/// > > > > >2018-02-01 16:18 GMT+01:00 Sariya, Sanjeev : >> Thanks for pointing to FAQ: I tried with cairo (shared in commands), >unfortunately didn't work. >> >> -- >> Sanjeev Sariya >> >> >> -Original Message- >> From: Jeff Newmiller [mailto:jdnew...@dcn.davis.ca.us] >> Sent: Thursday, February 01, 2018 10:12 AM >> To: r-help@r-project.org; Sariya, Sanjeev ; > >> r-help@r-project.org >> Subject: Re: [R] Error while working with png output on linux server >> >> FAQ 7.19? >> >> Also, read the Posting Guide, in particular about posting using plain >text. >> -- >> Sent from my phone. Please excuse my brevity. >> >> On February 1, 2018 6:50:42 AM PST, "Sariya, Sanjeev" > wrote: >>>I'm working on linux server: >>>Linux 4.9.0-4-amd64 #1 SMP Debian 4.9.51-1 (2017-09-28) x86_64 >>>GNU/Linux >>> >>>I get error while creating png files. I'm sharing my commands and >>>error while I run those commands: >>> png("abc", type="cairo") >>>Error in .External2(C_X11, paste0("png::", filename), g$width, >>>g$height, : >>> unable to start device PNG >>>In addition: Warning message: >>>In png("abc", type = "cairo") : unable to open connection to X11 >>>display '' >>> png("apoeqqplot.png", res=600) >>>Error in .External2(C_X11, paste0("png::", filename), g$width, >>>g$height, : >>> unable to start device PNG >>>In addition: Warning message: >>>In png("apoeqqplot.png", res = 600) : >>> unable to open connection to X11 display '' >>> >>>dev.off() >>> >>>R version 3.4.2 (2017-09-28) >>>Platform: x86_64-pc-linux-gnu (64-bit) Running under: Debian >GNU/Linux >>>9 (stretch) >>> >>>Matrix products: default >>>BLAS: /mnt/mfs/cluster/bin/R-3.4/lib/libRblas.so >>>LAPACK: /mnt/mfs/cluster/bin/R-3.4/lib/libRlapack.so >>> >>>locale: >>>[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C >>>[3] LC_TIME=en_US.UTF-8LC_COLLATE=en_US.UTF-8 >>>[5] LC_MONETARY=en_US.UTF-8LC_MESSAGES=en_US.UTF-8 >>>[7] LC_PAPER=en_US.UTF-8 LC_NAME=C >>>[9] LC_ADDRESS=C LC_TELEPHONE=C >>>[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C >>> >>>attached base packages: >>>[1] stats graphics grDevices utils datasets methods base >>> >>>other attached packages: >>>[1] CMplot_3.3.1 >>> >>>loaded via a namespace (and not attached): >>>[1] compiler_3.4.2 tools_3.4.2 >>> >>> >>>How do I fix this? >>> >>> >>> [[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/
Re: [R] Error while working with png output on linux server
You could try with png2() in the R.devices package, which is just a convenient wrapper around the bitmap() device which can also produce PNGs. It's not perfect but it might get you going. Henrik On Feb 1, 2018 08:24, "Sariya, Sanjeev" wrote: > Thanks for your reply. I searched for the error on Google before resorting > to the R forum (help group). > I tried Sys.env(...) too, but didn't resolve the error I get. Hence I am > looking for solution. > > > > -- > > > -Original Message- > From: Thierry Onkelinx [mailto:thierry.onkel...@inbo.be] > Sent: Thursday, February 01, 2018 10:57 AM > To: Sariya, Sanjeev > Cc: Jeff Newmiller ; r-help@r-project.org > Subject: Re: [R] Error while working with png output on linux server > > Dear Sanjeev, > > It seems that you system neither supports X11 devices nor cairo devices. > See http://lmgtfy.com/?q=R+unable+to+open+connection+to+X11 > for possible solutions. > > Best regards, > > ir. Thierry Onkelinx > Statisticus / Statistician > > Vlaamse Overheid / Government of Flanders INSTITUUT VOOR NATUUR- EN > BOSONDERZOEK / RESEARCH INSTITUTE FOR NATURE AND FOREST Team Biometrie & > Kwaliteitszorg / Team Biometrics & Quality Assurance > thierry.onkel...@inbo.be Havenlaan 88 bus 73, 1000 Brussel www.inbo.be > > > /// > To call in the statistician after the experiment is done may be no more > than asking him to perform a post-mortem examination: he may be able to say > what the experiment died of. ~ Sir Ronald Aylmer Fisher The plural of > anecdote is not data. ~ Roger Brinner The combination of some data and an > aching desire for an answer does not ensure that a reasonable answer can be > extracted from a given body of data. ~ John Tukey > > /// > > > > > 2018-02-01 16:18 GMT+01:00 Sariya, Sanjeev : > > Thanks for pointing to FAQ: I tried with cairo (shared in commands), > unfortunately didn't work. > > > > -- > > Sanjeev Sariya > > > > > > -Original Message- > > From: Jeff Newmiller [mailto:jdnew...@dcn.davis.ca.us] > > Sent: Thursday, February 01, 2018 10:12 AM > > To: r-help@r-project.org; Sariya, Sanjeev ; > > r-help@r-project.org > > Subject: Re: [R] Error while working with png output on linux server > > > > FAQ 7.19? > > > > Also, read the Posting Guide, in particular about posting using plain > text. > > -- > > Sent from my phone. Please excuse my brevity. > > > > On February 1, 2018 6:50:42 AM PST, "Sariya, Sanjeev" < > ss5...@cumc.columbia.edu> wrote: > >>I'm working on linux server: > >>Linux 4.9.0-4-amd64 #1 SMP Debian 4.9.51-1 (2017-09-28) x86_64 > >>GNU/Linux > >> > >>I get error while creating png files. I'm sharing my commands and > >>error while I run those commands: > >> > >>>png("abc", type="cairo") > >>Error in .External2(C_X11, paste0("png::", filename), g$width, > >>g$height, : > >> unable to start device PNG > >>In addition: Warning message: > >>In png("abc", type = "cairo") : unable to open connection to X11 > >>display '' > >> > >>> png("apoeqqplot.png", res=600) > >>Error in .External2(C_X11, paste0("png::", filename), g$width, > >>g$height, : > >> unable to start device PNG > >>In addition: Warning message: > >>In png("apoeqqplot.png", res = 600) : > >> unable to open connection to X11 display '' > >> > >>dev.off() > >> > >>R version 3.4.2 (2017-09-28) > >>Platform: x86_64-pc-linux-gnu (64-bit) Running under: Debian GNU/Linux > >>9 (stretch) > >> > >>Matrix products: default > >>BLAS: /mnt/mfs/cluster/bin/R-3.4/lib/libRblas.so > >>LAPACK: /mnt/mfs/cluster/bin/R-3.4/lib/libRlapack.so > >> > >>locale: > >>[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C > >>[3] LC_TIME=en_US.UTF-8LC_COLLATE=en_US.UTF-8 > >>[5] LC_MONETARY=en_US.UTF-8LC_MESSAGES=en_US.UTF-8 > >>[7] LC_PAPER=en_US.UTF-8 LC_NAME=C > >>[9] LC_ADDRESS=C LC_TELEPHONE=C > >>[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C > >> > >>attached base packages: > >>[1] stats graphics grDevices utils datasets methods base > >> > >>other attached packages: > >>[1] CMplot_3.3.1 > >> > >>loaded via a namespace (and not attached): > >>[1] compiler_3.4.2 tools_3.4.2 > >> > >> > >>How do I fix this? > >> > >> > >> [[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, minima
Re: [R] Error while working with png output on linux server
Thanks for your reply. I searched for the error on Google before resorting to the R forum (help group). I tried Sys.env(...) too, but didn't resolve the error I get. Hence I am looking for solution. -- -Original Message- From: Thierry Onkelinx [mailto:thierry.onkel...@inbo.be] Sent: Thursday, February 01, 2018 10:57 AM To: Sariya, Sanjeev Cc: Jeff Newmiller ; r-help@r-project.org Subject: Re: [R] Error while working with png output on linux server Dear Sanjeev, It seems that you system neither supports X11 devices nor cairo devices. See http://lmgtfy.com/?q=R+unable+to+open+connection+to+X11 for possible solutions. Best regards, ir. Thierry Onkelinx Statisticus / Statistician Vlaamse Overheid / Government of Flanders INSTITUUT VOOR NATUUR- EN BOSONDERZOEK / RESEARCH INSTITUTE FOR NATURE AND FOREST Team Biometrie & Kwaliteitszorg / Team Biometrics & Quality Assurance thierry.onkel...@inbo.be Havenlaan 88 bus 73, 1000 Brussel www.inbo.be /// To call in the statistician after the experiment is done may be no more than asking him to perform a post-mortem examination: he may be able to say what the experiment died of. ~ Sir Ronald Aylmer Fisher The plural of anecdote is not data. ~ Roger Brinner The combination of some data and an aching desire for an answer does not ensure that a reasonable answer can be extracted from a given body of data. ~ John Tukey /// 2018-02-01 16:18 GMT+01:00 Sariya, Sanjeev : > Thanks for pointing to FAQ: I tried with cairo (shared in commands), > unfortunately didn't work. > > -- > Sanjeev Sariya > > > -Original Message- > From: Jeff Newmiller [mailto:jdnew...@dcn.davis.ca.us] > Sent: Thursday, February 01, 2018 10:12 AM > To: r-help@r-project.org; Sariya, Sanjeev ; > r-help@r-project.org > Subject: Re: [R] Error while working with png output on linux server > > FAQ 7.19? > > Also, read the Posting Guide, in particular about posting using plain text. > -- > Sent from my phone. Please excuse my brevity. > > On February 1, 2018 6:50:42 AM PST, "Sariya, Sanjeev" > wrote: >>I'm working on linux server: >>Linux 4.9.0-4-amd64 #1 SMP Debian 4.9.51-1 (2017-09-28) x86_64 >>GNU/Linux >> >>I get error while creating png files. I'm sharing my commands and >>error while I run those commands: >> >>>png("abc", type="cairo") >>Error in .External2(C_X11, paste0("png::", filename), g$width, >>g$height, : >> unable to start device PNG >>In addition: Warning message: >>In png("abc", type = "cairo") : unable to open connection to X11 >>display '' >> >>> png("apoeqqplot.png", res=600) >>Error in .External2(C_X11, paste0("png::", filename), g$width, >>g$height, : >> unable to start device PNG >>In addition: Warning message: >>In png("apoeqqplot.png", res = 600) : >> unable to open connection to X11 display '' >> >>dev.off() >> >>R version 3.4.2 (2017-09-28) >>Platform: x86_64-pc-linux-gnu (64-bit) Running under: Debian GNU/Linux >>9 (stretch) >> >>Matrix products: default >>BLAS: /mnt/mfs/cluster/bin/R-3.4/lib/libRblas.so >>LAPACK: /mnt/mfs/cluster/bin/R-3.4/lib/libRlapack.so >> >>locale: >>[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C >>[3] LC_TIME=en_US.UTF-8LC_COLLATE=en_US.UTF-8 >>[5] LC_MONETARY=en_US.UTF-8LC_MESSAGES=en_US.UTF-8 >>[7] LC_PAPER=en_US.UTF-8 LC_NAME=C >>[9] LC_ADDRESS=C LC_TELEPHONE=C >>[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C >> >>attached base packages: >>[1] stats graphics grDevices utils datasets methods base >> >>other attached packages: >>[1] CMplot_3.3.1 >> >>loaded via a namespace (and not attached): >>[1] compiler_3.4.2 tools_3.4.2 >> >> >>How do I fix this? >> >> >> [[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-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] Error while working with png output on linux server
Dear Sanjeev, It seems that you system neither supports X11 devices nor cairo devices. See http://lmgtfy.com/?q=R+unable+to+open+connection+to+X11 for possible solutions. Best regards, ir. Thierry Onkelinx Statisticus / Statistician Vlaamse Overheid / Government of Flanders INSTITUUT VOOR NATUUR- EN BOSONDERZOEK / RESEARCH INSTITUTE FOR NATURE AND FOREST Team Biometrie & Kwaliteitszorg / Team Biometrics & Quality Assurance thierry.onkel...@inbo.be Havenlaan 88 bus 73, 1000 Brussel www.inbo.be /// To call in the statistician after the experiment is done may be no more than asking him to perform a post-mortem examination: he may be able to say what the experiment died of. ~ Sir Ronald Aylmer Fisher The plural of anecdote is not data. ~ Roger Brinner The combination of some data and an aching desire for an answer does not ensure that a reasonable answer can be extracted from a given body of data. ~ John Tukey /// 2018-02-01 16:18 GMT+01:00 Sariya, Sanjeev : > Thanks for pointing to FAQ: I tried with cairo (shared in commands), > unfortunately didn't work. > > -- > Sanjeev Sariya > > > -Original Message- > From: Jeff Newmiller [mailto:jdnew...@dcn.davis.ca.us] > Sent: Thursday, February 01, 2018 10:12 AM > To: r-help@r-project.org; Sariya, Sanjeev ; > r-help@r-project.org > Subject: Re: [R] Error while working with png output on linux server > > FAQ 7.19? > > Also, read the Posting Guide, in particular about posting using plain text. > -- > Sent from my phone. Please excuse my brevity. > > On February 1, 2018 6:50:42 AM PST, "Sariya, Sanjeev" > wrote: >>I'm working on linux server: >>Linux 4.9.0-4-amd64 #1 SMP Debian 4.9.51-1 (2017-09-28) x86_64 >>GNU/Linux >> >>I get error while creating png files. I'm sharing my commands and error >>while I run those commands: >> >>>png("abc", type="cairo") >>Error in .External2(C_X11, paste0("png::", filename), g$width, >>g$height, : >> unable to start device PNG >>In addition: Warning message: >>In png("abc", type = "cairo") : unable to open connection to X11 >>display '' >> >>> png("apoeqqplot.png", res=600) >>Error in .External2(C_X11, paste0("png::", filename), g$width, >>g$height, : >> unable to start device PNG >>In addition: Warning message: >>In png("apoeqqplot.png", res = 600) : >> unable to open connection to X11 display '' >> >>dev.off() >> >>R version 3.4.2 (2017-09-28) >>Platform: x86_64-pc-linux-gnu (64-bit) >>Running under: Debian GNU/Linux 9 (stretch) >> >>Matrix products: default >>BLAS: /mnt/mfs/cluster/bin/R-3.4/lib/libRblas.so >>LAPACK: /mnt/mfs/cluster/bin/R-3.4/lib/libRlapack.so >> >>locale: >>[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C >>[3] LC_TIME=en_US.UTF-8LC_COLLATE=en_US.UTF-8 >>[5] LC_MONETARY=en_US.UTF-8LC_MESSAGES=en_US.UTF-8 >>[7] LC_PAPER=en_US.UTF-8 LC_NAME=C >>[9] LC_ADDRESS=C LC_TELEPHONE=C >>[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C >> >>attached base packages: >>[1] stats graphics grDevices utils datasets methods base >> >>other attached packages: >>[1] CMplot_3.3.1 >> >>loaded via a namespace (and not attached): >>[1] compiler_3.4.2 tools_3.4.2 >> >> >>How do I fix this? >> >> >> [[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-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] Error while working with png output on linux server
Thanks for pointing to FAQ: I tried with cairo (shared in commands), unfortunately didn't work. -- Sanjeev Sariya -Original Message- From: Jeff Newmiller [mailto:jdnew...@dcn.davis.ca.us] Sent: Thursday, February 01, 2018 10:12 AM To: r-help@r-project.org; Sariya, Sanjeev ; r-help@r-project.org Subject: Re: [R] Error while working with png output on linux server FAQ 7.19? Also, read the Posting Guide, in particular about posting using plain text. -- Sent from my phone. Please excuse my brevity. On February 1, 2018 6:50:42 AM PST, "Sariya, Sanjeev" wrote: >I'm working on linux server: >Linux 4.9.0-4-amd64 #1 SMP Debian 4.9.51-1 (2017-09-28) x86_64 >GNU/Linux > >I get error while creating png files. I'm sharing my commands and error >while I run those commands: > >>png("abc", type="cairo") >Error in .External2(C_X11, paste0("png::", filename), g$width, >g$height, : > unable to start device PNG >In addition: Warning message: >In png("abc", type = "cairo") : unable to open connection to X11 >display '' > >> png("apoeqqplot.png", res=600) >Error in .External2(C_X11, paste0("png::", filename), g$width, >g$height, : > unable to start device PNG >In addition: Warning message: >In png("apoeqqplot.png", res = 600) : > unable to open connection to X11 display '' > >dev.off() > >R version 3.4.2 (2017-09-28) >Platform: x86_64-pc-linux-gnu (64-bit) >Running under: Debian GNU/Linux 9 (stretch) > >Matrix products: default >BLAS: /mnt/mfs/cluster/bin/R-3.4/lib/libRblas.so >LAPACK: /mnt/mfs/cluster/bin/R-3.4/lib/libRlapack.so > >locale: >[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C >[3] LC_TIME=en_US.UTF-8LC_COLLATE=en_US.UTF-8 >[5] LC_MONETARY=en_US.UTF-8LC_MESSAGES=en_US.UTF-8 >[7] LC_PAPER=en_US.UTF-8 LC_NAME=C >[9] LC_ADDRESS=C LC_TELEPHONE=C >[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C > >attached base packages: >[1] stats graphics grDevices utils datasets methods base > >other attached packages: >[1] CMplot_3.3.1 > >loaded via a namespace (and not attached): >[1] compiler_3.4.2 tools_3.4.2 > > >How do I fix this? > > > [[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] Error while working with png output on linux server
FAQ 7.19? Also, read the Posting Guide, in particular about posting using plain text. -- Sent from my phone. Please excuse my brevity. On February 1, 2018 6:50:42 AM PST, "Sariya, Sanjeev" wrote: >I'm working on linux server: >Linux 4.9.0-4-amd64 #1 SMP Debian 4.9.51-1 (2017-09-28) x86_64 >GNU/Linux > >I get error while creating png files. I'm sharing my commands and error >while I run those commands: > >>png("abc", type="cairo") >Error in .External2(C_X11, paste0("png::", filename), g$width, >g$height, : > unable to start device PNG >In addition: Warning message: >In png("abc", type = "cairo") : unable to open connection to X11 >display '' > >> png("apoeqqplot.png", res=600) >Error in .External2(C_X11, paste0("png::", filename), g$width, >g$height, : > unable to start device PNG >In addition: Warning message: >In png("apoeqqplot.png", res = 600) : > unable to open connection to X11 display '' > >dev.off() > >R version 3.4.2 (2017-09-28) >Platform: x86_64-pc-linux-gnu (64-bit) >Running under: Debian GNU/Linux 9 (stretch) > >Matrix products: default >BLAS: /mnt/mfs/cluster/bin/R-3.4/lib/libRblas.so >LAPACK: /mnt/mfs/cluster/bin/R-3.4/lib/libRlapack.so > >locale: >[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C >[3] LC_TIME=en_US.UTF-8LC_COLLATE=en_US.UTF-8 >[5] LC_MONETARY=en_US.UTF-8LC_MESSAGES=en_US.UTF-8 >[7] LC_PAPER=en_US.UTF-8 LC_NAME=C >[9] LC_ADDRESS=C LC_TELEPHONE=C >[11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C > >attached base packages: >[1] stats graphics grDevices utils datasets methods base > >other attached packages: >[1] CMplot_3.3.1 > >loaded via a namespace (and not attached): >[1] compiler_3.4.2 tools_3.4.2 > > >How do I fix this? > > > [[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] Error while working with png output on linux server
I'm working on linux server: Linux 4.9.0-4-amd64 #1 SMP Debian 4.9.51-1 (2017-09-28) x86_64 GNU/Linux I get error while creating png files. I'm sharing my commands and error while I run those commands: >png("abc", type="cairo") Error in .External2(C_X11, paste0("png::", filename), g$width, g$height, : unable to start device PNG In addition: Warning message: In png("abc", type = "cairo") : unable to open connection to X11 display '' > png("apoeqqplot.png", res=600) Error in .External2(C_X11, paste0("png::", filename), g$width, g$height, : unable to start device PNG In addition: Warning message: In png("apoeqqplot.png", res = 600) : unable to open connection to X11 display '' dev.off() R version 3.4.2 (2017-09-28) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Debian GNU/Linux 9 (stretch) Matrix products: default BLAS: /mnt/mfs/cluster/bin/R-3.4/lib/libRblas.so LAPACK: /mnt/mfs/cluster/bin/R-3.4/lib/libRlapack.so locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C [3] LC_TIME=en_US.UTF-8LC_COLLATE=en_US.UTF-8 [5] LC_MONETARY=en_US.UTF-8LC_MESSAGES=en_US.UTF-8 [7] LC_PAPER=en_US.UTF-8 LC_NAME=C [9] LC_ADDRESS=C LC_TELEPHONE=C [11] LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C attached base packages: [1] stats graphics grDevices utils datasets methods base other attached packages: [1] CMplot_3.3.1 loaded via a namespace (and not attached): [1] compiler_3.4.2 tools_3.4.2 How do I fix this? [[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.