library(mosaicCalc)
## Loading required package: mosaic
## Registered S3 method overwritten by 'mosaic':
## method from
## fortify.SpatialPolygonsDataFrame ggplot2
##
## The 'mosaic' package masks several functions from core packages in order to add
## additional features. The original behavior of these functions should not be affected by this.
##
## Attaching package: 'mosaic'
## The following objects are masked from 'package:dplyr':
##
## count, do, tally
## The following object is masked from 'package:Matrix':
##
## mean
## The following object is masked from 'package:ggplot2':
##
## stat
## The following objects are masked from 'package:stats':
##
## binom.test, cor, cor.test, cov, fivenum, IQR, median, prop.test,
## quantile, sd, t.test, var
## The following objects are masked from 'package:base':
##
## max, mean, min, prod, range, sample, sum
## Loading required package: mosaicCore
##
## Attaching package: 'mosaicCore'
## The following objects are masked from 'package:dplyr':
##
## count, tally
##
## Attaching package: 'mosaicCalc'
## The following object is masked from 'package:stats':
##
## D
devtools::install_github("ProjectMOSAIC/mosaicCalc")
## WARNING: Rtools is required to build R packages, but is not currently installed.
##
## Please download and install Rtools 4.2 from https://cran.r-project.org/bin/windows/Rtools/ or https://www.r-project.org/nosvn/winutf8/ucrt3/.
## Downloading GitHub repo ProjectMOSAIC/mosaicCalc@HEAD
## Error in utils::download.file(url, path, method = method, quiet = quiet, :
## cannot open URL 'https://api.github.com/repos/ProjectMOSAIC/mosaicCalc/tarball/HEAD'
install.packages("mosaicCalc")
## Warning: package 'mosaicCalc' is in use and will not be installed
devtools::install_github("ProjectMOSAIC/mosaicCalc", ref="beta")
## WARNING: Rtools is required to build R packages, but is not currently installed.
##
## Please download and install Rtools 4.2 from https://cran.r-project.org/bin/windows/Rtools/ or https://www.r-project.org/nosvn/winutf8/ucrt3/.
## Downloading GitHub repo ProjectMOSAIC/mosaicCalc@beta
## Error in utils::download.file(url, path, method = method, quiet = quiet, :
## cannot open URL 'https://api.github.com/repos/ProjectMOSAIC/mosaicCalc/tarball/beta'
drug_remaining <- function(dose,duration,time_constant) {
dose*exp(-duration/time_constant)
}