From: Ward Vandewege Date: Thu, 24 May 2018 02:17:25 +0000 (-0400) Subject: 2411: add copyright headers to our R files. X-Git-Tag: 1.2.0~139^2~2 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/c856e47c2a25dc6979ea07f2c3942687687c833a 2411: add copyright headers to our R files. refs #2411 Arvados-DCO-1.1-Signed-off-by: Ward Vandewege --- diff --git a/sdk/R/R/Arvados.R b/sdk/R/R/Arvados.R index 644725c2e2..0ec2d11529 100644 --- a/sdk/R/R/Arvados.R +++ b/sdk/R/R/Arvados.R @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + #' users.get #' #' users.get is a method defined in Arvados class. diff --git a/sdk/R/R/ArvadosFile.R b/sdk/R/R/ArvadosFile.R index e28ba9606c..8f737831c4 100644 --- a/sdk/R/R/ArvadosFile.R +++ b/sdk/R/R/ArvadosFile.R @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + source("./R/util.R") #' ArvadosFile diff --git a/sdk/R/R/Collection.R b/sdk/R/R/Collection.R index fad452ac7a..e23da13832 100644 --- a/sdk/R/R/Collection.R +++ b/sdk/R/R/Collection.R @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + source("./R/Subcollection.R") source("./R/ArvadosFile.R") source("./R/RESTService.R") diff --git a/sdk/R/R/CollectionTree.R b/sdk/R/R/CollectionTree.R index 91e4ec8645..8686f88c1a 100644 --- a/sdk/R/R/CollectionTree.R +++ b/sdk/R/R/CollectionTree.R @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + source("./R/Subcollection.R") source("./R/ArvadosFile.R") source("./R/util.R") diff --git a/sdk/R/R/HttpParser.R b/sdk/R/R/HttpParser.R index 5df8287fdc..8ce68f3837 100644 --- a/sdk/R/R/HttpParser.R +++ b/sdk/R/R/HttpParser.R @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + HttpParser <- R6::R6Class( "HttrParser", diff --git a/sdk/R/R/HttpRequest.R b/sdk/R/R/HttpRequest.R index bc6b4d406d..95dd375deb 100644 --- a/sdk/R/R/HttpRequest.R +++ b/sdk/R/R/HttpRequest.R @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + source("./R/util.R") HttpRequest <- R6::R6Class( diff --git a/sdk/R/R/RESTService.R b/sdk/R/R/RESTService.R index c215cf3595..ac65d0df3f 100644 --- a/sdk/R/R/RESTService.R +++ b/sdk/R/R/RESTService.R @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + RESTService <- R6::R6Class( "RESTService", diff --git a/sdk/R/R/Subcollection.R b/sdk/R/R/Subcollection.R index b3b01f89c1..60714a4ad8 100644 --- a/sdk/R/R/Subcollection.R +++ b/sdk/R/R/Subcollection.R @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + source("./R/util.R") #' Subcollection diff --git a/sdk/R/R/autoGenAPI.R b/sdk/R/R/autoGenAPI.R index 6db28f9dac..3e8c2fa0cf 100644 --- a/sdk/R/R/autoGenAPI.R +++ b/sdk/R/R/autoGenAPI.R @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + getAPIDocument <- function(){ url <- "https://4xphq.arvadosapi.com/discovery/v1/apis/arvados/v1/rest" serverResponse <- httr::RETRY("GET", url = url) diff --git a/sdk/R/R/util.R b/sdk/R/R/util.R index 57dd75f228..f796cb7b87 100644 --- a/sdk/R/R/util.R +++ b/sdk/R/R/util.R @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + #' listAll #' #' List all resources even if the number of items is greater than maximum API limit. diff --git a/sdk/R/createDoc.R b/sdk/R/createDoc.R index 73e088ecb6..5decab9af3 100644 --- a/sdk/R/createDoc.R +++ b/sdk/R/createDoc.R @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + #Run script with $Rscript createDoc.R input.Rmd output.html require(knitr) # required for knitting from rmd to md diff --git a/sdk/R/install_deps.R b/sdk/R/install_deps.R index 5314c86e28..593129bb3c 100644 --- a/sdk/R/install_deps.R +++ b/sdk/R/install_deps.R @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + options(repos=structure(c(CRAN="http://cran.wustl.edu/"))) if (!requireNamespace("devtools")) { install.packages("devtools") diff --git a/sdk/R/run_test.R b/sdk/R/run_test.R index 1f8931d917..156dde1080 100644 --- a/sdk/R/run_test.R +++ b/sdk/R/run_test.R @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + results <- devtools::test() any_error <- any(as.data.frame(results)$error) if (any_error) { diff --git a/sdk/R/tests/testthat.R b/sdk/R/tests/testthat.R index 18ef411fd6..9ca4f86fb6 100644 --- a/sdk/R/tests/testthat.R +++ b/sdk/R/tests/testthat.R @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + library(testthat) library(ArvadosR) diff --git a/sdk/R/tests/testthat/fakes/FakeArvados.R b/sdk/R/tests/testthat/fakes/FakeArvados.R index 5886ff761f..4fcfd6c67e 100644 --- a/sdk/R/tests/testthat/fakes/FakeArvados.R +++ b/sdk/R/tests/testthat/fakes/FakeArvados.R @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + FakeArvados <- R6::R6Class( "FakeArvados", diff --git a/sdk/R/tests/testthat/fakes/FakeHttpParser.R b/sdk/R/tests/testthat/fakes/FakeHttpParser.R index 865234d835..c97572c193 100644 --- a/sdk/R/tests/testthat/fakes/FakeHttpParser.R +++ b/sdk/R/tests/testthat/fakes/FakeHttpParser.R @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + FakeHttpParser <- R6::R6Class( "FakeHttrParser", diff --git a/sdk/R/tests/testthat/fakes/FakeHttpRequest.R b/sdk/R/tests/testthat/fakes/FakeHttpRequest.R index c4dbc669ce..2633abdf2c 100644 --- a/sdk/R/tests/testthat/fakes/FakeHttpRequest.R +++ b/sdk/R/tests/testthat/fakes/FakeHttpRequest.R @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + FakeHttpRequest <- R6::R6Class( "FakeHttpRequest", diff --git a/sdk/R/tests/testthat/fakes/FakeRESTService.R b/sdk/R/tests/testthat/fakes/FakeRESTService.R index d370e87fbe..08e8717de5 100644 --- a/sdk/R/tests/testthat/fakes/FakeRESTService.R +++ b/sdk/R/tests/testthat/fakes/FakeRESTService.R @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + FakeRESTService <- R6::R6Class( "FakeRESTService", diff --git a/sdk/R/tests/testthat/test-ArvadosFile.R b/sdk/R/tests/testthat/test-ArvadosFile.R index 0c1db1a641..fb14888aab 100644 --- a/sdk/R/tests/testthat/test-ArvadosFile.R +++ b/sdk/R/tests/testthat/test-ArvadosFile.R @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + source("fakes/FakeRESTService.R") context("ArvadosFile") diff --git a/sdk/R/tests/testthat/test-Collection.R b/sdk/R/tests/testthat/test-Collection.R index ec00ca3c66..c3c70910e4 100644 --- a/sdk/R/tests/testthat/test-Collection.R +++ b/sdk/R/tests/testthat/test-Collection.R @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + source("fakes/FakeRESTService.R") context("Collection") diff --git a/sdk/R/tests/testthat/test-CollectionTree.R b/sdk/R/tests/testthat/test-CollectionTree.R index 42a54bf694..5c8a405269 100644 --- a/sdk/R/tests/testthat/test-CollectionTree.R +++ b/sdk/R/tests/testthat/test-CollectionTree.R @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + context("CollectionTree") test_that("constructor creates file tree from character array properly", { diff --git a/sdk/R/tests/testthat/test-HttpParser.R b/sdk/R/tests/testthat/test-HttpParser.R index b2862128c2..a119d88bf8 100644 --- a/sdk/R/tests/testthat/test-HttpParser.R +++ b/sdk/R/tests/testthat/test-HttpParser.R @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + context("Http Parser") diff --git a/sdk/R/tests/testthat/test-HttpRequest.R b/sdk/R/tests/testthat/test-HttpRequest.R index 5c2fb602fd..5ad8aa0311 100644 --- a/sdk/R/tests/testthat/test-HttpRequest.R +++ b/sdk/R/tests/testthat/test-HttpRequest.R @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + context("Http Request") diff --git a/sdk/R/tests/testthat/test-RESTService.R b/sdk/R/tests/testthat/test-RESTService.R index 898e59e3be..859b6180f3 100644 --- a/sdk/R/tests/testthat/test-RESTService.R +++ b/sdk/R/tests/testthat/test-RESTService.R @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + source("fakes/FakeArvados.R") source("fakes/FakeHttpRequest.R") source("fakes/FakeHttpParser.R") diff --git a/sdk/R/tests/testthat/test-Subcollection.R b/sdk/R/tests/testthat/test-Subcollection.R index b2b0bc9ccf..e025586c58 100644 --- a/sdk/R/tests/testthat/test-Subcollection.R +++ b/sdk/R/tests/testthat/test-Subcollection.R @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + source("fakes/FakeRESTService.R") context("Subcollection") diff --git a/sdk/R/tests/testthat/test-util.R b/sdk/R/tests/testthat/test-util.R index ea091517c6..9f5e07c176 100644 --- a/sdk/R/tests/testthat/test-util.R +++ b/sdk/R/tests/testthat/test-util.R @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: Apache-2.0 + context("Utility function") test_that("listAll always returns all resource items from server", {