-
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
Showing
15 changed files
with
1,367 additions
and
31 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
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,2 +1,7 @@ | ||
# Generated by roxygen2: do not edit by hand | ||
|
||
S3method("$",LinearRegression) | ||
S3method("[[",LinearRegression) | ||
export(LinearRegression) | ||
export(full_version) | ||
useDynLib(libkrigingtemplate, .registration = TRUE) |
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,8 +1,39 @@ | ||
# Generated by extendr: Do not edit by hand | ||
|
||
# nolint start | ||
|
||
# | ||
# This file was created with the following call: | ||
# .Call("wrap__make_libkrigingtemplate_wrappers", use_symbols = TRUE, package_name = "libkrigingtemplate") | ||
|
||
#' @docType package | ||
#' @usage NULL | ||
#' @useDynLib libkrigingtemplate, .registration = TRUE | ||
NULL | ||
|
||
#' Return string `"Hello world!"` to R. | ||
#' Return version string | ||
#' @export | ||
full_version <- function() .Call(wrap__full_version) | ||
|
||
linear_regression_fit1 <- function(y, x) invisible(.Call(wrap__linear_regression_fit1, y, x)) | ||
|
||
linear_regression_fit2 <- function(y, x) invisible(.Call(wrap__linear_regression_fit2, y, x)) | ||
|
||
#' First linear regression implementation test | ||
#' @export | ||
LinearRegression <- new.env(parent = emptyenv()) | ||
|
||
LinearRegression$fit <- function(y, x) .Call(wrap__LinearRegression__fit, y, x) | ||
|
||
LinearRegression$predict <- function(x) .Call(wrap__LinearRegression__predict, self, x) | ||
|
||
#' @rdname LinearRegression | ||
#' @usage NULL | ||
#' @export | ||
`$.LinearRegression` <- function (self, name) { func <- LinearRegression[[name]]; environment(func) <- environment(); func } | ||
|
||
#' @export | ||
hello_world <- function() .Call(wrap__hello_world) | ||
`[[.LinearRegression` <- `$.LinearRegression` | ||
|
||
|
||
# nolint end |
Oops, something went wrong.