Skip to content

leibniz-psychology/FEARBASE-R-Package

Repository files navigation

FEARBASE-R-Package

Short description: < short description that explains what this repo is used for >

Product Owner < email >
Developer < email >
dev url < xxxxx >
prod url < xxxxx >
Language R
...
License

Further optional information

R packages used in feabse package

...

Development

Testing with a local OpenCPU server

You can test how any changes you make to the fearbase R package affect the deployment of the OpenCPU server by running an OpenCPU server locally.

Start the OpenCPU server

In the dev_local directory of this repository run:

docker compose up -d --build

Stop the OpenCPU server

docker compose down

Update the OpenCPU server

After making changes to the fearbase package. Simply run

docker compose up -d --build

again. If you don't see any changes it might be the browser caching an old state of the Docker container. In that case either delete your browser cache or open the OpenCPU API Explorer in a new private/icognito session.

Testing on the OpenCPU server

Open http://localhost/ocpu/ in your browser to access the OpenCPU API Explorer interface.

In the interface you can run any functions and access included data of the fearbase package by making requests in ../library/fearbase/. Check the OpenCPU API docs for information on how to use the OpenCPU API Explorer

Example Request

To run jsonSummary on the randomData enter:

  • Method: POST
  • Endpoint: ../library/fearbase/R/jsonSummary
  • Param Name: d
  • Param Value: "randomData"

To see the result of the analysis, pick one of the links in the response and run a get request on it:

  • Method: GET
  • Endpoint: /ocpu/tmp/<hash>/stdout

useful Links

Book on R Packages

https://r-pkgs.org/whole-game.html

R formatter

https://posit-dev.github.io/air/formatter.html In the interface you can run any functions and access included data of the fearbase package by making requests in ../library/fearbase/. Check the OpenCPU API docs for information on how to use the OpenCPU API Explorer

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors