-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dfbb7f0
commit 7dda053
Showing
2 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
If you're looking to load COBOL data files into the R Project for Statistical Computing then you came to the right place. | ||
|
||
In this video we will demonstrate the open-source R COBOL Data Integration package running in Docker. | ||
|
||
The Dockerfile in this example is based on Rocker / RStudio and will be running locally on port 8787. | ||
|
||
Step 1.) Build the image (this can take up to 20 minutes). | ||
|
||
docker build -t rcoboldi/rocker-rstudio:1.0.1 https://raw.githubusercontent.com/thospfuller/rcoboldi/master/docker/rocker/rstudio/Dockerfile | ||
|
||
[some image id] | ||
|
||
![Build the Docker image from the R COBOL Data Integration package Dockerfile."](https://github.com/thospfuller/rcoboldi/tree/master/images/RCOBOLDI_StepOneBuildDockerImage.png "Build the Docker image from the R COBOL Data Integration package Dockerfile.") | ||
|
||
Step 2.) Launch a container based on this image. | ||
|
||
docker run -d -p 8787:8787 -e PASSWORD=password --name rstudio -i -t [some image id] | ||
|
||
[some container id] | ||
|
||
Step 3.) Browse to http://localhost:8787 and enter the username & password combination rstudio & password. | ||
|
||
The next three steps appear in the video. | ||
|
||
Step 4.) library(RCOBOLDI) | ||
|
||
Step 5.) RCOBOLDI::Initialize() | ||
|
||
Step 6.) result <- RCOBOLDI::ReadCopyBookAsDataFrame("DTAR020.cbl", "DTAR020.bin", "Fixed Length Binary", "cp037") | ||
|
||
Step 7.) head(result) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.