Re: [R-SIG-Mac] Problem generating an SVG file from a CSV file on the Mac - updated with test script and test data

2019-08-20 Thread Richard Fuhr
After invoking update.packages() I was able to successfully run the script
and generate the plots using all the file formats, including SVG.
Thanks for your help.  I appreciate it.

On Tue, Aug 20, 2019 at 8:35 PM Richard Fuhr  wrote:

> I am an R newbie and when I upgraded to 3.6 I did nothing in addition (and
> I didn’t reinstall any packages).
> I don’t have a file in my home directory named .Rprofile or anything
> similar to that name.
> ---
> Richard Fuhr
> 206-524-8049 <(206)%20524-8049> land line
> 206-491-5640 <(206)%20491-5640> cell phone
> https://richardfuhr.neocities.org
>
>
>
>
>
>
> On Aug 20, 2019, at 8:31 PM, Roy Mendelssohn - NOAA Federal <
> roy.mendelss...@noaa.gov> wrote:
>
> Looks similar to mine.  I am just guessing here,  but did you upgrade to
> 3.6 and not reinstall all of your packages?  Or have you checked if you
> have something in .Rprofile or the like that is setting the path to
> something that conflicts?
>
> -Roy
>
>
> On Aug 20, 2019, at 8:20 PM, Richard Fuhr  wrote:
>
> Roy,
>
> Thanks for testing it.
>
> I am running MacOS Mojave 10.14.6
>
> When I invoke the commands interactively from within R, the system also
> hangs when I try to create the SVG file.
>
> I don’t see an error message; it just hangs.
>
> Invoking sessionInfo() yields the following:
>
>
> 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:
>   /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRblas.0.dylib
> LAPACK:
> /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRlapack.dylib
>
> Random number generation:
> RNG: Mersenne-Twister
> Normal:  Inversion
> Sample:  Rounding
>
> 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
>
> loaded via a namespace (and not attached):
> [1] compiler_3.6.1
>
>
>
> Thanks,
>
> Richard
>
>
>
>
>
>
>
> On Aug 20, 2019, at 8:11 PM, Roy Mendelssohn - NOAA Federal <
> roy.mendelss...@noaa.gov> wrote:
>
> Worked on my machine.  I think you need to give more info,  including what
> version of the OS you are running,  and from within R the result of
> 'sessionInfo()',  also what happens if you run it from within R,  rather
> than from RScript.
>
> HTH,
>
> -Roy
>
>
> On Aug 20, 2019, at 7:27 PM, Richard Fuhr  wrote:
>
> I am sending this message again to the distribution list, and this time I
> am
> * making this message plain text
> * attaching an R file called FuhrTest.R
> * attaching an input file called FuhrTest.csv ( a small file but it does
> duplicate the problem)
>
> The purpose of the code is to read the csv file, which consists of a few
> dates and weights and to generate plots of the data using various formats.
>
> The formats PDF, JPG, PNG and SVG get successfully generated on my Linux
> machine running the Pop!_OS distribution.
>
> However, on my Mac, using the identical R script, the system hangs when
> trying to generate an SVG plot.
>
> I have also duplicated the problem interactively.
>
> If the lines to generate an SVG file are commented out on the Mac, then
> the R code runs as desired.
>
> I invoked the script via the command
>
> Rscript FuhrTest.R
>
> So if someone can take a look at this case when running R on a Mac, that
> would be very helpful.
>
> It would be nice to be able to generate SVG files using R on my Mac that
> represent data plots
>
>
> Thanks,
>
>
>
> Richard Fuhr
> ___
> R-SIG-Mac mailing list
> R-SIG-Mac@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>
>
> **
> "The contents of this message do not reflect any position of the U.S.
> Government or NOAA."
> **
> Roy Mendelssohn
> Supervisory Operations Research Analyst
> NOAA/NMFS
> Environmental Research Division
> Southwest Fisheries Science Center
> ***Note new street address***
> 110 McAllister Way
> Santa Cruz, CA 95060
> Phone: (831)-420-3666
> Fax: (831) 420-3980
> e-mail: roy.mendelss...@noaa.gov  www:
> http://www.pfeg.noaa.gov/
>
> "Old age and treachery will overcome youth and skill."
> "From those who have been given much, much will be expected"
> "the arc of the moral universe is long, but it bends toward justice" -MLK
> Jr.
>
>
>
> **
> "The contents of this message do not reflect any position of the U.S.
> Government or NOAA."
> **
> Roy Mendelssohn
> Supervisory Operations Research Analyst
> NOAA/NMFS
> Environmental Research Division
> Southwest Fisheries Science Center
> ***Note new street address***
> 110 McAllister Way
> Santa Cruz, CA 95060
> Phone: (831)-420-3666
> Fax: (831) 420-3980
> e-mail: roy.mendelss...@noaa.gov  www:
> http://www.pfeg.noaa.gov/
>
> "Old age and treachery will overcome youth and skill."
> "From those who have been given much, much will be 

Re: [R-SIG-Mac] Problem generating an SVG file from a CSV file on the Mac - updated with test script and test data

2019-08-20 Thread David Winsemius

Run (in an R console session)


update.packages(checkBuilt=TRUE, ask=FALSE)


On a Mac the .Rprofile file would normally be invisible (to the Finder 
anyway) and you would need to tell Finder to display "dot-files". 
(Search with Google for how to do that.).



--

David

On 8/20/19 8:35 PM, Richard Fuhr wrote:

I am an R newbie and when I upgraded to 3.6 I did nothing in addition (and I 
didn’t reinstall any packages).
I don’t have a file in my home directory named .Rprofile or anything similar to 
that name.
---
Richard Fuhr
206-524-8049  land line
206-491-5640  cell phone
https://richardfuhr.neocities.org 






On Aug 20, 2019, at 8:31 PM, Roy Mendelssohn - NOAA Federal 
 wrote:

Looks similar to mine.  I am just guessing here,  but did you upgrade to 3.6 
and not reinstall all of your packages?  Or have you checked if you have 
something in .Rprofile or the like that is setting the path to something that 
conflicts?

-Roy



On Aug 20, 2019, at 8:20 PM, Richard Fuhr  wrote:

Roy,

Thanks for testing it.

I am running MacOS Mojave 10.14.6

When I invoke the commands interactively from within R, the system also hangs 
when I try to create the SVG file.

I don’t see an error message; it just hangs.

Invoking sessionInfo() yields the following:



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:   
/Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRblas.0.dylib
LAPACK: 
/Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRlapack.dylib

Random number generation:
RNG: Mersenne-Twister
Normal:  Inversion
Sample:  Rounding

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

loaded via a namespace (and not attached):
[1] compiler_3.6.1
Thanks,

Richard








On Aug 20, 2019, at 8:11 PM, Roy Mendelssohn - NOAA Federal 
 wrote:

Worked on my machine.  I think you need to give more info,  including what 
version of the OS you are running,  and from within R the result of 
'sessionInfo()',  also what happens if you run it from within R,  rather than 
from RScript.

HTH,

-Roy



On Aug 20, 2019, at 7:27 PM, Richard Fuhr  wrote:

I am sending this message again to the distribution list, and this time I am
* making this message plain text
* attaching an R file called FuhrTest.R
* attaching an input file called FuhrTest.csv ( a small file but it does 
duplicate the problem)

The purpose of the code is to read the csv file, which consists of a few dates 
and weights and to generate plots of the data using various formats.

The formats PDF, JPG, PNG and SVG get successfully generated on my Linux 
machine running the Pop!_OS distribution.

However, on my Mac, using the identical R script, the system hangs when trying 
to generate an SVG plot.

I have also duplicated the problem interactively.

If the lines to generate an SVG file are commented out on the Mac, then the R 
code runs as desired.

I invoked the script via the command

Rscript FuhrTest.R

So if someone can take a look at this case when running R on a Mac, that would 
be very helpful.

It would be nice to be able to generate SVG files using R on my Mac that 
represent data plots


Thanks,



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

**
"The contents of this message do not reflect any position of the U.S. Government or 
NOAA."
**
Roy Mendelssohn
Supervisory Operations Research Analyst
NOAA/NMFS
Environmental Research Division
Southwest Fisheries Science Center
***Note new street address***
110 McAllister Way
Santa Cruz, CA 95060
Phone: (831)-420-3666
Fax: (831) 420-3980
e-mail: roy.mendelss...@noaa.gov www: http://www.pfeg.noaa.gov/

"Old age and treachery will overcome youth and skill."
"From those who have been given much, much will be expected"
"the arc of the moral universe is long, but it bends toward justice" -MLK Jr.


**
"The contents of this message do not reflect any position of the U.S. Government or 
NOAA."
**
Roy Mendelssohn
Supervisory Operations Research Analyst
NOAA/NMFS
Environmental Research Division
Southwest Fisheries Science Center
***Note new street address***
110 McAllister Way
Santa Cruz, CA 95060
Phone: (831)-420-3666
Fax: (831) 420-3980
e-mail: roy.mendelss...@noaa.gov www: http://www.pfeg.noaa.gov/

"Old age and treachery will overcome youth and skill."
"From those who have been given much, much will be expected"
"the arc of the moral universe is long, but it bends toward justice" -MLK Jr.



[[alternative HTML version deleted]]

___
R-SIG-Mac mailing list
R-SIG-Mac@r-project.org

Re: [R-SIG-Mac] Problem generating an SVG file from a CSV file on the Mac - updated with test script and test data

2019-08-20 Thread Richard Fuhr
I am an R newbie and when I upgraded to 3.6 I did nothing in addition (and I 
didn’t reinstall any packages).  
I don’t have a file in my home directory named .Rprofile or anything similar to 
that name.
---
Richard Fuhr
206-524-8049  land line
206-491-5640  cell phone
https://richardfuhr.neocities.org 





> On Aug 20, 2019, at 8:31 PM, Roy Mendelssohn - NOAA Federal 
>  wrote:
> 
> Looks similar to mine.  I am just guessing here,  but did you upgrade to 3.6 
> and not reinstall all of your packages?  Or have you checked if you have 
> something in .Rprofile or the like that is setting the path to something that 
> conflicts?
> 
> -Roy
> 
> 
>> On Aug 20, 2019, at 8:20 PM, Richard Fuhr  wrote:
>> 
>> Roy,
>> 
>> Thanks for testing it.
>> 
>> I am running MacOS Mojave 10.14.6
>> 
>> When I invoke the commands interactively from within R, the system also 
>> hangs when I try to create the SVG file.
>> 
>> I don’t see an error message; it just hangs.
>> 
>> Invoking sessionInfo() yields the following:
>> 
>> 
>>> 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:   
>> /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRblas.0.dylib
>> LAPACK: 
>> /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRlapack.dylib
>> 
>> Random number generation:
>> RNG: Mersenne-Twister 
>> Normal:  Inversion 
>> Sample:  Rounding 
>> 
>> 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 
>> 
>> loaded via a namespace (and not attached):
>> [1] compiler_3.6.1
>>> 
>> 
>> Thanks,
>> 
>> Richard
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>> On Aug 20, 2019, at 8:11 PM, Roy Mendelssohn - NOAA Federal 
>>>  wrote:
>>> 
>>> Worked on my machine.  I think you need to give more info,  including what 
>>> version of the OS you are running,  and from within R the result of 
>>> 'sessionInfo()',  also what happens if you run it from within R,  rather 
>>> than from RScript.
>>> 
>>> HTH,
>>> 
>>> -Roy
>>> 
>>> 
 On Aug 20, 2019, at 7:27 PM, Richard Fuhr  wrote:
 
 I am sending this message again to the distribution list, and this time I 
 am
 * making this message plain text
 * attaching an R file called FuhrTest.R
 * attaching an input file called FuhrTest.csv ( a small file but it does 
 duplicate the problem)
 
 The purpose of the code is to read the csv file, which consists of a few 
 dates and weights and to generate plots of the data using various formats.
 
 The formats PDF, JPG, PNG and SVG get successfully generated on my Linux 
 machine running the Pop!_OS distribution.
 
 However, on my Mac, using the identical R script, the system hangs when 
 trying to generate an SVG plot.
 
 I have also duplicated the problem interactively.
 
 If the lines to generate an SVG file are commented out on the Mac, then 
 the R code runs as desired.
 
 I invoked the script via the command 
 
 Rscript FuhrTest.R
 
 So if someone can take a look at this case when running R on a Mac, that 
 would be very helpful.
 
 It would be nice to be able to generate SVG files using R on my Mac that 
 represent data plots
 
 
 Thanks,
 
 
 
 Richard Fuhr
 ___
 R-SIG-Mac mailing list
 R-SIG-Mac@r-project.org
 https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>>> 
>>> **
>>> "The contents of this message do not reflect any position of the U.S. 
>>> Government or NOAA."
>>> **
>>> Roy Mendelssohn
>>> Supervisory Operations Research Analyst
>>> NOAA/NMFS
>>> Environmental Research Division
>>> Southwest Fisheries Science Center
>>> ***Note new street address***
>>> 110 McAllister Way
>>> Santa Cruz, CA 95060
>>> Phone: (831)-420-3666
>>> Fax: (831) 420-3980
>>> e-mail: roy.mendelss...@noaa.gov www: http://www.pfeg.noaa.gov/
>>> 
>>> "Old age and treachery will overcome youth and skill."
>>> "From those who have been given much, much will be expected" 
>>> "the arc of the moral universe is long, but it bends toward justice" -MLK 
>>> Jr.
>>> 
>> 
> 
> **
> "The contents of this message do not reflect any position of the U.S. 
> Government or NOAA."
> **
> Roy Mendelssohn
> Supervisory Operations Research Analyst
> NOAA/NMFS
> Environmental Research Division
> Southwest Fisheries Science Center
> ***Note new street address***
> 110 McAllister Way
> Santa Cruz, CA 95060
> Phone: (831)-420-3666
> Fax: (831) 420-3980
> e-mail: roy.mendelss...@noaa.gov www: http://www.pfeg.noaa.gov/
> 
> "Old age and treachery will overcome youth and skill."
> "From those who have been given 

Re: [R-SIG-Mac] Problem generating an SVG file from a CSV file on the Mac - updated with test script and test data

2019-08-20 Thread Roy Mendelssohn - NOAA Federal via R-SIG-Mac
Looks similar to mine.  I am just guessing here,  but did you upgrade to 3.6 
and not reinstall all of your packages?  Or have you checked if you have 
something in .Rprofile or the like that is setting the path to something that 
conflicts?

-Roy


> On Aug 20, 2019, at 8:20 PM, Richard Fuhr  wrote:
> 
> Roy,
> 
> Thanks for testing it.
> 
> I am running MacOS Mojave 10.14.6
> 
> When I invoke the commands interactively from within R, the system also hangs 
> when I try to create the SVG file.
> 
> I don’t see an error message; it just hangs.
> 
> Invoking sessionInfo() yields the following:
> 
> 
>> 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:   
> /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRblas.0.dylib
> LAPACK: 
> /Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRlapack.dylib
> 
> Random number generation:
> RNG: Mersenne-Twister 
> Normal:  Inversion 
> Sample:  Rounding 
> 
> 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 
> 
> loaded via a namespace (and not attached):
> [1] compiler_3.6.1
>> 
> 
> Thanks,
> 
> Richard
> 
> 
> 
> 
> 
> 
> 
>> On Aug 20, 2019, at 8:11 PM, Roy Mendelssohn - NOAA Federal 
>>  wrote:
>> 
>> Worked on my machine.  I think you need to give more info,  including what 
>> version of the OS you are running,  and from within R the result of 
>> 'sessionInfo()',  also what happens if you run it from within R,  rather 
>> than from RScript.
>> 
>> HTH,
>> 
>> -Roy
>> 
>> 
>>> On Aug 20, 2019, at 7:27 PM, Richard Fuhr  wrote:
>>> 
>>> I am sending this message again to the distribution list, and this time I am
>>> * making this message plain text
>>> * attaching an R file called FuhrTest.R
>>> * attaching an input file called FuhrTest.csv ( a small file but it does 
>>> duplicate the problem)
>>> 
>>> The purpose of the code is to read the csv file, which consists of a few 
>>> dates and weights and to generate plots of the data using various formats.
>>> 
>>> The formats PDF, JPG, PNG and SVG get successfully generated on my Linux 
>>> machine running the Pop!_OS distribution.
>>> 
>>> However, on my Mac, using the identical R script, the system hangs when 
>>> trying to generate an SVG plot.
>>> 
>>> I have also duplicated the problem interactively.
>>> 
>>> If the lines to generate an SVG file are commented out on the Mac, then the 
>>> R code runs as desired.
>>> 
>>> I invoked the script via the command 
>>> 
>>> Rscript FuhrTest.R
>>> 
>>> So if someone can take a look at this case when running R on a Mac, that 
>>> would be very helpful.
>>> 
>>> It would be nice to be able to generate SVG files using R on my Mac that 
>>> represent data plots
>>> 
>>> 
>>> Thanks,
>>> 
>>> 
>>> 
>>> Richard Fuhr
>>> ___
>>> R-SIG-Mac mailing list
>>> R-SIG-Mac@r-project.org
>>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
>> 
>> **
>> "The contents of this message do not reflect any position of the U.S. 
>> Government or NOAA."
>> **
>> Roy Mendelssohn
>> Supervisory Operations Research Analyst
>> NOAA/NMFS
>> Environmental Research Division
>> Southwest Fisheries Science Center
>> ***Note new street address***
>> 110 McAllister Way
>> Santa Cruz, CA 95060
>> Phone: (831)-420-3666
>> Fax: (831) 420-3980
>> e-mail: roy.mendelss...@noaa.gov www: http://www.pfeg.noaa.gov/
>> 
>> "Old age and treachery will overcome youth and skill."
>> "From those who have been given much, much will be expected" 
>> "the arc of the moral universe is long, but it bends toward justice" -MLK Jr.
>> 
> 

**
"The contents of this message do not reflect any position of the U.S. 
Government or NOAA."
**
Roy Mendelssohn
Supervisory Operations Research Analyst
NOAA/NMFS
Environmental Research Division
Southwest Fisheries Science Center
***Note new street address***
110 McAllister Way
Santa Cruz, CA 95060
Phone: (831)-420-3666
Fax: (831) 420-3980
e-mail: roy.mendelss...@noaa.gov www: http://www.pfeg.noaa.gov/

"Old age and treachery will overcome youth and skill."
"From those who have been given much, much will be expected" 
"the arc of the moral universe is long, but it bends toward justice" -MLK Jr.

___
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 - updated with test script and test data

2019-08-20 Thread Richard Fuhr
Roy,

Thanks for testing it.

I am running MacOS Mojave 10.14.6

When I invoke the commands interactively from within R, the system also hangs 
when I try to create the SVG file.

I don’t see an error message; it just hangs.

Invoking sessionInfo() yields the following:


> 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:   
/Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRblas.0.dylib
LAPACK: 
/Library/Frameworks/R.framework/Versions/3.6/Resources/lib/libRlapack.dylib

Random number generation:
 RNG: Mersenne-Twister 
 Normal:  Inversion 
 Sample:  Rounding 
 
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 

loaded via a namespace (and not attached):
[1] compiler_3.6.1
> 

Thanks,

Richard







> On Aug 20, 2019, at 8:11 PM, Roy Mendelssohn - NOAA Federal 
>  wrote:
> 
> Worked on my machine.  I think you need to give more info,  including what 
> version of the OS you are running,  and from within R the result of 
> 'sessionInfo()',  also what happens if you run it from within R,  rather than 
> from RScript.
> 
> HTH,
> 
> -Roy
> 
> 
>> On Aug 20, 2019, at 7:27 PM, Richard Fuhr  wrote:
>> 
>> I am sending this message again to the distribution list, and this time I am
>> * making this message plain text
>> * attaching an R file called FuhrTest.R
>> * attaching an input file called FuhrTest.csv ( a small file but it does 
>> duplicate the problem)
>> 
>> The purpose of the code is to read the csv file, which consists of a few 
>> dates and weights and to generate plots of the data using various formats.
>> 
>> The formats PDF, JPG, PNG and SVG get successfully generated on my Linux 
>> machine running the Pop!_OS distribution.
>> 
>> However, on my Mac, using the identical R script, the system hangs when 
>> trying to generate an SVG plot.
>> 
>> I have also duplicated the problem interactively.
>> 
>> If the lines to generate an SVG file are commented out on the Mac, then the 
>> R code runs as desired.
>> 
>> I invoked the script via the command 
>> 
>> Rscript FuhrTest.R
>> 
>> So if someone can take a look at this case when running R on a Mac, that 
>> would be very helpful.
>> 
>> It would be nice to be able to generate SVG files using R on my Mac that 
>> represent data plots
>> 
>> 
>> Thanks,
>> 
>> 
>> 
>> Richard Fuhr
>> ___
>> R-SIG-Mac mailing list
>> R-SIG-Mac@r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-sig-mac
> 
> **
> "The contents of this message do not reflect any position of the U.S. 
> Government or NOAA."
> **
> Roy Mendelssohn
> Supervisory Operations Research Analyst
> NOAA/NMFS
> Environmental Research Division
> Southwest Fisheries Science Center
> ***Note new street address***
> 110 McAllister Way
> Santa Cruz, CA 95060
> Phone: (831)-420-3666
> Fax: (831) 420-3980
> e-mail: roy.mendelss...@noaa.gov www: http://www.pfeg.noaa.gov/
> 
> "Old age and treachery will overcome youth and skill."
> "From those who have been given much, much will be expected" 
> "the arc of the moral universe is long, but it bends toward justice" -MLK Jr.
> 

___
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 - updated with test script and test data

2019-08-20 Thread Roy Mendelssohn - NOAA Federal via R-SIG-Mac
Worked on my machine.  I think you need to give more info,  including what 
version of the OS you are running,  and from within R the result of 
'sessionInfo()',  also what happens if you run it from within R,  rather than 
from RScript.

HTH,

-Roy


> On Aug 20, 2019, at 7:27 PM, Richard Fuhr  wrote:
> 
> I am sending this message again to the distribution list, and this time I am
> * making this message plain text
> * attaching an R file called FuhrTest.R
> * attaching an input file called FuhrTest.csv ( a small file but it does 
> duplicate the problem)
> 
> The purpose of the code is to read the csv file, which consists of a few 
> dates and weights and to generate plots of the data using various formats.
> 
> The formats PDF, JPG, PNG and SVG get successfully generated on my Linux 
> machine running the Pop!_OS distribution.
> 
> However, on my Mac, using the identical R script, the system hangs when 
> trying to generate an SVG plot.
> 
> I have also duplicated the problem interactively.
> 
> If the lines to generate an SVG file are commented out on the Mac, then the R 
> code runs as desired.
> 
> I invoked the script via the command 
> 
> Rscript FuhrTest.R
> 
> So if someone can take a look at this case when running R on a Mac, that 
> would be very helpful.
> 
> It would be nice to be able to generate SVG files using R on my Mac that 
> represent data plots
> 
> 
> Thanks,
> 
> 
> 
> Richard Fuhr
> ___
> R-SIG-Mac mailing list
> R-SIG-Mac@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac

**
"The contents of this message do not reflect any position of the U.S. 
Government or NOAA."
**
Roy Mendelssohn
Supervisory Operations Research Analyst
NOAA/NMFS
Environmental Research Division
Southwest Fisheries Science Center
***Note new street address***
110 McAllister Way
Santa Cruz, CA 95060
Phone: (831)-420-3666
Fax: (831) 420-3980
e-mail: roy.mendelss...@noaa.gov www: http://www.pfeg.noaa.gov/

"Old age and treachery will overcome youth and skill."
"From those who have been given much, much will be expected" 
"the arc of the moral universe is long, but it bends toward justice" -MLK Jr.

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


[R-SIG-Mac] Problem generating an SVG file from a CSV file on the Mac - updated with test script and test data

2019-08-20 Thread Richard Fuhr
I am sending this message again to the distribution list, and this time I am
* making this message plain text
* attaching an R file called FuhrTest.R
* attaching an input file called FuhrTest.csv ( a small file but it does 
duplicate the problem)

The purpose of the code is to read the csv file, which consists of a few dates 
and weights and to generate plots of the data using various formats.

The formats PDF, JPG, PNG and SVG get successfully generated on my Linux 
machine running the Pop!_OS distribution.

However, on my Mac, using the identical R script, the system hangs when trying 
to generate an SVG plot.

I have also duplicated the problem interactively.

If the lines to generate an SVG file are commented out on the Mac, then the R 
code runs as desired.

I invoked the script via the command 

Rscript FuhrTest.R

So if someone can take a look at this case when running R on a Mac, that would 
be very helpful.

It would be nice to be able to generate SVG files using R on my Mac that 
represent data plots


Thanks,



Richard Fuhr
Date,Weight
6/4/00,189
6/5/00,191
6/6/00,191
6/7/00,191
6/9/00,190
6/10/00,189
6/12/00,187.75
6/13/00,189
6/14/00,188
6/15/00,190

FuhrTest.R
Description: Binary data
___
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


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

2019-08-20 Thread Richard Fuhr
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