Skip to content

Commit 2a2d88d

Browse files
committed
Initial commit
0 parents  commit 2a2d88d

15 files changed

+786
-0
lines changed

.Rbuildignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
^.*\.Rproj$
2+
^\.Rproj\.user$
+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
{
2+
}

.Rproj.user/CBD64C72/sdb/prop/INDEX

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
~%2FJaqpot%2FPredictPBPK%2FR%2Fhello.R="80F9F27F"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"collab_server" : "",
3+
"contents" : "#' predict makes a PredictionResponse for Jaqpot\n#' @param dataset\n#' @param rawModel\n#' @param additionalInfo\n\npredictgeneric <- function(dataset, rawModel, additionalInfo){\n feats <- colnames(dataset$dataEntry[,2])\n rows_data <- length(dataset$dataEntry$values[,2])\n df <- data.frame(matrix(0, ncol = 0, nrow = rows_data))\n for(i in feats){\n fe <- additionalInfo$independentFeatures[i][[i]]\n feval <- dataset$dataEntry$values[i][,1]\n df[fe] <- feval\n }\n mod <- unserialize(base64_dec(rawModel))\n model <- mod$MODEL\n predFeat <- additionalInfo$predictedFeatures[1][[1]]\n predictions <- predict(model, df)\n for(i in 1:length(predictions)){\n prediction<- data.frame(predictions[i])\n colnames(prediction)<- predFeat\n if(i==1){lh_preds<- list(unbox(prediction))\n }else{\n lh_preds[[i]]<- unbox(prediction)\n }\n }\n datpred <-list(predictions=lh_preds)\n return(datpred)\n}",
4+
"created" : 1536937377220.000,
5+
"dirty" : true,
6+
"encoding" : "",
7+
"folds" : "",
8+
"hash" : "310581410",
9+
"id" : "6189EAD4",
10+
"lastKnownWriteTime" : 1,
11+
"last_content_update" : 1536937379773,
12+
"path" : null,
13+
"project_path" : null,
14+
"properties" : {
15+
"tempName" : "Untitled1"
16+
},
17+
"relative_order" : 2,
18+
"source_on_save" : false,
19+
"source_window" : "",
20+
"type" : "r_source"
21+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"collab_server" : "",
3+
"contents" : "# Hello, world!\n#\n# This is an example function named 'hello' \n# which prints 'Hello, world!'.\n#\n# You can learn more about package authoring with RStudio at:\n#\n# http://r-pkgs.had.co.nz/\n#\n# Some useful keyboard shortcuts for package authoring:\n#\n# Build and Reload Package: 'Cmd + Shift + B'\n# Check Package: 'Cmd + Shift + E'\n# Test Package: 'Cmd + Shift + T'\n\nhello <- function() {\n print(\"Hello, world!\")\n}\n",
4+
"created" : 1536937364645.000,
5+
"dirty" : false,
6+
"encoding" : "UTF-8",
7+
"folds" : "",
8+
"hash" : "644263049",
9+
"id" : "7CF3EB3C",
10+
"lastKnownWriteTime" : 1536937360,
11+
"last_content_update" : 1536937360,
12+
"path" : "~/Jaqpot/PredictPBPK/R/hello.R",
13+
"project_path" : "R/hello.R",
14+
"properties" : {
15+
},
16+
"relative_order" : 1,
17+
"source_on_save" : false,
18+
"source_window" : "",
19+
"type" : "r_source"
20+
}

.Rproj.user/CBD64C72/sdb/s-B805FFB9/lock_file

Whitespace-only changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
virtual-session-id="81D0794A"

.gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

DESCRIPTION

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Package: PredictPBPK
2+
Type: Package
3+
Title: What the Package Does (Title Case)
4+
Version: 0.1.0
5+
Author: Who wrote it
6+
Maintainer: The package maintainer <[email protected]>
7+
Description: More about what it does (maybe more than one line)
8+
Use four spaces when indenting paragraphs within the Description.
9+
License: What license is it under?
10+
Encoding: UTF-8
11+
LazyData: true

LICENSE

+674
Large diffs are not rendered by default.

NAMESPACE

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
exportPattern("^[[:alpha:]]+")

PredictPBPK.Rproj

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Version: 1.0
2+
3+
RestoreWorkspace: Default
4+
SaveWorkspace: Default
5+
AlwaysSaveHistory: Default
6+
7+
EnableCodeIndexing: Yes
8+
UseSpacesForTab: Yes
9+
NumSpacesForTab: 2
10+
Encoding: UTF-8
11+
12+
RnwWeave: Sweave
13+
LaTeX: pdfLaTeX
14+
15+
AutoAppendNewline: Yes
16+
StripTrailingWhitespace: Yes
17+
18+
BuildType: Package
19+
PackageUseDevtools: Yes
20+
PackageInstallArgs: --no-multiarch --with-keep.source

R/hello.R

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Hello, world!
2+
#
3+
# This is an example function named 'hello'
4+
# which prints 'Hello, world!'.
5+
#
6+
# You can learn more about package authoring with RStudio at:
7+
#
8+
# http://r-pkgs.had.co.nz/
9+
#
10+
# Some useful keyboard shortcuts for package authoring:
11+
#
12+
# Build and Reload Package: 'Cmd + Shift + B'
13+
# Check Package: 'Cmd + Shift + E'
14+
# Test Package: 'Cmd + Shift + T'
15+
16+
hello <- function() {
17+
print("Hello, world!")
18+
}

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# PredictPBPK

man/hello.Rd

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
\name{hello}
2+
\alias{hello}
3+
\title{Hello, World!}
4+
\usage{
5+
hello()
6+
}
7+
\description{
8+
Prints 'Hello, world!'.
9+
}
10+
\examples{
11+
hello()
12+
}

0 commit comments

Comments
 (0)