Re: [R-SIG-Mac] Transitioning from Mac to LInux?

2020-04-01 Thread Bert Gunter
As you are asking about R experience from Unix-alike OS users, I think
you would clearly do better to ask on the - debian and/or -fedora
sigs.

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 Wed, Apr 1, 2020 at 11:49 AM Carl Witthoft  wrote:
>
>
>   If I should ask over at r-sig-debian instead of here, please tell me.
> I don't wish to clog r-sig-mac with off-topic stuff.
>
>
> I've been watching the massive headaches people are dealing with trying
> to keep R fully compatible with each MacOS X upgrade,  I'm wondering
> whether replacing my iMac (2009) with a new Mac really makes sense from
> an R - user point of view, as opposed to getting some inexpensive
> desktop and installing Linux.  I know I can run R and RStudio under
> Linux, for example,  but don't know what limitations, if any there are
> when it comes to building packages from source, getting compatible
> compilers,  and so on.
>
> What have some of you 'power R users' discovered when/if you tried to
> build , or incorporate Bioconductor or other repository's packages under
> Linux?
>
>
> --
> Carl Witthoft
> c...@witthoft.com
> resume: https://app.box.com/file/498153801347
>
> ___
> R-SIG-Mac mailing list
> R-SIG-Mac@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac

___
R-SIG-Mac mailing list
R-SIG-Mac@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-mac


Re: [R-SIG-Mac] Finding "bash" and "mv" on my hard drive?

2020-01-17 Thread Bert Gunter
As a minor note, Sys.which is vectorized, so
Sys.which(c("bash", "mv"))
will do.


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 Fri, Jan 17, 2020 at 3:20 PM Bob Rudis  wrote:

> R does not ship bash or bin with the program distribution on macOS. It
> uses the ones that come along for the ride with the system (which will
> be interesting when Apple removes bash completely in 10.16).
>
> If you've used MacPorts or Homebrew, you may have installed version of
> those shells/tools there which R is picking up.
>
> This:
>
> sapply(c("bash", "mv"), Sys.which)
>
> should tell you where R is picking up those binaries.
>
> -boB
>
> On Fri, Jan 17, 2020 at 6:01 PM Spencer Graves
>  wrote:
> >
> > Hello:
> >
> >
> >How can I find the version of "bash" and "mv" that are used by "R
> > CMD check" under macOS 10.15.2 Catalina?
> >
> >
> >I ask, because my "Bitdefender for Mac" has been interrupting "R
> > CMD check" for a couple of years now, saying, "Bitdefender Safe Files
> > blocked a new process, bash, from accessing your protected files."  Each
> > time it happens, Bitdefender allows me to tell it to "Remember this
> > action:  For 5 minutes" or "For this time only" or to "Keep blocking".
> > Their "Safe Files" feature allows me to give access to certain
> > applications.  I've already "allowed" 36 different applications using
> > that feature, including "/bin/bash", "/bin/mv",
> > "/Library/Frameworks/R.framework/Versions/3.6/Resources/exec/R", and two
> > different versions of "git".  I'm not sure, but I believe that "R CMD
> > check" uses versions of "bash" and "mv" different from "/bin/bash" and
> > "/bin/mv".
> >
> >
> >Thanks,
> >Spencer Graves
> >
> > ___
> > R-SIG-Mac mailing list
> > R-SIG-Mac@r-project.org
> > https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>
> ___
> R-SIG-Mac mailing list
> R-SIG-Mac@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>

[[alternative HTML version deleted]]

___
R-SIG-Mac mailing list
R-SIG-Mac@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-mac


Re: [R-SIG-Mac] Error message reading files in R Commander

2019-11-22 Thread Bert Gunter
I suggest that you contact the package maintainer (and author),

John Fox 
if you don't get a useful answer here.

-- Bert


On Fri, Nov 22, 2019 at 11:23 AM Jose G Conde Santiago via R-SIG-Mac <
r-sig-mac@r-project.org> wrote:

> Hi,
>
> I am using R Commander in combination with RStudio. I configured RStudio
> to display the output on the RStudio console.
>
> If I open a file in R Commander, then view the data file in R Commander
> and then try to read the same file again using R Commander, the following
> error message is displayed in the console and I cannot read the file with R
> Commander:
>
> > Error in structure(.External(.C_dotTcl, ...), class = "tclObj") :
> >   [tcl] bad window path name “.29”.
>
> The message is always the same, except that the number at the end changes.
> Here are a few more examples:
>
> > Error in structure(.External(.C_dotTcl, ...), class = "tclObj") :
> >   [tcl] bad window path name ".35".
>
> > Error in structure(.External(.C_dotTcl, ...), class = "tclObj") :
> >   [tcl] bad window path name ".51".
>
> > Error in structure(.External(.C_dotTcl, ...), class = "tclObj") :
> >   [tcl] bad window path name ".56".
>
>
> Initially, I thought there could be a problem between R Commander and
> RStudio, but I got the same error message under the same conditions when I
> tested using R Commander with R alone (without RStudio).
>
> The files seem to be fine, since I can access them directly with R or with
> RStudio.
>
> My computer is  an iMac (27-inch, late 2012)
> MacOS High Sierra version 10.13.6.
> R version 3.6.1
> RStudio version 1.2.5001
> R Commander version 2.6-0
> XQuartz 2.7.11
>
> Thanks.
>
> José
>
> José G. Conde, MD, MPH
> Professor, School of Medicine
> Medical Sciences Campus
> University of Puerto Rico
>
> Tel  (787) 763-9401 Fax (787) 758-5206
>
> Email: jose.con...@upr.edu
>
> ___
> R-SIG-Mac mailing list
> R-SIG-Mac@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>

[[alternative HTML version deleted]]

___
R-SIG-Mac mailing list
R-SIG-Mac@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-mac


Re: [R-SIG-Mac] Problem generating an SVG file from a CSV file on the Mac

2019-08-20 Thread Bert Gunter
1. No reprex (we don't have WeightThru2018.csv) !
2. Please post in plain text, not html . (did no har here, but could).
3. The following worked fine on my mac.
> svg()
> plot(1:5)
> dev.off()

> sessionInfo()
R version 3.6.1 (2019-07-05)
Platform: x86_64-apple-darwin15.6.0 (64-bit)
Running under: macOS Mojave 10.14.6

Matrix products: default
BLAS:
/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK:
/Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRlapack.dylib

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

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

... etc.

Cheers,

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 Tue, Aug 20, 2019 at 3:18 PM Richard Fuhr  wrote:

> I have encountered a problem generating an SVG file from a CSV file using R
> on the Mac.
> When I invoke the exact same script on two different Linux machines things
> work fine.
> Here is the script
>
> Sys.setenv(TZ="US/Pacific")
> w<-read.csv("WeightThru2018.csv")
> x<-as.Date(w$Date, "%m/%d/%y")
> y<-w$Weight
> For some reason svg combined with plot do not work on the Mac
> svg("WeightThrough2018.svg")
> plot(x,y, type="l")
> pdf("WeightThrough2018.pdf")
> plot(x,y, type="l")
> jpeg("WeightThrough2018.jpg")
> plot(x,y, type="l")
> png("WeightThrough2018.png")
> plot(x,y, type="l")
> dev.off()
>
> The file, WeightThru2018.csv, consists of lines, each of which has a date
> followed by a weight.
> Here is the very beginning of the file
>
> Date,Weight
> 6/4/00,189
> 6/5/00,191
> 6/6/00,191
> 6/7/00,191
> 6/9/00,190
>
> When I run the script on the Mac, the system hangs with the first plot
> command (after the call to the sag function)
> When I comment out the line with the svg function and the first plot
> command, things run fine on the Mac and the PDG, JPG and PNG files are
> generated.
>
> When I run the script with no lines commented out on my Linux machines,
> things work fine.
>
> When I enter the commands interactively on the Mac, the system hangs (no
> error messages) with the first plot command.
>
> On the Mac I did verify that the variables x and y were being extracted
> properly.
>
> Has anyone else out there tried to generate an SVG file that was a plot of
> (x,y) data?
>
> I also found that, on the Mac, just running the plot command without
> preceding it will a call to sag, pdf, jpeg, or plot, worked fine and I
> could see the plot.
>
> SVG is a nice format, and I would like to be able to generate SVG files on
> the Mac.
>
> [[alternative HTML version deleted]]
>
> ___
> R-SIG-Mac mailing list
> R-SIG-Mac@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>

[[alternative HTML version deleted]]

___
R-SIG-Mac mailing list
R-SIG-Mac@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-mac


Re: [R-SIG-Mac] [External] Re: Xcode 10.2.1

2019-04-28 Thread Bert Gunter
?installed.packages

(Sometimes trying the obvious works)

Bert Gunter

"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )


On Sun, Apr 28, 2019 at 4:11 PM  wrote:

> Is there a command to list installed packages?
>
> I currently keep track manually and just run a script.
>
> el
>
> —
> Sent from Dr Lisse’s iPhone Xs
>
> [[alternative HTML version deleted]]
>
> ___
> R-SIG-Mac mailing list
> R-SIG-Mac@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>

[[alternative HTML version deleted]]

___
R-SIG-Mac mailing list
R-SIG-Mac@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-mac


Re: [R-SIG-Mac] [R] character set problem

2019-02-21 Thread Bert Gunter
Oops, you already seem to have done this! My bad.

-- 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 Tue, Feb 19, 2019 at 11:36 AM Bert Gunter  wrote:

> You might try posting this on r-sig-mac if you don't get resolution here.
>
> -- 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 Tue, Feb 19, 2019 at 10:55 AM bretschr  wrote:
>
>> Dear R-users,
>>
>>
>> Last week I installed R 3.5.2 on a new MacBook Air.
>>
>> I got error messages for the wrong locale (character set).
>> And simple math proved not to work:
>> Upon typing this, I got:
>> > 2ˆ2
>> Error: unexpected input in "2À"
>> >
>>
>> The character visible as a caret is apparently coded as something very
>> different.
>>
>> Then I changed things according to the FAQ, chapter 7, (switching all
>> settings to English),
>> and executed the recommended line:
>>
>> defaults write org.R-project.R force.LANG en_US.UTF-8
>>
>> The error messages disappeared, but the problem remained.
>>
>> A fresh install of R 3.5.2 also didn't help:
>>
>> Here its startup messages, then a line testing the caret:
>>
>> > R version 3.5.2 (2018-12-20) -- "Eggshell Igloo"
>> > Copyright (C) 2018 The R Foundation for Statistical Computing
>> > Platform: x86_64-apple-darwin15.6.0 (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.
>> >
>> > [R.app GUI 1.70 (7612) x86_64-apple-darwin15.6.0]
>> >
>> > [History restored from /Users/fb/.Rapp.history]
>> >
>> >> 2ˆ2
>> > Error: unexpected input in "2À"
>> >>
>>
>>
>>
>> Does anyone know how to get R (R.app) to interpret a caret as a caret?
>>
>> Thanks in advance,
>>
>>
>>
>> Franklin Bretschneider
>> Utrecht University
>> Utrecht, The Netherlands
>>
>> __
>> r-h...@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-SIG-Mac mailing list
R-SIG-Mac@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-mac


Re: [R-SIG-Mac] [R] character set problem

2019-02-21 Thread Bert Gunter
You might try posting this on r-sig-mac if you don't get resolution here.

-- 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 Tue, Feb 19, 2019 at 10:55 AM bretschr  wrote:

> Dear R-users,
>
>
> Last week I installed R 3.5.2 on a new MacBook Air.
>
> I got error messages for the wrong locale (character set).
> And simple math proved not to work:
> Upon typing this, I got:
> > 2ˆ2
> Error: unexpected input in "2À"
> >
>
> The character visible as a caret is apparently coded as something very
> different.
>
> Then I changed things according to the FAQ, chapter 7, (switching all
> settings to English),
> and executed the recommended line:
>
> defaults write org.R-project.R force.LANG en_US.UTF-8
>
> The error messages disappeared, but the problem remained.
>
> A fresh install of R 3.5.2 also didn't help:
>
> Here its startup messages, then a line testing the caret:
>
> > R version 3.5.2 (2018-12-20) -- "Eggshell Igloo"
> > Copyright (C) 2018 The R Foundation for Statistical Computing
> > Platform: x86_64-apple-darwin15.6.0 (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.
> >
> > [R.app GUI 1.70 (7612) x86_64-apple-darwin15.6.0]
> >
> > [History restored from /Users/fb/.Rapp.history]
> >
> >> 2ˆ2
> > Error: unexpected input in "2À"
> >>
>
>
>
> Does anyone know how to get R (R.app) to interpret a caret as a caret?
>
> Thanks in advance,
>
>
>
> Franklin Bretschneider
> Utrecht University
> Utrecht, The Netherlands
>
> __
> r-h...@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-SIG-Mac mailing list
R-SIG-Mac@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-mac