Re: [R-SIG-Mac] How can I find the "sh" application used by "R CMD check" on a Mac?

2019-02-19 Thread Duncan Murdoch

On 19/02/2019 5:39 p.m., Spencer Graves wrote:




    How can I find the "sh" application used by "R CMD check" on a Mac?


    I need to know to be able to add it to the "Application Access"
list maintained by the "Anti-Ransomware" feature of my Bitdefender
Antivirus for Mac.  With that feature on, "R CMD check Ecfun" stopped
with the following:


      checking whether package ‘Ecfun’ can be installed ...sh:
... Permission denied


    When I saw that, I also got a popup from Bitdefender that would
only allow me to allow this once but not permanently.  To allow it
permanently, I need to know where it is on my hard drive.


From a console, run "which sh".  I get "/bin/sh".

Duncan Murdoch

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


[R-SIG-Mac] How can I find the "sh" application used by "R CMD check" on a Mac?

2019-02-19 Thread Spencer Graves





  How can I find the "sh" application used by "R CMD check" on a Mac?


  I need to know to be able to add it to the "Application Access" 
list maintained by the "Anti-Ransomware" feature of my Bitdefender 
Antivirus for Mac.  With that feature on, "R CMD check Ecfun" stopped 
with the following:



    checking whether package ‘Ecfun’ can be installed ...sh: 
... Permission denied



  When I saw that, I also got a popup from Bitdefender that would 
only allow me to allow this once but not permanently.  To allow it 
permanently, I need to know where it is on my hard drive.



  Thanks,
  Spencer Graves

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


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

2019-02-19 Thread bretschr
Dear Kevin Ushey,

Re:

> On 19 Feb 2019, at 20:16, Kevin Ushey  wrote:
> 
> If I understand correctly, the problem is that the character your keyboard is 
> inserting is not a regular caret (^, \u0053); rather, it's a 'modifier 
> character circumflex accent' (ˆ, \u02c6).
> 
> How are you inserting the carat on your laptop? For what it's worth, I get a 
> 'regular' caret with Shift + 6, and that particular accent character with Alt 
> + I.


Thanks.  Indeed I just type the normal shift-6, and get this strange circumflex 
character. With alt-i I get this same character.

I can produce a normal caret by typing 

rawToChar(as.raw(94))

in the console, but that's of course rather clumsy.

How to "tame" the editor to produce the normal ASCII caret?
The other symbols in that row, like % and &, are the normal ASCII characters.
Strange why this single character on my keyboard is a two-byte character.

Any clue appreciated.


Franklin




Franklin Bretschneider
Utrecht University
Utrecht, The Netherlands

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


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

2019-02-19 Thread Kevin Ushey
If I understand correctly, the problem is that the character your keyboard
is inserting is not a regular caret (^, \u0053); rather, it's a 'modifier
character circumflex accent' (ˆ, \u02c6).

How are you inserting the carat on your laptop? For what it's worth, I get
a 'regular' caret with Shift + 6, and that particular accent character with
Alt + I.

On Tue, Feb 19, 2019 at 10:40 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-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


[R-SIG-Mac] character set problem

2019-02-19 Thread bretschr
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-SIG-Mac mailing list
R-SIG-Mac@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-sig-mac