Sign inSign up

kamermanpr/gabapentinoids

By kamermanpr

Updated almost 4 years ago

R environment required to analyse: https://github.com/kamermanpr/gabapentinoids

Image
0

109

kamermanpr/gabapentinoids repository overview

R environment required to analyse: https://github.com/kamermanpr/gabapentinoids.

The analysis models the prescription behaviour of general practitioners in England for gabapentinoids (gabapentin and pregabalin) from April 2017 to March 2021, two years on either side of the rescheduling of gabapentinoids as schedule 3 drugs in April 2019.

Using Docker to run the scripts

You need to have docker installed on your computer. To do so, go to docker.com and follow the instructions for installing Docker for your operating system. Once Docker has been installed, follow the steps below, noting that Docker commands are entered in a terminal window (Linux and OSX/macOS) or command prompt window (Windows).

Download the latest image for this analysis

Enter: docker pull kamermanpr/gabapentinoids:v1.1

Run the container

Enter: docker run --name pain -d -p 8787:8787 -e USER=user -e PASSWORD=password kamermanpr/gabapentinoids:v1.1

Login to RStudio Server
  • Open a web browser window and navigate to: localhost:8787

  • Use the following login credentials:

    • Username: user
    • Password: password
Upload repository
  • Go to the gabapentinoids repository on GitHub and select Code and then Download ZIP.

  • In the Files tab on the lower right panel of RStudio, click Upload, located the zip file you downloaded and the click OK. The zip file will be uploaded and will automatically unzip, giving you access to all the content, including the analysis scripts, for the project.

  • In the Files tab, double-click the gabapentinoids.Rproj file to ensure all the working directories are in order before running any of the scripts.

  • Open the individual R scripts and run them.

Shutting down

Once done, log out of RStudio Server and enter the following into a terminal to stop the docker container: docker stop pain. If you then want to remove the container, enter: docker rm pain. If you also want to remove the docker image you downloaded, enter: docker rmi kamermanpr/gabapentinoids:v1.1

Tag summary

Content type

Image

Digest

sha256:c91c66357

Size

1.4 GB

Last updated

almost 4 years ago

docker pull kamermanpr/gabapentinoids:v1.1