-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
e235a9e
commit 6936040
Showing
47 changed files
with
52 additions
and
4,857 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 @@ | ||
```{r cover-merge, echo = FALSE} | ||
try(pdftools::pdf_combine(c("docs/R-Book-Cover.pdf", "docs/R-Book.pdf"), | ||
output = "docs/R-Book-Joined.pdf"), | ||
silent = TRUE | ||
) | ||
``` |
Binary file not shown.
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
Binary file modified
BIN
+0 Bytes
(100%)
_bookdown_files/R-Book_files/figure-latex/fa-icon-498f1ccbaa0f3566ccdbb6a21bcf16d6.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
_bookdown_files/R-Book_files/figure-latex/fa-icon-6535188218d020475ebe5e027d5e70cf.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
_bookdown_files/R-Book_files/figure-latex/fa-icon-743c64b9ba893ee22ddca6ba87c98316.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
_bookdown_files/R-Book_files/figure-latex/fa-icon-816f2f8c5de1688221ea8be20e4de069.pdf
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
_bookdown_files/R-Book_files/figure-latex/fa-icon-9fc2fad5de7ecb3bef7fec427240f50c.pdf
Binary file not shown.
Binary file removed
BIN
-1.31 KB
_bookdown_files/R-Book_files/figure-latex/fa-icon-c8c5a62beba1643c0bc8d4cee60b11b7.pdf
Binary file not shown.
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,28 +1,32 @@ | ||
W <- 8.3 | ||
H <- 11.7 | ||
|
||
grDevices::png(file = "R-Book-Cover.png", | ||
width = W, | ||
height = H, | ||
units = "in", | ||
res = 300) | ||
|
||
grDevices::pdf(file = "R-Book-Cover.pdf", | ||
width = W, | ||
height = H) | ||
|
||
par(mar = c(0, 0, 0, 0), oma = c(0, 0, 0, 0)) | ||
|
||
plot(1, type = "n", xlab = "", ylab = "", xlim = c(0,W), ylim = c(0,H)) | ||
|
||
# author name | ||
text(x = W, y = H - H/9, labels = "Arthur de Sá Ferreira", pos = 2, cex = 1.5) | ||
|
||
# book title | ||
text(x = W, y = H/2, labels = "Ciência com R", pos = 2, cex = 3) | ||
lines(x = (W - 4):W, y = rep(H/2 - 0.5, 5), lwd = 4) | ||
|
||
# author name | ||
text(x = W/2, y = H - H/1, labels = format(Sys.Date(), "%Y"), adj = c(0,0), cex = 1) | ||
|
||
dev.off() | ||
for(i in 1:2){ | ||
|
||
if(i == 1){ | ||
grDevices::png(file = "R-Book-Cover.png", | ||
width = W, | ||
height = H, | ||
units = "in", | ||
res = 300) | ||
} else { | ||
grDevices::pdf(file = "R-Book-Cover.pdf", | ||
width = W, | ||
height = H) | ||
} | ||
par(mar = c(0, 0, 0, 0), oma = c(0, 0, 0, 0)) | ||
|
||
plot(1, type = "n", xlab = "", ylab = "", xlim = c(0,W), ylim = c(0,H)) | ||
|
||
# author name | ||
text(x = W, y = H - H/9, labels = "Arthur de Sá Ferreira", pos = 2, cex = 1.5) | ||
|
||
# book title | ||
text(x = W, y = H/2, labels = "Ciência com R", pos = 2, cex = 3) | ||
lines(x = (W - 4):W, y = rep(H/2 - 0.5, 5), lwd = 4) | ||
|
||
# author name | ||
text(x = W/2, y = H - H/1, labels = format(Sys.Date(), "%Y"), adj = c(0,0), cex = 1) | ||
|
||
dev.off() | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
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 was deleted.
Oops, something went wrong.
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
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
Oops, something went wrong.