Skip to content

Commit 211787d

Browse files
committed
Merge branch 'release/v0.0.3'
2 parents 90d1394 + 8cd82bc commit 211787d

File tree

83 files changed

+3700
-539
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+3700
-539
lines changed

.Rbuildignore

+1
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ _pkgdown.yaml
1515
^.git
1616
^\.travis\.yml$
1717
^appveyor\.yml$
18+
^cran-comments\.md$

DESCRIPTION

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
Package: rTorch
22
Title: R Bindings to 'PyTorch'
3-
Version: 0.0.2
3+
Version: 0.0.3
44
Authors@R: c(
55
person("Alfonso R.", "Reyes", role = c("aut", "cre", "cph"), email = "[email protected]"),
66
person("Daniel", "Falbel", role = c("ctb", "cph"), email = "[email protected]"),
77
person("JJ", "Allaire", role = c("ctb", "cph"))
88
)
9-
Description: R implementation and interface of the Machine Learning platform
10-
'PyTorch' <https://pytorch.org/> developed in Python. It requires a 'conda'
9+
Description: 'R' implementation and interface of the Machine Learning platform
10+
'PyTorch' <https://pytorch.org/> developed in 'Python'. It requires a 'conda'
1111
environment with 'torch' and 'torchvision' to provide 'PyTorch' functions,
1212
methods and classes. The key object in 'PyTorch' is the tensor which is in
1313
essence a multidimensional array. These tensors are fairly flexible to perform
14-
calculations in CPUs as well as 'GPUs'.
14+
calculations in CPUs as well as 'GPUs' to accelerate the process.
1515
License: MIT + file LICENSE
1616
Encoding: UTF-8
1717
LazyData: true

NEWS.md

+16
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
# rTorch 0.0.3
2+
* 20190802
3+
* Released to CRAN at 15:20
4+
5+
6+
# rTorch 0.0.2.9000
7+
* 20190802
8+
* Returned from CRAN with notes
9+
* Fix single quotes in DESCRIPTION
10+
* Change `\dontrun` by `\donttest` where applicable
11+
* Get rid of a warning message
12+
* Replace print/cat by message/warning
13+
* Add `\value` to all functions with `@return`
14+
* Added `cran-comments.md`
15+
16+
117
# rTorch 0.0.2
218
* July 31 2019
319
* Submitted to CRAN at 15:30. Received. Waiting manual inspection.

R/extract.R

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#' @export
1111
#'
1212
#' @examples
13-
#' \dontrun{
13+
#' \donttest{
1414
#' sess <- tf$Session()
1515
#'
1616
#' x <- tf$constant(1:15, shape = c(3, 5))
@@ -159,7 +159,7 @@
159159
#' @export
160160
#'
161161
#' @examples
162-
#' \dontrun{
162+
#' \donttest{
163163
#' x <- tf$constant(1:10)
164164
#'
165165
#' opts <- torch_extract_opts("R")
@@ -252,15 +252,15 @@ torch_extract_opts <- function(
252252
#'
253253
#' @export
254254
#' @examples
255-
#' \dontrun{
255+
#' \donttest{
256256
#' # in python, if x is a numpy array or torch tensor
257257
#' x[..., i]
258258
#' # the ellipsis means "expand to match number of dimension of x".
259259
#' # to translate the above python expression to R, write:
260260
#' x[all_dims(), i]
261261
#' }
262262
#' @examples
263-
#' \dontrun{
263+
#' \donttest{
264264
#' # Run this
265265
#' d <- torch$tensor(list(list(0, 0),
266266
#' list(0, 0),

0 commit comments

Comments
 (0)