Coder Social home page Coder Social logo

mstoolkit's People

Contributors

jluo0015 avatar mikeksmith avatar mikeksmith-pfizer avatar narayanan-iyer-pfizer avatar romainfrancois avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

mstoolkit's Issues

Consider `{withr}` package to help manage temporary files from tests, example code

Much of the code in examples and one or two test cases write and read from .csv files via generateData, analyzeData etc. We should use functionality in the {withr} package to manage these and clean up after use.

It might also be an option for setEctdDataMethod to use temp files (via {withr}) to store results, as opposed to having them in the working directory or internal memory.

FIX for CRAN - reduce CPU use in test cases

Forwarded message from CRAN


Dear maintainer,

your package MSToolkit does not comply with the CRAN policies:

In your tests, you make use of as many (virtual) CPU cores as available in the current machine, i.e. with 32 parallel processes in the unit tests for the most recent Windows check machine.

This does not make any sense and wastes CRAN resources (and for some other reasons cause that the package fails the Windows checks rather frequently).

Please follow the CRAN policies and do not use more than 2 processes!

We expect an update rather quickly. It took me quite soem time to investigate the problem since you are using some obfuscating unit check framework.

Best,
Uwe Ligges

Remove code dealing with NONMEM parsing

Code was introduced in MSToolkit v2 to parse NONMEM $PRED statements for use in defining the RESP function. I suggest removing this code - other tools are emerging which will enable users to translate PKPD and disease models into code for simulation (see simulx, PKPDSim, RxODE etc.). This would clean up the implementation of MSToolkit.

Remove or clean up Startup message

Startup message (onLoad) for MSToolkit is currently:

# MSToolkit package version 3.3.0 developed for Pfizer by Mango Solutions
# E-Mail: [email protected]`

I'd like to deprecate that message. At the very least it should pick up the version number from the DESCRIPTION file rather than hand-editted.

Provide as.ReplicateData function to facilitate integration with DDMoRe

The DDMoRe project aims to provide tools to facilitate interoperability of models and tasks across different target tools.

The Model Description Language (MDL) will provide a Design Object specifying the design to be used in simulation, and also the definition of the model to facilitate generation of response outcomes.

Suggest providing an as.ReplicateData function to enable generation of ReplicateData files. This could be achieved by converting DDMoRe Standard Output (SO) objects (generating by simulating outcome data from an MDL Model Object, Parameter Object and Design Object) into appropriate ReplicateData standard. This would allow MSToolkit users to use analyzeData(...) on ReplicateData generated via simulation in an arbitrary tool.

Change testcovariates.csv

I think the testthat/data/createCovariates/testCovariates.csv should have different values for each of the covariates i.e. X1, X2, X3 because we will likely want to test that we can sample each covariate independently e.g. sample from X1; sample from the three covariates X1, X2 and X3 retaining correlation structures; and sample whole subject covariate sets (X1, X2, X3) using ID as a stratification variable. So while I agree that we don't need 8 decimal places like in the original, maybe we just round those numbers to two decimal places?

FIX for CRAN - Use {parallel} for parallel processing

(May already be fixed, but let's double check)


R 2.14.0 (18 months ago) introduced package 'parallel', and using
doParallel will generally give your users (including the CRAN check
farm) a better experience that doSNOW. But your packages are still
using doSNOW (for MSToolkit in preference to doParallel, and for
diverSity oddly on Linux only!)

Can we please have versions with

Depends: R (>= 2.14)

and making use of doParallel rather than doSNOW.

Refactor to change from grid = TRUE/FALSE to ncpus for user to specify number of CPUs in `analyzeData`.

Back in 2006 when MSToolkit was developed, personal computers didn't generally have multiple cores available on the CPU, so we only implemented multiple CPU options if grid = TRUE.

Now we should change the option name to allow the user to specify a number of CPUs to use for analysis. For CRAN (see #18) we should set the default to 2. Or set default to an option called Ncpu (see Rdatatable/data.table#5658).

Should we assume that number of clusters = ncpus?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.