Browse code

update Service class

LiNk-NY authored on 10/04/2019 23:33:23
Showing 5 changed files

... ...
@@ -1,6 +1,6 @@
1 1
 Package: cBioPortalData
2 2
 Title: Exposes and makes available data from the cBioPortal web resources
3
-Version: 0.99.50
3
+Version: 0.99.51
4 4
 Authors@R: c(person("Levi", "Waldron", email = "[email protected]",
5 5
     role = "aut"),
6 6
     person("Marcel", "Ramos", email = "[email protected]",
... ...
@@ -9,6 +9,8 @@ Description: The cBioPortalData package takes compressed resources
9 9
     from repositories such as cBioPortal and assembles a MultiAssayExperiment
10 10
     object with Bioconductor classes.
11 11
 Depends: R (>= 3.5.0),
12
+    AnVIL,
13
+    methods,
12 14
     MultiAssayExperiment
13 15
 Remotes:
14 16
     Bioconductor/AnVIL,
... ...
@@ -38,11 +40,13 @@ Encoding: UTF-8
38 40
 LazyData: true
39 41
 VignetteBuilder: knitr
40 42
 BugReports: https://github.com/waldronlab/cBioPortalData/issues
41
-RoxygenNote: 6.1.0
43
+RoxygenNote: 6.1.1
42 44
 Collate: 
45
+    'cBioPortal.R'
43 46
     'cBioPortalData-pkg.R'
44 47
     'cache.R'
45 48
     'data.R'
46 49
     'utils.R'
47 50
     'loadStudy.R'
48 51
     'studyDownload.R'
52
+    'zzz.R'
... ...
@@ -1,6 +1,8 @@
1 1
 # Generated by roxygen2: do not edit by hand
2 2
 
3
+export(cBioPortal)
3 4
 export(cbioCache)
5
+export(cbioportal)
4 6
 export(downloadStudy)
5 7
 export(loadStudy)
6 8
 export(removeCache)
... ...
@@ -5,14 +5,28 @@
5 5
 #' @return 'cBioPortal' represents the API of the cBioPortal database
6 6
 #'
7 7
 #' @export
8
-cBioPortal <- NULL # assigned in .onLoad, when credentials are available(?)
8
+cbioportal <- NULL # assigned in .onLoad
9 9
 
10
+## @export
11
+# .cBioPortal <- setClass("cBioPortal", contains = "Service")
12
+
13
+#' API Entry function for the cBioPortal data service
14
+#'
15
+#' This function allows the use of the cBioPortal API
16
+#'
17
+#' @return An object of class 'cBioPortal'
18
+#'
19
+#' @export
10 20
 cBioPortal <-
11 21
     function()
12 22
 {
13
-    Service(
14
-        "cBioPortal",
15
-        host = "https://www.cbioportal.org/api/",
16
-        config = httr::config(ssl_verifypeer = 0L, ssl_verifyhost = 0L)
17
-    )
23
+    # .cBioPortal(
24
+        AnVIL:::Service(
25
+            "cBioPortal",
26
+            host = "http://www.cbioportal.org/api",
27
+            config = httr::config(ssl_verifypeer = 0L, ssl_verifyhost = 0L),
28
+            authenticate_config = FALSE,
29
+            package = "cBioPortalData"
30
+         )
31
+    # )
18 32
 }
19 33
new file mode 100644
... ...
@@ -0,0 +1,5 @@
1
+# .onLoad <-
2
+#     function(...)
3
+# {
4
+#     cbioportal <<- cBioPortal()
5
+# }
0 6
new file mode 100644
... ...
@@ -0,0 +1,14 @@
1
+% Generated by roxygen2: do not edit by hand
2
+% Please edit documentation in R/cBioPortal.R
3
+\name{cBioPortal}
4
+\alias{cBioPortal}
5
+\title{API Entry function for the cBioPortal data service}
6
+\usage{
7
+cBioPortal()
8
+}
9
+\value{
10
+An object of class 'cBioPortal'
11
+}
12
+\description{
13
+This function allows the use of the cBioPortal API
14
+}