Wednesday, October 19, 2016

R (programming language): Help for Datasets Package

Command:

> help(package="datasets")



Result:

                Information on package 'datasets'

Description:

Package:       datasets
Version:       3.3.1
Priority:      base
Title:         The R Datasets Package
Author:        R Core Team and contributors worldwide
Maintainer:    R Core Team <R-core@r-project.org>
Description:   Base R datasets.
License:       Part of R 3.3.1
Built:         R 3.3.1; ; 2016-09-30 00:06:27 UTC; unix

Index:

AirPassengers           Monthly Airline Passenger Numbers 1949-1960
BJsales                 Sales Data with Leading Indicator
BOD                     Biochemical Oxygen Demand
CO2                     Carbon Dioxide Uptake in Grass Plants
ChickWeight             Weight versus age of chicks on different diets
DNase                   Elisa assay of DNase
EuStockMarkets          Daily Closing Prices of Major European Stock
                        Indices, 1991-1998
Formaldehyde            Determination of Formaldehyde
HairEyeColor            Hair and Eye Color of Statistics Students
Harman23.cor            Harman Example 2.3
Harman74.cor            Harman Example 7.4
Indometh                Pharmacokinetics of Indomethacin
InsectSprays            Effectiveness of Insect Sprays
JohnsonJohnson          Quarterly Earnings per Johnson & Johnson Share
LakeHuron               Level of Lake Huron 1875-1972
LifeCycleSavings        Intercountry Life-Cycle Savings Data
Loblolly                Growth of Loblolly pine trees
Nile                    Flow of the River Nile
Orange                  Growth of Orange Trees
OrchardSprays           Potency of Orchard Sprays
PlantGrowth             Results from an Experiment on Plant Growth
Puromycin               Reaction Velocity of an Enzymatic Reaction
Theoph                  Pharmacokinetics of Theophylline
Titanic                 Survival of passengers on the Titanic
ToothGrowth             The Effect of Vitamin C on Tooth Growth in
                        Guinea Pigs
UCBAdmissions           Student Admissions at UC Berkeley
UKDriverDeaths          Road Casualties in Great Britain 1969-84
UKLungDeaths            Monthly Deaths from Lung Diseases in the UK
UKgas                   UK Quarterly Gas Consumption
USAccDeaths             Accidental Deaths in the US 1973-1978
USArrests               Violent Crime Rates by US State
USJudgeRatings          Lawyers' Ratings of State Judges in the US
                        Superior Court
USPersonalExpenditure   Personal Expenditure Data
VADeaths                Death Rates in Virginia (1940)
WWWusage                Internet Usage per Minute
WorldPhones             The World's Telephones
ability.cov             Ability and Intelligence Tests
airmiles                Passenger Miles on Commercial US Airlines,
                        1937-1960
airquality              New York Air Quality Measurements
anscombe                Anscombe's Quartet of 'Identical' Simple Linear
                        Regressions
attenu                  The Joyner-Boore Attenuation Data
attitude                The Chatterjee-Price Attitude Data
austres                 Quarterly Time Series of the Number of
                        Australian Residents
beavers                 Body Temperature Series of Two Beavers
cars                    Speed and Stopping Distances of Cars
chickwts                Chicken Weights by Feed Type
co2                     Mauna Loa Atmospheric CO2 Concentration
crimtab                 Student's 3000 Criminals Data
datasets-package        The R Datasets Package
discoveries             Yearly Numbers of Important Discoveries
esoph                   Smoking, Alcohol and (O)esophageal Cancer
euro                    Conversion Rates of Euro Currencies
eurodist                Distances Between European Cities and Between
                        US Cities
faithful                Old Faithful Geyser Data
freeny                  Freeny's Revenue Data
infert                  Infertility after Spontaneous and Induced
                        Abortion
iris                    Edgar Anderson's Iris Data
islands                 Areas of the World's Major Landmasses
lh                      Luteinizing Hormone in Blood Samples
longley                 Longley's Economic Regression Data
lynx                    Annual Canadian Lynx trappings 1821-1934
morley                  Michelson Speed of Light Data
mtcars                  Motor Trend Car Road Tests
nhtemp                  Average Yearly Temperatures in New Haven
nottem                  Average Monthly Temperatures at Nottingham,
                        1920-1939
npk                     Classical N, P, K Factorial Experiment
occupationalStatus      Occupational Status of Fathers and their Sons
precip                  Annual Precipitation in US Cities
presidents              Quarterly Approval Ratings of US Presidents
pressure                Vapor Pressure of Mercury as a Function of
                        Temperature
quakes                  Locations of Earthquakes off Fiji
randu                   Random Numbers from Congruential Generator
                        RANDU
rivers                  Lengths of Major North American Rivers
rock                    Measurements on Petroleum Rock Samples
sleep                   Student's Sleep Data
stackloss               Brownlee's Stack Loss Plant Data
state                   US State Facts and Figures
sunspot.month           Monthly Sunspot Data, from 1749 to "Present"
sunspot.year            Yearly Sunspot Data, 1700-1988
sunspots                Monthly Sunspot Numbers, 1749-1983
swiss                   Swiss Fertility and Socioeconomic Indicators
                        (1888) Data
treering                Yearly Treering Data, -6000-1979
trees                   Girth, Height and Volume for Black Cherry Trees
uspop                   Populations Recorded by the US Census
volcano                 Topographic Information on Auckland's Maunga
                        Whau Volcano
warpbreaks              The Number of Breaks in Yarn during Weaving
women                   Average Heights and Weights for American Women

R (programming language): 3D Scatter Plot Example

Command:

> library(scatterplot3d)


Result:

 library(scatterplot3d) でエラー:
   ‘scatterplot3d’ という名前のパッケージはありません


Command:

> install.packages("scatterplot3d")


Result:

 パッケージを ‘/usr/local/lib/R/3.3/site-library’ 中にインストールします
 (‘lib’ が指定されていないため)
 --- このセッションで使うために、CRAN のミラーサイトを選んでください ---
HTTPS CRAN mirror

 1: 0-Cloud [https]                 2: Algeria [https]            
 3: Australia (Melbourne) [https]   4: Australia (Perth) [https]  
 5: Austria [https]                 6: Belgium (Ghent) [https]    
 7: Brazil (RJ) [https]             8: Brazil (SP 1) [https]      
 9: Bulgaria [https]               10: Canada (MB) [https]        
11: Chile [https]                  12: China (Beijing) [https]    
13: China (Hefei) [https]          14: Colombia (Cali) [https]    
15: Czech Republic [https]         16: Denmark [https]            
17: France (Lyon 1) [https]        18: France (Lyon 2) [https]    
19: France (Marseille) [https]     20: France (Montpellier) [https]
21: France (Paris 2) [https]       22: Germany (Falkenstein) [https]
23: Germany (Münster) [https]      24: Iceland [https]            
25: India [https]                  26: Ireland [https]            
27: Italy (Padua) [https]          28: Japan (Tokyo) [https]      
29: Malaysia [https]               30: Mexico (Mexico City) [https]
31: New Zealand [https]            32: Norway [https]              
33: Philippines [https]            34: Russia (Moscow) [https]    
35: Serbia [https]                 36: Spain (A Coruña) [https]    
37: Spain (Madrid) [https]         38: Switzerland [https]        
39: Taiwan (Chungli) [https]       40: Turkey (Denizli) [https]    
41: UK (Bristol) [https]           42: UK (Cambridge) [https]      
43: UK (London 1) [https]          44: USA (CA 1) [https]          
45: USA (IA) [https]               46: USA (KS) [https]            
47: USA (MI 1) [https]             48: USA (TN) [https]            
49: USA (TX) [https]               50: USA (WA) [https]            
51: (HTTP mirrors)                

Selection:


Entered value:

28


Result:

 URL 'https://cran.ism.ac.jp/src/contrib/scatterplot3d_0.3-37.tar.gz' を試しています
Content type 'application/x-gzip' length 585767 bytes (572 KB)
==================================================
downloaded 572 KB

 起動準備中です -  警告メッセージ:
1: Setting LC_TIME failed, using "C"
2: Setting LC_MESSAGES failed, using "C"
3: Setting LC_MONETARY failed, using "C"
* installing *source* package ‘scatterplot3d’ ...
**  パッケージ ‘scatterplot3d’ の解凍および MD5 サムの検証に成功しました
** R
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
 起動準備中です -  警告メッセージ:
1: Setting LC_TIME failed, using "C"
2: Setting LC_MESSAGES failed, using "C"
3: Setting LC_MONETARY failed, using "C"
* DONE (scatterplot3d)

 ダウンロードされたパッケージは、以下にあります
  ‘/private/var/folders/hh/0h10rfgn6vx07dqp8b7lv1700000gn/T/RtmpJRyDyQ/downloaded_packages’


Command:

> library(scatterplot3d)
> attach(mtcars)
> scatterplot3d(wt,disp,mpg,main="3D Scatterplot")


Result:

R 3D Scatter Plot

Command:

> wt


Result:

 [1] 2.620 2.875 2.320 3.215 3.440 3.460 3.570 3.190 3.150 3.440 3.440 4.070
[13] 3.730 3.780 5.250 5.424 5.345 2.200 1.615 1.835 2.465 3.520 3.435 3.840
[25] 3.845 1.935 2.140 1.513 3.170 2.770 3.570 2.780


Command:

> disp


Result:

 [1] 160.0 160.0 108.0 258.0 360.0 225.0 360.0 146.7 140.8 167.6 167.6 275.8
[13] 275.8 275.8 472.0 460.0 440.0  78.7  75.7  71.1 120.1 318.0 304.0 350.0
[25] 400.0  79.0 120.3  95.1 351.0 145.0 301.0 121.0


Command:

> mpg


Result:

 [1] 21.0 21.0 22.8 21.4 18.7 18.1 14.3 24.4 22.8 19.2 17.8 16.4 17.3 15.2 10.4
[16] 10.4 14.7 32.4 30.4 33.9 21.5 15.5 15.2 13.3 19.2 27.3 26.0 30.4 15.8 19.7
[31] 15.0 21.4

macOS Sierra: R (programming language): Scatter Plot Example

Command:

$ r


Result:

R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin16.0.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.

During startup - Warning messages:
1: Setting LC_COLLATE failed, using "C"
2: Setting LC_TIME failed, using "C"
3: Setting LC_MESSAGES failed, using "C"
4: Setting LC_MONETARY failed, using "C"


Command:

> cars <-c(1,3,6,4,9)
> plot(cars)


Result:

R (programming language) Plot

GNU Octave: Plot Example

Command:

octave:10> x = -10:0.1:10;
octave:11> x


Result:

x =

 Columns 1 through 13:

   -10.000    -9.900    -9.800    -9.700    -9.600    -9.500    -9.400    -9.300    -9.200    -9.100    -9.000    -8.900    -8.800

 Columns 14 through 26:

    -8.700    -8.600    -8.500    -8.400    -8.300    -8.200    -8.100    -8.000    -7.900    -7.800    -7.700    -7.600    -7.500

 Columns 27 through 39:

    -7.400    -7.300    -7.200    -7.100    -7.000    -6.900    -6.800    -6.700    -6.600    -6.500    -6.400    -6.300    -6.200

 Columns 40 through 52:

    -6.100    -6.000    -5.900    -5.800    -5.700    -5.600    -5.500    -5.400    -5.300    -5.200    -5.100    -5.000    -4.900

 Columns 53 through 65:

    -4.800    -4.700    -4.600    -4.500    -4.400    -4.300    -4.200    -4.100    -4.000    -3.900    -3.800    -3.700    -3.600

 Columns 66 through 78:

    -3.500    -3.400    -3.300    -3.200    -3.100    -3.000    -2.900    -2.800    -2.700    -2.600    -2.500    -2.400    -2.300

 Columns 79 through 91:

    -2.200    -2.100    -2.000    -1.900    -1.800    -1.700    -1.600    -1.500    -1.400    -1.300    -1.200    -1.100    -1.000

 Columns 92 through 104:

    -0.900    -0.800    -0.700    -0.600    -0.500    -0.400    -0.300    -0.200    -0.100     0.000     0.100     0.200     0.300

 Columns 105 through 117:

     0.400     0.500     0.600     0.700     0.800     0.900     1.000     1.100     1.200     1.300     1.400     1.500     1.600

 Columns 118 through 130:

     1.700     1.800     1.900     2.000     2.100     2.200     2.300     2.400     2.500     2.600     2.700     2.800     2.900

 Columns 131 through 143:

     3.000     3.100     3.200     3.300     3.400     3.500     3.600     3.700     3.800     3.900     4.000     4.100     4.200

 Columns 144 through 156:

     4.300     4.400     4.500     4.600     4.700     4.800     4.900     5.000     5.100     5.200     5.300     5.400     5.500

 Columns 157 through 169:

     5.600     5.700     5.800     5.900     6.000     6.100     6.200     6.300     6.400     6.500     6.600     6.700     6.800

 Columns 170 through 182:

     6.900     7.000     7.100     7.200     7.300     7.400     7.500     7.600     7.700     7.800     7.900     8.000     8.100

 Columns 183 through 195:

     8.200     8.300     8.400     8.500     8.600     8.700     8.800     8.900     9.000     9.100     9.200     9.300     9.400

 Columns 196 through 201:

     9.500     9.600     9.700     9.800     9.900    10.000


Command:

octave:12> plot(x,sin(x));


Result:

GNU Octave (Plotting sine wave function)


macOS Sierra: GNU Octave: Installation

Command:

$ brew install octave


Result:

==> Auto-updated Homebrew!
Updated Homebrew from 9f76e2b to d08f61a.
Updated 3 taps (homebrew/core, homebrew/python, homebrew/science).
==> New Formulae
homebrew/science/omcompiler
==> Updated Formulae
homebrew/science/gmsh                       homebrew/science/rstudio-server             svtplay-dl
homebrew/science/megahit                    linkerd

==> Installing octave from homebrew/science
==> Tapping homebrew/x11
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-x11'...
remote: Counting objects: 65, done.
remote: Compressing objects: 100% (65/65), done.
remote: Total 65 (delta 0), reused 10 (delta 0), pack-reused 0
Unpacking objects: 100% (65/65), done.
Tapped 61 formulae (150 files, 170.3K)
==> Installing dependencies for homebrew/science/octave: bison, texinfo, veclibfort, arpack, little-cms2, ghostscript, epstool, gl2ps, graphicsmagick, transfig, fftw, fltk, glpk, gd, gnuplot, plotutils, imagemagick, pstoedit, qhull, qrupdate, tbb, metis, suite-sparse
==> Installing homebrew/science/octave dependency: bison
==> Downloading https://homebrew.bintray.com/bottles/bison-3.0.4.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring bison-3.0.4.sierra.bottle.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.

Some formulae require a newer version of bison.

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/usr/local/opt/bison/lib

==> Summary
🍺  /usr/local/Cellar/bison/3.0.4: 51 files, 2.1M
==> Installing homebrew/science/octave dependency: texinfo
==> Downloading https://homebrew.bintray.com/bottles/texinfo-6.3.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring texinfo-6.3.sierra.bottle.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.

Software that uses TeX, such as lilypond and octave, require a newer version
of these files.


Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/usr/local/opt/texinfo/lib

==> Summary
🍺  /usr/local/Cellar/texinfo/6.3: 403 files, 8.2M
==> Installing homebrew/science/octave dependency: veclibfort
==> Using Homebrew-provided fortran compiler.
This may be changed by setting the FC environment variable.
==> Downloading https://github.com/mcg1969/vecLibFort/archive/0.4.2.tar.gz
==> Downloading from https://codeload.github.com/mcg1969/vecLibFort/tar.gz/0.4.2
######################################################################## 100.0%
==> make all
==> make PREFIX=/usr/local/Cellar/veclibfort/0.4.2_3 install
==> Caveats
Installs the following files:
  * libvecLibFort.a: static library; link with -framework vecLib
  * libvecLibFort.dylib: dynamic library; *replaces* -framework vecLib
  * libvecLibFortI.dylib: preload (interpose) library.
Please see the home page for usage details.
==> Summary
🍺  /usr/local/Cellar/veclibfort/0.4.2_3: 8 files, 85.8K, built in 9 seconds
==> Installing homebrew/science/octave dependency: arpack
==> Using Homebrew-provided fortran compiler.
This may be changed by setting the FC environment variable.
==> Downloading https://github.com/opencollab/arpack-ng/archive/3.4.0.tar.gz
==> Downloading from https://codeload.github.com/opencollab/arpack-ng/tar.gz/3.4.0
######################################################################## 100.0%
==> ./bootstrap
==> ./configure --prefix=/usr/local/Cellar/arpack/3.4.0/libexec --with-blas=-L/usr/local/opt/veclibfort/lib -lvecLibFort
==> make
==> make check
==> make install
🍺  /usr/local/Cellar/arpack/3.4.0: 17 files, 1.4M, built in 1 minute 1 second
==> Installing homebrew/science/octave dependency: little-cms2
==> Downloading https://homebrew.bintray.com/bottles/little-cms2-2.8.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring little-cms2-2.8.sierra.bottle.tar.gz
🍺  /usr/local/Cellar/little-cms2/2.8: 17 files, 1M
==> Installing homebrew/science/octave dependency: ghostscript
==> Downloading https://homebrew.bintray.com/bottles/ghostscript-9.19.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring ghostscript-9.19.sierra.bottle.tar.gz
🍺  /usr/local/Cellar/ghostscript/9.19: 717 files, 61.4M
==> Installing homebrew/science/octave dependency: epstool
==> Downloading https://homebrew.bintray.com/bottles/epstool-3.08.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring epstool-3.08.sierra.bottle.tar.gz
🍺  /usr/local/Cellar/epstool/3.08: 7 files, 277.9K
==> Installing homebrew/science/octave dependency: gl2ps
==> Downloading https://homebrew.bintray.com/bottles/gl2ps-1.3.9_2.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring gl2ps-1.3.9_2.sierra.bottle.tar.gz
🍺  /usr/local/Cellar/gl2ps/1.3.9_2: 12 files, 227.3K
==> Installing homebrew/science/octave dependency: graphicsmagick
==> Downloading https://homebrew.bintray.com/bottles/graphicsmagick-1.3.25.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring graphicsmagick-1.3.25.sierra.bottle.tar.gz
🍺  /usr/local/Cellar/graphicsmagick/1.3.25: 476 files, 11.9M
==> Installing homebrew/science/octave dependency: transfig
==> Downloading https://homebrew.bintray.com/bottles-science/transfig-3.2.5e.sierra.bottle.1.tar.gz
######################################################################## 100.0%
==> Pouring transfig-3.2.5e.sierra.bottle.1.tar.gz
🍺  /usr/local/Cellar/transfig/3.2.5e: 81 files, 687K
==> Installing homebrew/science/octave dependency: fftw
==> Downloading https://homebrew.bintray.com/bottles/fftw-3.3.5.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring fftw-3.3.5.sierra.bottle.tar.gz
🍺  /usr/local/Cellar/fftw/3.3.5: 45 files, 10.9M
==> Installing homebrew/science/octave dependency: fltk
==> Downloading https://homebrew.bintray.com/bottles/fltk-1.3.3.sierra.bottle.3.tar.gz
######################################################################## 100.0%
==> Pouring fltk-1.3.3.sierra.bottle.3.tar.gz
🍺  /usr/local/Cellar/fltk/1.3.3: 325 files, 5.0M
==> Installing homebrew/science/octave dependency: glpk
==> Downloading http://ftpmirror.gnu.org/glpk/glpk-4.60.tar.gz
==> Downloading from http://ftp.jaist.ac.jp/pub/GNU/glpk/glpk-4.60.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/glpk/4.60 --with-gmp
==> make
==> make check
==> make install
🍺  /usr/local/Cellar/glpk/4.60: 12 files, 2.4M, built in 36 seconds
==> Installing homebrew/science/octave dependency: gd
==> Downloading https://homebrew.bintray.com/bottles/gd-2.2.3_1.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring gd-2.2.3_1.sierra.bottle.tar.gz
🍺  /usr/local/Cellar/gd/2.2.3_1: 35 files, 1.1M
==> Installing homebrew/science/octave dependency: gnuplot
==> Downloading https://homebrew.bintray.com/bottles/gnuplot-5.0.5.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring gnuplot-5.0.5.sierra.bottle.tar.gz
🍺  /usr/local/Cellar/gnuplot/5.0.5: 45 files, 2.3M
==> Installing homebrew/science/octave dependency: plotutils
==> Downloading https://homebrew.bintray.com/bottles/plotutils-2.6_1.sierra.bottle.1.tar.gz
######################################################################## 100.0%
==> Pouring plotutils-2.6_1.sierra.bottle.1.tar.gz
🍺  /usr/local/Cellar/plotutils/2.6_1: 73 files, 6.4M
==> Installing homebrew/science/octave dependency: imagemagick
==> Downloading https://homebrew.bintray.com/bottles/imagemagick-6.9.6-2.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring imagemagick-6.9.6-2.sierra.bottle.tar.gz
🍺  /usr/local/Cellar/imagemagick/6.9.6-2: 1,465 files, 22.5M
==> Installing homebrew/science/octave dependency: pstoedit
==> Downloading https://homebrew.bintray.com/bottles/pstoedit-3.70.sierra.bottle.2.tar.gz
######################################################################## 100.0%
==> Pouring pstoedit-3.70.sierra.bottle.2.tar.gz
🍺  /usr/local/Cellar/pstoedit/3.70: 38 files, 1.8M
==> Installing homebrew/science/octave dependency: qhull
==> Downloading http://www.qhull.org/download/qhull-2015-src-7.2.0.tgz
######################################################################## 100.0%
==> cmake . -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/qhull/201
==> make install
🍺  /usr/local/Cellar/qhull/2015.2: 132 files, 5.1M, built in 23 seconds
==> Installing homebrew/science/octave dependency: qrupdate
==> Downloading https://homebrew.bintray.com/bottles-science/qrupdate-1.1.2_4.sierra.bottle.1.tar.gz
######################################################################## 100.0%
==> Pouring qrupdate-1.1.2_4.sierra.bottle.1.tar.gz
🍺  /usr/local/Cellar/qrupdate/1.1.2_4: 8 files, 337.9K
==> Installing homebrew/science/octave dependency: tbb
==> Downloading https://homebrew.bintray.com/bottles/tbb-4.4-20160916.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring tbb-4.4-20160916.sierra.bottle.tar.gz
🍺  /usr/local/Cellar/tbb/4.4-20160916: 118 files, 1.9M
==> Installing homebrew/science/octave dependency: metis
==> Downloading https://homebrew.bintray.com/bottles-science/metis-5.1.0.sierra.bottle.2.tar.gz
######################################################################## 100.0%
==> Pouring metis-5.1.0.sierra.bottle.2.tar.gz
🍺  /usr/local/Cellar/metis/5.1.0: 19 files, 12.2M
==> Installing homebrew/science/octave dependency: suite-sparse
==> Downloading http://faculty.cse.tamu.edu/davis/SuiteSparse/SuiteSparse-4.5.3.tar.gz
######################################################################## 100.0%
==> Patching
patching file SPQR/Lib/Makefile
==> make library CFLAGS= -I/usr/local/opt/tbb/include BLAS=-framework Accelerate LAPACK=$(BLAS) SPQR_CONFIG=-DHAVE_TBB TBB=-L/usr/
==> make install INSTALL=/usr/local/Cellar/suite-sparse/4.5.3 CFLAGS= -I/usr/local/opt/tbb/include BLAS=-framework Accelerate LAPA
🍺  /usr/local/Cellar/suite-sparse/4.5.3: 345 files, 17.2M, built in 2 minutes 15 seconds
==> Installing homebrew/science/octave
==> Downloading https://homebrew.bintray.com/bottles-science/octave-4.2.0-rc2.sierra.bottle.1.tar.gz
######################################################################## 100.0%
==> Pouring octave-4.2.0-rc2.sierra.bottle.1.tar.gz
Warning: homebrew/science/octave dependency gcc was built with a different C++ standard
library (libstdc++ from clang). This may cause problems at runtime.
==> Caveats

Octave's graphical user interface is disabled; compile Octave with the option
--with-gui to enable it.


Several graphics toolkit are available. You can select them by using the command
'graphics_toolkit' in Octave.  Individual Gnuplot terminals can be chosen by setting
the environment variable GNUTERM and building gnuplot with the following options:

  setenv('GNUTERM','qt')    # Requires QT; install gnuplot --with-qt5
  setenv('GNUTERM','x11')   # Requires XQuartz; install gnuplot --with-x11
  setenv('GNUTERM','wxt')   # Requires wxmac; install gnuplot --with-wxmac
  setenv('GNUTERM','aqua')  # Requires AquaTerm; install gnuplot --with-aquaterm

You may also set this variable from within Octave. For printing the cairo backend
is recommended, i.e., install gnuplot with --with-cairo, and use

  print -dpdfcairo figure.pdf


When using the native Qt or fltk toolkits then invisible figures do not work because
osmesa is incompatible with Mac's OpenGL. The usage of gnuplot is recommended.


==> Summary
🍺  /usr/local/Cellar/octave/4.2.0-rc2: 2,182 files, 46.3M


Command (Running Octave):

$ octave
GNU Octave, version 4.2.0-rc2
Copyright (C) 2016 John W. Eaton and others.
This is free software; see the source code for copying conditions.
There is ABSOLUTELY NO WARRANTY; not even for MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.  For details, type 'warranty'.

Octave was configured for "x86_64-apple-darwin16.0.0".

Additional information about Octave is available at http://www.octave.org.

Please contribute if you find this software useful.
For more information, visit http://www.octave.org/get-involved.html

Read http://www.octave.org/bugs.html to learn how to submit bug reports.
For information about changes from previous versions, type 'news'.


Result:

octave:1>


macOS Sierra: mail (Unix): Error and Fix: Homebrew Upgrade: Upgrading GNU AWK

Error message in mail:

dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.6.dylib
  Referenced from: /usr/local/bin/gawk
  Reason: image not found


Command:

$ ls /usr/local/opt/readline/lib/


Result:

libhistory.7.0.dylib libhistory.a libreadline.7.0.dylib libreadline.a
libhistory.7.dylib libhistory.dylib libreadline.7.dylib libreadline.dylib


Command:

$ brew upgrade


Result:

==> Upgrading 14 outdated packages, with result:
eigen 3.2.10, gawk 4.1.4_1, git 2.10.1, googler 2.8, hugo 0.17, macvim 8.0-112, mercurial 3.9.2, nmap 7.30, homebrew/python/numpy 1.11.2, pyenv 1.0.2_1, python 2.7.12_2, python3 3.5.2_3, sqlite 3.15.0, vim 8.0.0041
==> Upgrading eigen
==> Downloading https://homebrew.bintray.com/bottles/eigen-3.2.10.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring eigen-3.2.10.sierra.bottle.tar.gz
🍺  /usr/local/Cellar/eigen/3.2.10: 369 files, 3.5M
==> Upgrading gawk
==> Downloading https://homebrew.bintray.com/bottles/gawk-4.1.4_1.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring gawk-4.1.4_1.sierra.bottle.tar.gz
🍺  /usr/local/Cellar/gawk/4.1.4_1: 64 files, 2.8M
==> Upgrading git
==> Downloading https://homebrew.bintray.com/bottles/git-2.10.1.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring git-2.10.1.sierra.bottle.tar.gz
==> Caveats
Bash completion has been installed to:
  /usr/local/etc/bash_completion.d

zsh completion has been installed to:
  /usr/local/share/zsh/site-functions

Emacs Lisp files have been installed to:
  /usr/local/share/emacs/site-lisp/git
==> Summary
🍺  /usr/local/Cellar/git/2.10.1: 1,439 files, 31.8M
==> Upgrading googler
==> Installing dependencies for googler: sqlite, python3
==> Installing googler dependency: sqlite
==> Downloading https://homebrew.bintray.com/bottles/sqlite-3.15.0.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring sqlite-3.15.0.sierra.bottle.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.

macOS provides an older sqlite3.

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/usr/local/opt/sqlite/lib
    CPPFLAGS: -I/usr/local/opt/sqlite/include
    PKG_CONFIG_PATH: /usr/local/opt/sqlite/lib/pkgconfig

==> Summary
🍺  /usr/local/Cellar/sqlite/3.15.0: 11 files, 2.9M
==> Installing googler dependency: python3
Warning: Building python3 from source:
  The bottle needs the Apple Command Line Tools to be installed.
  You can install them, if desired, with:
    xcode-select --install

==> Using the sandbox
==> Downloading https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tar.xz
######################################################################## 100.0%
==> Downloading https://bugs.python.org/file30805/issue10910-workaround.txt
######################################################################## 100.0%
==> Patching
==> Applying issue10910-workaround.txt
patching file Include/pyport.h
Hunk #1 succeeded at 688 (offset -11 lines).
Hunk #2 succeeded at 711 (offset -11 lines).
==> ./configure --prefix=/usr/local/Cellar/python3/3.5.2_3 --enable-ipv6 --datarootdir=/usr/local/Cellar/python3/3.5.2_3/share --datadir=/usr/local/Cellar/python3/3.5.2_3/share --enable-framework=/usr/local/Cellar/python3/3.5
==> make
==> make install PYTHONAPPSDIR=/usr/local/Cellar/python3/3.5.2_3
==> make frameworkinstallextras PYTHONAPPSDIR=/usr/local/Cellar/python3/3.5.2_3/share/python3
==> Downloading https://files.pythonhosted.org/packages/9f/32/81c324675725d78e7f6da777483a3453611a427db0145dfb878940469692/setuptools-25.2.0.tar.gz
######################################################################## 100.0%
==> Downloading https://pypi.python.org/packages/e7/a8/7556133689add8d1a54c0b14aeff0acb03c64707ce100ecd53934da1aa13/pip-8.1.2.tar.gz
######################################################################## 100.0%
==> Downloading https://pypi.python.org/packages/source/w/wheel/wheel-0.29.0.tar.gz
######################################################################## 100.0%
==> /usr/local/Cellar/python3/3.5.2_3/bin/python3 -s setup.py --no-user-cfg install --force --verbose --install-scripts=/usr/local/Cellar/python3/3.5.2_3/bin --install-lib=/usr/local/lib/python3.5/site-packages --single-versi
==> /usr/local/Cellar/python3/3.5.2_3/bin/python3 -s setup.py --no-user-cfg install --force --verbose --install-scripts=/usr/local/Cellar/python3/3.5.2_3/bin --install-lib=/usr/local/lib/python3.5/site-packages --single-versi
==> /usr/local/Cellar/python3/3.5.2_3/bin/python3 -s setup.py --no-user-cfg install --force --verbose --install-scripts=/usr/local/Cellar/python3/3.5.2_3/bin --install-lib=/usr/local/lib/python3.5/site-packages --single-versi
==> Caveats
Pip, setuptools, and wheel have been installed. To update them
  pip3 install --upgrade pip setuptools wheel

You can install Python packages with
  pip3 install <package>

They will install into the site-package directory
  /usr/local/lib/python3.5/site-packages

See: https://github.com/Homebrew/brew/blob/master/docs/Homebrew-and-Python.md

.app bundles were installed.
Run `brew linkapps python3` to symlink these to /Applications.
==> Summary
🍺  /usr/local/Cellar/python3/3.5.2_3: 7,720 files, 109.4M, built in 2 minutes 22 seconds
==> Installing googler
==> Downloading https://homebrew.bintray.com/bottles/googler-2.8.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring googler-2.8.sierra.bottle.tar.gz
==> Caveats
Bash completion has been installed to:
  /usr/local/etc/bash_completion.d

zsh completion has been installed to:
  /usr/local/share/zsh/site-functions
==> Summary
🍺  /usr/local/Cellar/googler/2.8: 11 files, 161.0K
==> Upgrading hugo
==> Downloading https://homebrew.bintray.com/bottles/hugo-0.17.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring hugo-0.17.sierra.bottle.tar.gz
==> Caveats
Bash completion has been installed to:
  /usr/local/etc/bash_completion.d
==> Summary
🍺  /usr/local/Cellar/hugo/0.17: 32 files, 16M
==> Upgrading macvim
==> Downloading https://github.com/macvim-dev/macvim/archive/snapshot-112.tar.gz
==> Downloading from https://codeload.github.com/macvim-dev/macvim/tar.gz/snapshot-112
######################################################################## 100.0%
==> ./configure --with-features=huge --enable-multibyte --with-macarchs=x86_64 --enable-perlinterp --enable-rubyinterp --enable-tclinterp --with-tlib=ncurses --with-compiledby=Homebrew --with-local-dir=/usr/local --enable-csc
==> make
==> Caveats
.app bundles were installed.
Run `brew linkapps macvim` to symlink these to /Applications.
==> Summary
🍺  /usr/local/Cellar/macvim/8.0-112: 2,102 files, 33.6M, built in 1 minute 56 seconds
==> Upgrading mercurial
==> Installing dependencies for mercurial: python
==> Installing mercurial dependency: python
Warning: Building python from source:
  The bottle needs the Apple Command Line Tools to be installed.
  You can install them, if desired, with:
    xcode-select --install

==> Downloading https://www.python.org/ftp/python/2.7.12/Python-2.7.12.tar.xz
######################################################################## 100.0%
==> Downloading https://bugs.python.org/file30805/issue10910-workaround.txt
######################################################################## 100.0%
==> Patching
==> Applying issue10910-workaround.txt
patching file Include/pyport.h
Hunk #1 succeeded at 713 (offset 14 lines).
Hunk #2 succeeded at 736 (offset 14 lines).
==> ./configure --prefix=/usr/local/Cellar/python/2.7.12_2 --enable-ipv6 --datarootdir=/usr/local/Cellar/python/2.7.12_2/share --datadir=/usr/local/Cellar/python/2.7.12_2/share --enable-framework=/usr/local/Cellar/python/2.7.
==> make
==> make install PYTHONAPPSDIR=/usr/local/Cellar/python/2.7.12_2
==> make frameworkinstallextras PYTHONAPPSDIR=/usr/local/Cellar/python/2.7.12_2/share/python
==> Downloading https://files.pythonhosted.org/packages/9f/7c/0a33c528164f1b7ff8cf0684cf88c2e733c8ae0119ceca4a3955c7fc059d/setuptools-23.1.0.tar.gz
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/e7/a8/7556133689add8d1a54c0b14aeff0acb03c64707ce100ecd53934da1aa13/pip-8.1.2.tar.gz
######################################################################## 100.0%
==> Downloading https://files.pythonhosted.org/packages/c9/1d/bd19e691fd4cfe908c76c429fe6e4436c9e83583c4414b54f6c85471954a/wheel-0.29.0.tar.gz
######################################################################## 100.0%
==> /usr/local/Cellar/python/2.7.12_2/bin/python -s setup.py --no-user-cfg install --force --verbose --single-version-externally-managed --record=installed.txt --install-scripts=/usr/local/Cellar/python/2.7.12_2/bin --install
==> /usr/local/Cellar/python/2.7.12_2/bin/python -s setup.py --no-user-cfg install --force --verbose --single-version-externally-managed --record=installed.txt --install-scripts=/usr/local/Cellar/python/2.7.12_2/bin --install
==> /usr/local/Cellar/python/2.7.12_2/bin/python -s setup.py --no-user-cfg install --force --verbose --single-version-externally-managed --record=installed.txt --install-scripts=/usr/local/Cellar/python/2.7.12_2/bin --install
==> Caveats
Pip and setuptools have been installed. To update them
  pip install --upgrade pip setuptools

You can install Python packages with
  pip install <package>

They will install into the site-package directory
  /usr/local/lib/python2.7/site-packages

See: https://github.com/Homebrew/brew/blob/master/docs/Homebrew-and-Python.md

.app bundles were installed.
Run `brew linkapps python` to symlink these to /Applications.
==> Summary
🍺  /usr/local/Cellar/python/2.7.12_2: 6,289 files, 85.5M, built in 2 minutes 28 seconds
==> Installing mercurial
==> Downloading https://homebrew.bintray.com/bottles/mercurial-3.9.2.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring mercurial-3.9.2.sierra.bottle.tar.gz
==> Caveats
Bash completion has been installed to:
  /usr/local/etc/bash_completion.d

zsh completion has been installed to:
  /usr/local/share/zsh/site-functions
==> Summary
🍺  /usr/local/Cellar/mercurial/3.9.2: 428 files, 5.8M
==> Upgrading nmap
==> Downloading https://homebrew.bintray.com/bottles/nmap-7.30.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring nmap-7.30.sierra.bottle.tar.gz
🍺  /usr/local/Cellar/nmap/7.30: 748 files, 23.9M
==> Upgrading homebrew/python/numpy
==> Downloading https://homebrew.bintray.com/bottles-python/numpy-1.11.2.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring numpy-1.11.2.sierra.bottle.tar.gz
🍺  /usr/local/Cellar/numpy/1.11.2: 433 files, 9M
==> Upgrading pyenv
==> Downloading https://github.com/yyuu/pyenv/archive/v1.0.2.tar.gz
Already downloaded: /Users/USERNAME/Library/Caches/Homebrew/pyenv-1.0.2.tar.gz
==> Caveats
To use Homebrew's directories rather than ~/.pyenv add to your profile:
  export PYENV_ROOT=/usr/local/var/pyenv

To enable shims and autocompletion add to your profile:
  if which pyenv > /dev/null; then eval "$(pyenv init -)"; fi
==> Summary
🍺  /usr/local/Cellar/pyenv/1.0.2_1: 522 files, 2.2M, built in 1 second
==> Upgrading vim
==> Downloading https://github.com/vim/vim/archive/v8.0.0041.tar.gz
==> Downloading from https://codeload.github.com/vim/vim/tar.gz/v8.0.0041
######################################################################## 100.0%
==> ./configure --prefix=/usr/local --mandir=/usr/local/Cellar/vim/8.0.0041/share/man --enable-multibyte --with-tlib=ncurses --enable-cscope --with-compiledby=Homebrew --enable-luainterp --enable-perlinterp --enable-pythonint
==> make
==> make install prefix=/usr/local/Cellar/vim/8.0.0041 STRIP=/usr/bin/true
🍺  /usr/local/Cellar/vim/8.0.0041: 1,705 files, 23.3M, built in 1 minute 16 seconds

macOS Sierra: R (programming language): Installation

Command:

$ brew tap homebrew/science


Result:

==> Auto-updated Homebrew!
Updated Homebrew from 41b2df8 to 9f76e2b.
Updated 3 taps (homebrew/core, homebrew/python, homebrew/science).
==> New Formulae
amqp-cpp                   git-series                 homebrew/science/soplex    nvc                        sonar-scanner              typescript
archi-steam-farm           hana                       homebrew/science/tagdust   osrm-backend               sql-translator             yarn
armor                      hesiod                     hostess                    piknik                     sqldiff
borg                       homebrew/science/gatk      kube-aws                   pyinvoke                   svgcleaner
consul-backinator          homebrew/science/kaiju     libsquish                  questdb                    termbox
csvtomd                    homebrew/science/libbi     modd                       ripgrep                    terragrunt
dbhash                     homebrew/science/mothur    nmh                        rmlint                     ttyd
==> Updated Formulae
abi-compliance-checker                  gdal                                    jsonpp                                  plantuml
ace                                     gdb                                     kapacitor                               pngcrush
afl-fuzz                                gdk-pixbuf                              kerl                                    ponyc
aha                                     geckodriver                             khal                                    poppler
algernon                                gedit                                   khard                                   postgis
allegro                                 ghex                                    kitchen-sync                            profanity
ammonite-repl                           git ✔                                   knot                                    progress
android-ndk                             git-archive-all                         kobalt                                  proj
anjuta                                  git-credential-manager                  kubernetes-cli                          prometheus
ansible                                 git-extras                              latex2html                              protobuf-swift
ansible-cmdb                            git-lfs                                 ldc                                     purescript
antigen                                 gitbucket                               ldns                                    pyqt5
apache-flink                            gjs                                     ledger                                  python ✔
apache-spark                            glib                                    libass                                  python3 ✔
aqbanking                               glibmm                                  libgaiagraphics                         qca
aria2                                   glide                                   libgee                                  qjackctl
artifactory                             glm                                     libgeotiff                              qscintilla2
asciinema2gif                           gnome-builder                           libgit2                                 qt5
aubio                                   gnome-icon-theme                        libiscsi                                re2
autojump                                gnome-themes-standard                   libjson-rpc-cpp                         remctl
avro-c                                  gnumeric                                liblwgeom                               repo
aws-elasticbeanstalk                    gnuplot                                 libmongoclient                          riemann-client
aws-sdk-cpp                             gnutls                                  libnfs                                  rocksdb
awscli                                  gobject-introspection                   libnotify                               rolldice
azure-cli                               gofabric8                               libosinfo                               roswell
bash-git-prompt                         goffice                                 libphonenumber                          rswift
bazel                                   googler ✔                               libpointing                             rtv
bear                                    gprof2dot                               librasterlite                           ruby
bgpq3                                   grib-api                                libsigc++                               rush
bind                                    gsettings-desktop-schemas               libspatialite                           s-search
binwalk                                 gssdp                                   libtorrent-rasterbar                    sbcl
bitrise                                 gstreamermm                             libvirt                                 sflowtool
boost                                   gtk+3                                   libxmp                                  shadowsocks-libev
boost-bcp                               gtkextra                                liquibase                               shared-mime-info
boost-python                            gtkmm3                                  llnode                                  shyaml
bsdconv                                 gucharmap                               logtalk                                 sonarqube
caddy                                   gupnp                                   luaradio                                source-highlight
caf                                     gupnp-av                                macvim ✔                                spatialite-gui
cake                                    gwyddion                                mailhog                                 spatialite-tools
calabash                                gx                                      mapnik                                  sqlite ✔
carthage                                gx-go                                   mapserver                               sqlite-analyzer
castxml                                 homebrew/python/numpy ✔                 mariadb                                 sqlmap
cayley                                  homebrew/python/scipy                   media-info                              ssdb
cern-ndiff                              homebrew/science/adol-c                 mediaconch                              sslyze
certbot                                 homebrew/science/beast                  mercurial ✔                             svtplay-dl
chaiscript                              homebrew/science/blis                   meson                                   syncthing
chapel                                  homebrew/science/boost-compute          metabase                                sysdig
checkstyle                              homebrew/science/cantera                metaproxy                               tailor
cjdns                                   homebrew/science/dealii                 metashell                               tcpkali
clearlooks-phenix                       homebrew/science/diamond                mg3a                                    telegraf
clutter-gtk                             homebrew/science/elemental              micro                                   terminal-notifier
codequery                               homebrew/science/getdp                  micropython                             terraform
collectd                                homebrew/science/gmsh                   midnight-commander                      texmath
commandbox                              homebrew/science/gmt4                   mitmproxy                               tile38
conan                                   homebrew/science/idba                   mkvtoolnix                              tippecanoe
cppcheck                                homebrew/science/igv                    mlogger                                 titan-server
cromwell                                homebrew/science/insighttoolkit         mogenerator                             tmux
crystal-lang                            homebrew/science/kent-tools             mongodb                                 tomcat
cucumber-cpp                            homebrew/science/lammps                 mongoose                                tor
dar                                     homebrew/science/lightstringgraph       monkeysphere                            uhd
dbus                                    homebrew/science/mbsystem               mutt                                    unbound
dcmtk                                   homebrew/science/mhap                   mypy                                    uwsgi
deheader                                homebrew/science/nextflow               mysql                                   vala
diff-pdf                                homebrew/science/nixio                  natalie                                 valabind
digdag                                  homebrew/science/oce                    ncmpcpp                                 vapoursynth
djview4                                 homebrew/science/petsc                  neofetch                                vault
docker                                  homebrew/science/scotch                 nettle                                  vdirsyncer
doctl                                   homebrew/science/slepc                  nexus                                   verilator
dspdfviewer                             homebrew/science/sratoolkit             nim                                     vim ✔
dvm                                     homebrew/science/sundials               nmap ✔                                  voltdb
efl                                     homebrew/science/tmv-cpp                node                                    vultr
eigen ✔                                 homebrew/science/trilinos               node-build                              wgetpaste
elasticsearch                           homebrew/science/vips                   noti                                    wimlib
elixir                                  homebrew/science/vsearch                notmuch                                 wine
elixirscript                            homebrew/science/vtk                    offlineimap                             winetricks
evince                                  hub                                     oniguruma                               x265
fabio                                   hugo ✔                                  open-babel                              xcenv
fastd                                   i2p                                     openconnect                             xonsh
fdupes                                  ice                                     opencsg                                 yank
ffmpeg                                  imagemagick                             openhmd                                 yaz
file-roller                             imapsync                                osm2pgsql                               yazpp
flow                                    influxdb                                osquery                                 you-get
folly                                   irrlicht                                oysttyer                                youtube-dl
fontforge                               jack                                    p11-kit                                 zile
fonttools                               jansson                                 pazpar2                                 zimg
format-udf                              jbake                                   pcap_dnsproxy                           zplug
freeipmi                                jboss-forge                             pdal                                    zsh-autosuggestions
freeling                                jemalloc                                pdf2htmlex                              zsh-completions
freeradius-server                       jenkins                                 pdftoedn                                zsh-navigation-tools
freetds                                 jfrog-cli-go                            peco                                    zstd
fzf                                     jsdoc3                                  pgroonga
gammaray                                jsoncpp                                 pgrouting
gauge                                   jsonnet                                 picocom
==> Deleted Formulae
automoc4                   elementary                 frescobaldi                libmarisa                  qwtpolar                   sqliteman
cuty_capt                  evas-generic-loaders       jless                      pyside                     rcssserver                 valkyrie
dwarf                      ezlupdate                  jsdoc-toolkit              pyside-tools               shiboken


Command:

$ brew install r


Result:

==> Installing r from homebrew/science
==> Installing dependencies for homebrew/science/r: mpfr, readline, gettext, pcre, fontconfig, pixman, libffi, glib, cairo
==> Installing homebrew/science/r dependency: mpfr
==> Downloading https://homebrew.bintray.com/bottles/mpfr-3.1.5.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring mpfr-3.1.5.sierra.bottle.tar.gz
🍺  /usr/local/Cellar/mpfr/3.1.5: 25 files, 3.6M
==> Installing homebrew/science/r dependency: readline
==> Downloading https://homebrew.bintray.com/bottles/readline-7.0.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring readline-7.0.sierra.bottle.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.

macOS provides the BSD libedit library, which shadows libreadline.
In order to prevent conflicts when programs look for libreadline we are
defaulting this GNU Readline installation to keg-only.


Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/usr/local/opt/readline/lib
    CPPFLAGS: -I/usr/local/opt/readline/include

==> Summary
🍺  /usr/local/Cellar/readline/7.0: 45 files, 2M
==> Installing homebrew/science/r dependency: gettext
==> Downloading https://homebrew.bintray.com/bottles/gettext-0.19.8.1.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring gettext-0.19.8.1.sierra.bottle.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.

macOS provides the BSD gettext library and some software gets confused if both are in the library path.

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/usr/local/opt/gettext/lib
    CPPFLAGS: -I/usr/local/opt/gettext/include

==> Summary
🍺  /usr/local/Cellar/gettext/0.19.8.1: 1,934 files, 16.9M
==> Installing homebrew/science/r dependency: pcre
==> Downloading https://homebrew.bintray.com/bottles/pcre-8.39.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring pcre-8.39.sierra.bottle.tar.gz
🍺  /usr/local/Cellar/pcre/8.39: 203 files, 5.4M
==> Installing homebrew/science/r dependency: fontconfig
==> Downloading https://homebrew.bintray.com/bottles/fontconfig-2.12.1_2.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring fontconfig-2.12.1_2.sierra.bottle.tar.gz
==> Using the sandbox
==> Regenerating font cache, this may take a while
==> /usr/local/Cellar/fontconfig/2.12.1_2/bin/fc-cache -frv
🍺  /usr/local/Cellar/fontconfig/2.12.1_2: 468 files, 3M
==> Installing homebrew/science/r dependency: pixman
==> Downloading https://homebrew.bintray.com/bottles/pixman-0.34.0.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring pixman-0.34.0.sierra.bottle.tar.gz
🍺  /usr/local/Cellar/pixman/0.34.0: 12 files, 1.2M
==> Installing homebrew/science/r dependency: libffi
==> Downloading https://homebrew.bintray.com/bottles/libffi-3.0.13.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libffi-3.0.13.sierra.bottle.tar.gz
==> Caveats
This formula is keg-only, which means it was not symlinked into /usr/local.

Some formulae require a newer version of libffi.

Generally there are no consequences of this for you. If you build your
own software and it requires this formula, you'll need to add to your
build variables:

    LDFLAGS:  -L/usr/local/opt/libffi/lib
    PKG_CONFIG_PATH: /usr/local/opt/libffi/lib/pkgconfig

==> Summary
🍺  /usr/local/Cellar/libffi/3.0.13: 15 files, 361.8K
==> Installing homebrew/science/r dependency: glib
==> Downloading https://homebrew.bintray.com/bottles/glib-2.50.1.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring glib-2.50.1.sierra.bottle.tar.gz
🍺  /usr/local/Cellar/glib/2.50.1: 427 files, 22.3M
==> Installing homebrew/science/r dependency: cairo
==> Downloading https://homebrew.bintray.com/bottles/cairo-1.14.6_1.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring cairo-1.14.6_1.sierra.bottle.tar.gz
🍺  /usr/local/Cellar/cairo/1.14.6_1: 118 files, 5.9M
==> Installing homebrew/science/r
==> Downloading https://homebrew.bintray.com/bottles-science/r-3.3.1_3.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring r-3.3.1_3.sierra.bottle.tar.gz
 起動準備中です -  警告メッセージ:
1: Setting LC_COLLATE failed, using "C"
2: Setting LC_TIME failed, using "C"
3: Setting LC_MESSAGES failed, using "C"
4: Setting LC_MONETARY failed, using "C"
 起動準備中です -  警告メッセージ:
1: Setting LC_COLLATE failed, using "C"
2: Setting LC_TIME failed, using "C"
3: Setting LC_MESSAGES failed, using "C"
4: Setting LC_MONETARY failed, using "C"
==> Caveats
To enable rJava support, run the following command:
  R CMD javareconf JAVA_CPPFLAGS=-I/System/Library/Frameworks/JavaVM.framework/Headers
If you've installed a version of Java other than the default, you might need to instead use:
  R CMD javareconf JAVA_CPPFLAGS="-I/System/Library/Frameworks/JavaVM.framework/Headers -I/Library/Java/JavaVirtualMachines/jdk<version>.jdk/"
(where <version> can be found by running `java -version`, `/usr/libexec/java_home`, or `locate jni.h`), or:
  R CMD javareconf JAVA_CPPFLAGS="-I/System/Library/Frameworks/JavaVM.framework/Headers -I$(/usr/libexec/java_home | grep -o '.*jdk')"
==> Summary
🍺  /usr/local/Cellar/r/3.3.1_3: 2,204 files, 54.7M


Command:

$ r --version


Result:

R version 3.3.1 (2016-06-21) -- "Bug in Your Hair"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin16.0.0 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under the terms of the
GNU General Public License versions 2 or 3.
For more information about these matters see
http://www.gnu.org/licenses/.

MATLAB: Opening an Example

Command:

Trial>> openExample('matlab/VectorofEvenlySpacedComplexNumbersExample')


Result:

MATLAB Editor

Tuesday, October 18, 2016

MATLAB: Create a Vector of Evenly Spaced Points in a Interval

Command:

Trial>> y1 = linspace(-5,5,7)  


Result:

y1 =

   -5.0000   -3.3333   -1.6667         0    1.6667    3.3333    5.0000

MATLAB: Scatter Plot Example

Command:

Trial>> x = linspace(0,2*pi,25)


Result:

x =

  Columns 1 through 11

         0    0.2618    0.5236    0.7854    1.0472    1.3090    1.5708    1.8326    2.0944    2.3562    2.6180

  Columns 12 through 22

    2.8798    3.1416    3.4034    3.6652    3.9270    4.1888    4.4506    4.7124    4.9742    5.2360    5.4978

  Columns 23 through 25

    5.7596    6.0214    6.2832


Command:

Trial>> y = sin(x)


Result:

y =

  Columns 1 through 11

         0    0.2588    0.5000    0.7071    0.8660    0.9659    1.0000    0.9659    0.8660    0.7071    0.5000

  Columns 12 through 22

    0.2588    0.0000   -0.2588   -0.5000   -0.7071   -0.8660   -0.9659   -1.0000   -0.9659   -0.8660   -0.7071

  Columns 23 through 25

   -0.5000   -0.2588   -0.0000


Command:

Trial>> figure
Trial>> plot(x,y,'*')


Result: