Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0d57892
commit ac26c45
Showing
11 changed files
with
73 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
Package: packClassic | ||
Type: Package | ||
Title: Toy Pack Classic | ||
Version: 0.5.1 | ||
Date: 2009-05-23 | ||
Author: Author: Christophe Genolini (and some helpfull readers...) | ||
Maintainer: <genolini@u-paris10.fr> | ||
Title: Toy example of Pack Classic | ||
Version: 0.5.2 | ||
Date: 2009-10-15 | ||
Author: Christophe Genolini | ||
Maintainer: Christophe Genolini <genolini@u-paris10.fr> | ||
Description: This package comes to illustrate the book "Petit Manuel de | ||
Programmation Orientee Objet sous R" | ||
License: GPL (>= 2.0) | ||
LazyLoad: yes | ||
Depends: graphics | ||
URL: www.r-project.org,christophe.genolini.free.fr/webTutorial | ||
Packaged: 2009-05-23 11:12:29 UTC; Christophe | ||
URL: www.r-project.org | ||
Packaged: 2009-10-11 18:17:29 UTC; Christophe | ||
Repository: CRAN | ||
Date/Publication: 2009-05-24 08:36:32 | ||
Date/Publication: 2009-10-11 18:30:13 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
Package: packClassic | ||
Type: Package | ||
Title: What the package does (short line) | ||
Version: 1.0 | ||
Date: 2008-07-22 | ||
Author: Who wrote it | ||
Maintainer: Who to complain to <yourfault@somewhere.net> | ||
Description: More about what it does (maybe more than one line) | ||
License: What license is it under? | ||
LazyLoad: yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
|
||
export("publicA", | ||
".publicB", | ||
"publicC" | ||
) | ||
|
||
importFrom(graphics,plot) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
# ################################################################ | ||
### ProgClassic .R ### | ||
# ################################################################ | ||
publicA<-function(x){plot(x+1)} | ||
privateA<-function(x){x+2} | ||
.publicB<-function(x){x+10} | ||
.privateB<-function(x){x+20} | ||
publicC<-function(x){publicA(privateA(x))} | ||
privateC<-function(x){.publicB(.privateB(x))} | ||
###################################################### | ||
### ProgClassic.R ### | ||
###################################################### | ||
|
||
publicA <- function(x){plot(x+1)} | ||
privateA <- function(x){x+2} | ||
.publicB <- function(x){x+10} | ||
.privateB <- function(x){x+20} | ||
publicC <- function(x){publicA(privateA(x))} | ||
privateC <- function(x){.publicB(.privateB(x))} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
###################################################### | ||
### ProgClassic.R ### | ||
###################################################### | ||
|
||
publicA <- function(x){plot(x+1)} | ||
privateA <- function(x){x+2} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
########################################## | ||
### Nom du programme : testClassique.R ### | ||
########################################## | ||
load("../data/dataAges.rda") | ||
source("../R/progClassic.R") | ||
|
||
publicA(1) | ||
privateA(2) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
########################################## | ||
### Nom du programme : main.R ### | ||
########################################## | ||
source("../testsDev/testsProgClassic.R") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,4 +35,6 @@ str(dataAges) | |
} | ||
|
||
\keyword{datasets} | ||
\keyword{documentation} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
########################################## | ||
### Nom du programme : testClassique.R ### | ||
########################################## | ||
library(packClassic) | ||
data(dataAges) | ||
|
||
publicA(1) | ||
.publicB(3) | ||
publicC(5) | ||
publicC(dataAges$age) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
################################################################# | ||
###testProgClassique.R### | ||
### testProgClassique.R ### | ||
################################################################# | ||
load("../data/dataAges.rda") | ||
source("../R/progClassic.R") | ||
print(publicA(1)) | ||
(privateA(2)) | ||
(.publicB(3)) | ||
(.privateB(4)) | ||
(publicC(5)) | ||
(publicC(dataAges$age)) | ||
(privateC(6)) | ||
publicA(1) | ||
privateA(2) | ||
.publicB(3) | ||
.privateB(4) | ||
publicC(5) | ||
publicC(dataAges$age) | ||
privateC(6) |