Coder Social home page Coder Social logo

wearalyze's Introduction

Wearalyze Rhino logo

Analyze data from commonly used wearables: transparent, fast and without any data storage

About

Wearalyze is a Shiny app that supports patients, clinicians and researchers in the analysis of data from commonly used wearables. It is designed to be transparent, fast and without any data storage.

⚠️ Wearalyze is currently in development and not yet ready for use.

Running the app

This app is a Rhino project 🦏. Rhino makes use of renv to manage the project dependencies.

If you pull the project from GitHub, renv will automatically be downloaded and installed.

If everything is ok, the output will look as follows:

# Bootstrapping renv 1.0.2 ---------------------------------------------------
- Downloading renv ... OK
- Installing renv  ... OK

- Project '~/Documents/Hypebright BV/lab/wearalyze_test' loaded. [renv 1.0.2]
- One or more packages recorded in the lockfile are not installed.
- Use `renv::status()` for more details.

Once that's done, you can run the following code to install the required wearalyze R dependencies:

renv::restore()

R dependencies will be installed with install.packages().

After that (this can take some time!), you can run the app by executing the following code:

runApp()

Or alternatively, you can head over to the app.R file and click the "Run App" button in RStudio.

For developers

Using renv

Since this project is using renv to manage project dependencies, it is required to snapshot the project library after installing new packages. This can be done by running renv::snapshot() which will make changes to the renv.lock file. Make sure that the dependencies are recorded in the dependencies.R file!

wearalyze's People

Contributors

hypebright avatar pcdlf avatar selin99 avatar

Watchers

 avatar

wearalyze's Issues

Issue downloading rprojroot package after using renv :: restore ()

When I open the wearalyze.Rproj and run renv :: restore () the packages download but failes when it reaches “rprojroot”. The error looks like this:
- Installing rprojroot ... FAILED
Error in if (cond) return(expr) : the condition has length > 1
In addition: Warning message:
In system2(R(), args, stdout = TRUE, stderr = TRUE) :
running command ''/Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/bin/R' CMD config CC 2>&1' had status 1

After this, I also get an error when running the app and trying to install Rhino. With both I get the same error:
- Installing digest ... FAILED
Traceback (most recent calls last):
15: .rs.sourceWithProgress(script = "/var/folders/hg/3h5_xg5s50502dz2c8vll47c0000gn/T/d657-6e07-ce09-cbaa",
encoding = "UTF-8", con = stdout(), importRdata = NULL, exportRdata = NULL)
14: eval(statements[[idx]], envir = globalenv())
13: eval(statements[[idx]], envir = globalenv())
12: renv::install("digest")
11: renv_install_impl(records)
10: renv_install_staged(records)
9: renv_install_default(records)
8: handler(package, renv_install_package(record))
7: renv_install_package(record)
6: withCallingHandlers(renv_install_package_impl(record), error = function(e) writef("FAILED"))
5: renv_install_package_impl(record)
4: r_cmd_install(package, path)
3: renv_scope_install()
2: renv_scope_install_macos(scope)
1: case(matches("/usr/bin/clang") ~ TRUE, matches("clang") ~ Sys.which("clang") ==
"/usr/bin/clang", FALSE)
Error in if (cond) return(expr) : the condition has length > 1
Calls: .rs.sourceWithProgress ... renv_scope_install -> renv_scope_install_macos -> case
In addition: Warning message:
In system2(R(), args, stdout = TRUE, stderr = TRUE) :
running command ''/Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/bin/R' CMD config CC 2>&1' had status 1
Execution halted

I’m not sure how to troubleshoot this…

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.