├── api
├── models
│ ├── .gitkeep
│ ├── Star.js
│ ├── Repository.js
│ ├── Argument.js
│ ├── Section.js
│ ├── Tag.js
│ ├── Percentile.js
│ ├── ApiToken.js
│ ├── TaskView.js
│ ├── ParsingJob.js
│ ├── Example.js
│ ├── Review.js
│ └── BiocDownloadStatistics.js
├── services
│ ├── .gitkeep
│ ├── FlashService.js
│ ├── CronService.js
│ ├── PackageVersionService.js
│ └── RedisService.js
├── controllers
│ ├── .gitkeep
│ ├── HomeController.js
│ ├── CampusController.js
│ └── AuthController.js
├── _apidoc.js
├── hooks
│ ├── aws
│ │ └── index.js
│ ├── elasticsearch
│ │ └── index.js
│ ├── worker
│ │ └── index.js
│ └── redis
│ │ └── index.js
├── policies
│ ├── flash.js
│ ├── sessionAuth.js
│ └── api_auth.js
└── responses
│ ├── rstudio_redirect.js
│ ├── ok.js
│ └── created.js
├── assets
├── images
│ ├── .gitkeep
│ ├── logo.png
│ ├── logo-dark.png
│ ├── placeholder.png
│ └── GitHub-Mark-32px.png
├── templates
│ └── .gitkeep
├── favicon.ico
├── sitemap
│ ├── sitemap-1.xml.gz
│ ├── sitemap-2.xml.gz
│ ├── sitemap-3.xml.gz
│ ├── sitemap-4.xml.gz
│ ├── sitemap-5.xml.gz
│ └── sitemapindex.xml.gz
├── styles
│ ├── application.scss
│ ├── pages
│ │ ├── _package-readme.scss
│ │ ├── _task-views.scss
│ │ ├── _error-page.scss
│ │ ├── _authentication.scss
│ │ ├── _user.scss
│ │ ├── _topic-header.scss
│ │ ├── _task-view-sidebar.scss
│ │ ├── _package-vignettes.scss
│ │ ├── _trends.scss
│ │ ├── _topic.scss
│ │ ├── _package.scss
│ │ ├── _package-source.scss
│ │ ├── _shared.scss
│ │ └── _examples.scss
│ ├── widgets
│ │ ├── _modal.scss
│ │ ├── _big-number.scss
│ │ ├── _loader.scss
│ │ └── mono-blue.css
│ ├── styleguide
│ │ └── partials
│ │ │ ├── _labels.scss
│ │ │ ├── _rstudio.scss
│ │ │ ├── _lists.scss
│ │ │ └── _tables.scss
│ └── jquery-ui
│ │ ├── tabs.scss
│ │ └── core.scss
├── robots.txt
├── js
│ ├── helpers
│ │ ├── toggle.js
│ │ ├── boot.js
│ │ └── list-table-filtering.js
│ ├── libs
│ │ ├── jquery.cookie-1.4.1.min.js
│ │ └── experiment.js
│ └── pages
│ │ ├── collaborator.js
│ │ └── user.js
└── css
│ └── bootstrap-treeview.css
├── migrations
├── sqls
│ ├── 20160621104843-task-views-down.sql
│ ├── 20160812141926-BiocDownloads-down.sql
│ ├── 20160821202039-stars-down.sql
│ ├── 20160612150901-package-type-down.sql
│ ├── 20160613085210-comments-down.sql
│ ├── 20160614083536-review-model-down.sql
│ ├── 20160626120528-token-table-down.sql
│ ├── 20160714100838-stringToText-down.sql
│ ├── 20160822080118-examples-down.sql
│ ├── 20160830084534-percentiles-down.sql
│ ├── 20170809222533-parsing-jobs-down.sql
│ ├── 20160609193515-title-allow-null-down.sql
│ ├── 20160714072116-downloads-per-day-down.sql
│ ├── 20170809033252-parser-version-down.sql
│ ├── 20160610094821-argument-description-down.sql
│ ├── 20160612162625-topic-add-sourceJSON-down.sql
│ ├── 20160624081405-download-statistics-down.sql
│ ├── 20160708081226-readme-in-versions-down.sql
│ ├── 20160711142622-splitted-downloads-down.sql
│ ├── 20160714102013-add-dependency-enum-down.sql
│ ├── 20160612161712-package-type-allow-null-down.sql
│ ├── 20160714113658-cascading-delete-of-sections-down.sql
│ ├── 20160610094821-argument-description-up.sql
│ ├── 20160612162625-topic-add-sourceJSON-up.sql
│ ├── 20160609193515-title-allow-null-up.sql
│ ├── 20170809033252-parser-version-up.sql
│ ├── 20160708081226-readme-in-versions-up.sql
│ ├── 20160612161712-package-type-allow-null-up.sql
│ ├── 20160714102013-add-dependency-enum-up.sql
│ ├── 20160711142622-splitted-downloads-up.sql
│ ├── 20160714100838-stringToText-up.sql
│ ├── 20160830084534-percentiles-up.sql
│ ├── 20160626120528-token-table-up.sql
│ ├── 20160613085210-comments-up.sql
│ ├── 20160624081405-download-statistics-up.sql
│ ├── 20160614083536-review-model-up.sql
│ ├── 20160714072116-downloads-per-day-up.sql
│ ├── 20160612150901-package-type-up.sql
│ ├── 20160821202039-stars-up.sql
│ ├── 20170809222533-parsing-jobs-up.sql
│ ├── 20160822080118-examples-up.sql
│ ├── 20160621104843-task-views-up.sql
│ ├── 20160812141926-BiocDownloads-up.sql
│ ├── 20160714113658-cascading-delete-of-sections-up.sql
│ └── 20160603105133-migration-name-down.sql
├── 20160626154713-unique-review.js
├── 20160607121610-indexAliases.js
├── 20160612100705-users.js
├── 20160821202039-stars.js
├── 20160822080118-examples.js
├── 20160621104843-task-views.js
├── 20160626120528-token-table.js
├── 20160614083536-review-model.js
├── 20160714100838-stringToText.js
├── 20160708081226-readme-in-versions.js
├── 20160624081405-download-statistics.js
├── 20160714102013-add-dependency-enum.js
├── 20160714113658-cascading-delete-of-sections.js
├── 20160613085210-comments.js
├── 20160830084534-percentiles.js
├── 20160603105133-initial.js
├── 20160612150901-package-type.js
├── 20160812141926-BiocDownloads.js
├── 20160609193515-title-allow-null.js
├── 20160711142622-splitted-downloads.js
├── 20160714072116-downloads-per-day.js
├── 20160610094821-argument-description.js
├── 20160612162625-topic-add-sourceJSON.js
├── 20160612161712-package-type-allow-null.js
├── 20170809222533-parsing-jobs.js
└── 20170809033252-parser-version.js
├── views
├── rstudio_layout.ejs
├── task_view
│ ├── index.ejs
│ ├── _sidebar.ejs
│ └── show.ejs
├── shared
│ ├── _loader.ejs
│ ├── _dc_footer.ejs
│ ├── _percentile.ejs
│ ├── _navigation.ejs
│ ├── _post_example.ejs
│ ├── _flash.ejs
│ ├── _footer.ejs
│ ├── _example.ejs
│ └── _snowplow.ejs
├── rStudio
│ ├── view.ejs
│ ├── update.ejs
│ ├── make_default.ejs
│ ├── list_options.ejs
│ ├── package_not_found.ejs
│ └── topic_not_found.ejs
├── campus
│ └── help.ejs
├── 404.ejs
├── 403.ejs
├── inner_layout.ejs
├── 500.ejs
├── package_version
│ ├── readme.ejs
│ ├── vignette.ejs
│ └── source.ejs
├── package
│ └── show.ejs
├── auth
│ ├── modalLogin.ejs
│ ├── login.ejs
│ └── register.ejs
├── user
│ └── show.ejs
├── topic
│ └── _header.ejs
├── badges
│ ├── version_badge.ejs
│ └── downloads_badge.ejs
└── search
│ ├── result.ejs
│ ├── function_results.ejs
│ ├── package_results.ejs
│ └── keyword_result.ejs
├── config
├── locales
│ ├── de.json
│ ├── en.json
│ ├── es.json
│ ├── fr.json
│ └── _README.md
├── redis.js
├── elasticsearch.js
├── bootstrap.js
├── env
│ ├── worker.js
│ ├── production.js
│ ├── staging.js
│ ├── docker.js
│ └── development.js
├── log.js
└── models.js
├── .dockerignore
├── apidoc.json
├── .sailsrc
├── .editorconfig
├── newrelic.js
├── .env.sample
├── tasks
├── config
│ ├── apidoc.js
│ ├── versioning.js
│ ├── clean.js
│ ├── uglify.js
│ ├── sails-tasks.js
│ ├── coffee.js
│ ├── watch.js
│ ├── cssmin.js
│ ├── sync.js
│ ├── concat.js
│ ├── sass.js
│ ├── copy.js
│ └── jst.js
└── register
│ ├── syncAssets.js
│ ├── compileAssets.js
│ ├── linkAssetsBuild.js
│ ├── linkAssetsBuildProd.js
│ ├── linkAssets.js
│ ├── prod.js
│ ├── default.js
│ ├── buildProd.js
│ └── build.js
├── docker-compose.yml
├── Procfile
├── catalog-info.yaml
├── cron.yaml
├── .ebextensions
└── 10docker.config
├── test
└── test-version-ordering.js
├── deploy_worker.sh
├── .eslintrc
├── Dockerfile
├── jake
└── sails-lifter.js
├── LICENSE.md
├── ecs.worker.json
├── Dockerrun.aws.json.in
├── database.json
├── app.js
└── ecs.json
/api/models/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/api/services/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/images/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/api/controllers/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/assets/templates/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/migrations/sqls/20160621104843-task-views-down.sql:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/migrations/sqls/20160812141926-BiocDownloads-down.sql:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/views/rstudio_layout.ejs:
--------------------------------------------------------------------------------
1 | <%- partial ('inner_layout.ejs') %>
2 |
--------------------------------------------------------------------------------
/migrations/sqls/20160821202039-stars-down.sql:
--------------------------------------------------------------------------------
1 | /* Replace with your SQL commands */
--------------------------------------------------------------------------------
/migrations/sqls/20160612150901-package-type-down.sql:
--------------------------------------------------------------------------------
1 | /* Replace with your SQL commands */
--------------------------------------------------------------------------------
/migrations/sqls/20160613085210-comments-down.sql:
--------------------------------------------------------------------------------
1 | /* Replace with your SQL commands */
--------------------------------------------------------------------------------
/migrations/sqls/20160614083536-review-model-down.sql:
--------------------------------------------------------------------------------
1 | /* Replace with your SQL commands */
--------------------------------------------------------------------------------
/migrations/sqls/20160626120528-token-table-down.sql:
--------------------------------------------------------------------------------
1 | /* Replace with your SQL commands */
--------------------------------------------------------------------------------
/migrations/sqls/20160714100838-stringToText-down.sql:
--------------------------------------------------------------------------------
1 | /* Replace with your SQL commands */
--------------------------------------------------------------------------------
/migrations/sqls/20160822080118-examples-down.sql:
--------------------------------------------------------------------------------
1 | /* Replace with your SQL commands */
--------------------------------------------------------------------------------
/migrations/sqls/20160830084534-percentiles-down.sql:
--------------------------------------------------------------------------------
1 | /* Replace with your SQL commands */
--------------------------------------------------------------------------------
/migrations/sqls/20170809222533-parsing-jobs-down.sql:
--------------------------------------------------------------------------------
1 | /* Replace with your SQL commands */
--------------------------------------------------------------------------------
/migrations/sqls/20160609193515-title-allow-null-down.sql:
--------------------------------------------------------------------------------
1 | /* Replace with your SQL commands */
--------------------------------------------------------------------------------
/migrations/sqls/20160714072116-downloads-per-day-down.sql:
--------------------------------------------------------------------------------
1 | /* Replace with your SQL commands */
--------------------------------------------------------------------------------
/migrations/sqls/20170809033252-parser-version-down.sql:
--------------------------------------------------------------------------------
1 | /* Replace with your SQL commands */
--------------------------------------------------------------------------------
/migrations/sqls/20160610094821-argument-description-down.sql:
--------------------------------------------------------------------------------
1 | /* Replace with your SQL commands */
--------------------------------------------------------------------------------
/migrations/sqls/20160612162625-topic-add-sourceJSON-down.sql:
--------------------------------------------------------------------------------
1 | /* Replace with your SQL commands */
--------------------------------------------------------------------------------
/migrations/sqls/20160624081405-download-statistics-down.sql:
--------------------------------------------------------------------------------
1 | /* Replace with your SQL commands */
--------------------------------------------------------------------------------
/migrations/sqls/20160708081226-readme-in-versions-down.sql:
--------------------------------------------------------------------------------
1 | /* Replace with your SQL commands */
--------------------------------------------------------------------------------
/migrations/sqls/20160711142622-splitted-downloads-down.sql:
--------------------------------------------------------------------------------
1 | /* Replace with your SQL commands */
--------------------------------------------------------------------------------
/migrations/sqls/20160714102013-add-dependency-enum-down.sql:
--------------------------------------------------------------------------------
1 | /* Replace with your SQL commands */
--------------------------------------------------------------------------------
/assets/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/datacamp/rdocumentation-app/HEAD/assets/favicon.ico
--------------------------------------------------------------------------------
/migrations/sqls/20160612161712-package-type-allow-null-down.sql:
--------------------------------------------------------------------------------
1 | /* Replace with your SQL commands */
--------------------------------------------------------------------------------
/assets/images/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/datacamp/rdocumentation-app/HEAD/assets/images/logo.png
--------------------------------------------------------------------------------
/config/locales/de.json:
--------------------------------------------------------------------------------
1 | {
2 | "Welcome": "Willkommen",
3 | "A brand new app.": "Eine neue App."
4 | }
5 |
--------------------------------------------------------------------------------
/config/locales/en.json:
--------------------------------------------------------------------------------
1 | {
2 | "Welcome": "Welcome",
3 | "A brand new app.": "A brand new app."
4 | }
5 |
--------------------------------------------------------------------------------
/migrations/sqls/20160714113658-cascading-delete-of-sections-down.sql:
--------------------------------------------------------------------------------
1 | /* Replace with your SQL commands */
--------------------------------------------------------------------------------
/assets/images/logo-dark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/datacamp/rdocumentation-app/HEAD/assets/images/logo-dark.png
--------------------------------------------------------------------------------
/config/locales/es.json:
--------------------------------------------------------------------------------
1 | {
2 | "Welcome": "Bienvenido",
3 | "A brand new app.": "Una nueva aplicación."
4 | }
5 |
--------------------------------------------------------------------------------
/.dockerignore:
--------------------------------------------------------------------------------
1 | .tmp/
2 | node_modules/
3 | .env
4 | .newrelic_agent.log
5 | Procfile
6 | docker-compose.yml
7 | err.log
8 |
--------------------------------------------------------------------------------
/assets/images/placeholder.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/datacamp/rdocumentation-app/HEAD/assets/images/placeholder.png
--------------------------------------------------------------------------------
/config/locales/fr.json:
--------------------------------------------------------------------------------
1 | {
2 | "Welcome": "Bienvenue",
3 | "A brand new app.": "Une toute nouvelle application."
4 | }
5 |
--------------------------------------------------------------------------------
/assets/sitemap/sitemap-1.xml.gz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/datacamp/rdocumentation-app/HEAD/assets/sitemap/sitemap-1.xml.gz
--------------------------------------------------------------------------------
/assets/sitemap/sitemap-2.xml.gz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/datacamp/rdocumentation-app/HEAD/assets/sitemap/sitemap-2.xml.gz
--------------------------------------------------------------------------------
/assets/sitemap/sitemap-3.xml.gz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/datacamp/rdocumentation-app/HEAD/assets/sitemap/sitemap-3.xml.gz
--------------------------------------------------------------------------------
/assets/sitemap/sitemap-4.xml.gz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/datacamp/rdocumentation-app/HEAD/assets/sitemap/sitemap-4.xml.gz
--------------------------------------------------------------------------------
/assets/sitemap/sitemap-5.xml.gz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/datacamp/rdocumentation-app/HEAD/assets/sitemap/sitemap-5.xml.gz
--------------------------------------------------------------------------------
/migrations/sqls/20160610094821-argument-description-up.sql:
--------------------------------------------------------------------------------
1 | ALTER TABLE `Arguments` MODIFY `description` TEXT DEFAULT NULL;
2 |
--------------------------------------------------------------------------------
/migrations/sqls/20160612162625-topic-add-sourceJSON-up.sql:
--------------------------------------------------------------------------------
1 | ALTER TABLE `Topics` ADD COLUMN `sourceJSON` TEXT DEFAULT NULL;
2 |
--------------------------------------------------------------------------------
/assets/images/GitHub-Mark-32px.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/datacamp/rdocumentation-app/HEAD/assets/images/GitHub-Mark-32px.png
--------------------------------------------------------------------------------
/assets/sitemap/sitemapindex.xml.gz:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/datacamp/rdocumentation-app/HEAD/assets/sitemap/sitemapindex.xml.gz
--------------------------------------------------------------------------------
/migrations/sqls/20160609193515-title-allow-null-up.sql:
--------------------------------------------------------------------------------
1 | ALTER TABLE `PackageVersions` MODIFY `title` varchar(255) DEFAULT NULL;
2 |
--------------------------------------------------------------------------------
/views/task_view/index.ejs:
--------------------------------------------------------------------------------
1 |
8 | You are using an outdated version of the RDocumentation package, to continue to use RDocumentation inside RStudio, please update your package. 9 |
10 |No versions for package <%- package.name %>
9 | 10 |
15 | 8 | The RDocumentation package enhances the normal R help function by searching in the online database instead of your local database, providing an easy way to install packages and execute the examples on function-pages and more. Making this package your default package will provide the help pages on RDocumentation when you are online, and will automatically fall back on the normal help function if you are offline. 9 |
10 || Name | 13 |Package | 14 |Description | 15 |
| <%= topic.function_name %> (alias:<%=topic.function_alias%>) | 22 |<%- topic.package_name %> | 23 |<%- topic.function_description%> | 24 |
| No Results! | ||
| Package | 14 |Description | 15 ||
| <%= package.name %> | 22 |<%-package.description%> | 23 ||
| No Results! | ||
<%= i18n('That\'s right-- you can use either i18n() or __()') %>
25 | ``` 26 | 27 | ## Configuration 28 | Localization/internationalization config can be found in `config/i18n.js`, from where you can set your supported locales. 29 | -------------------------------------------------------------------------------- /api/models/Example.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Example.js 3 | * 4 | * @description :: TODO: You might write a short summary of how this model works and what it represents here. 5 | * @docs :: http://sailsjs.org/documentation/concepts/models-and-orm/models 6 | */ 7 | 8 | module.exports = { 9 | 10 | attributes: { 11 | 12 | example: { 13 | type: Sequelize.TEXT, 14 | allowNull: false 15 | } 16 | 17 | }, 18 | 19 | associations: function() { 20 | 21 | Example.belongsTo(Topic, { 22 | foreignKey: 'topic_id', 23 | as: 'topic' 24 | }); 25 | 26 | Example.belongsTo(User, { 27 | foreignKey: 'user_id', 28 | as: 'user' 29 | }); 30 | }, 31 | 32 | 33 | options: { 34 | underscored: true, 35 | 36 | classMethods: { 37 | findPackageExamples: function(packageName, topic) { 38 | return Example.findAll({ 39 | include:[ 40 | { model: Topic, as: 'topic', where: { name: topic }, attributes:['package_version_id'], required:true, 41 | include: [{ model: PackageVersion, as: 'package_version', where: { package_name: packageName }, required: true }] 42 | }, 43 | { model: User, as: 'user', attributes: ['username'] } 44 | ], 45 | 46 | }); 47 | } 48 | } 49 | } 50 | }; 51 | 52 | -------------------------------------------------------------------------------- /views/badges/downloads_badge.ejs: -------------------------------------------------------------------------------- 1 | <% var downloadstats = data; %> 2 | -------------------------------------------------------------------------------- /tasks/config/copy.js: -------------------------------------------------------------------------------- 1 | /** 2 | * `copy` 3 | * 4 | * --------------------------------------------------------------- 5 | * 6 | * Copy files and/or folders from your `assets/` directory into 7 | * the web root (`.tmp/public`) so they can be served via HTTP, 8 | * and also for further pre-processing by other Grunt tasks. 9 | * 10 | * #### Normal usage (`sails lift`) 11 | * Copies all directories and files (except CoffeeScript and LESS) 12 | * from the `assets/` folder into the web root -- conventionally a 13 | * hidden directory located `.tmp/public`. 14 | * 15 | * #### Via the `build` tasklist (`sails www`) 16 | * Copies all directories and files from the .tmp/public directory into a www directory. 17 | * 18 | * For usage docs see: 19 | * https://github.com/gruntjs/grunt-contrib-copy 20 | * 21 | */ 22 | module.exports = function(grunt) { 23 | 24 | grunt.config.set('copy', { 25 | dev: { 26 | files: [{ 27 | expand: true, 28 | cwd: './assets', 29 | src: ['**/*.!(coffee|scss)'], 30 | dest: '.tmp/public' 31 | } 32 | ] 33 | }, 34 | build: { 35 | files: [{ 36 | expand: true, 37 | cwd: '.tmp/public', 38 | src: ['**/*'], 39 | dest: 'www' 40 | }] 41 | } 42 | }); 43 | 44 | grunt.loadNpmTasks('grunt-contrib-copy'); 45 | }; 46 | -------------------------------------------------------------------------------- /views/rStudio/topic_not_found.ejs: -------------------------------------------------------------------------------- 1 | <% var topics = data; %> 2 || Name | 14 |Package | 15 |Description | 16 |
| <%= topic.function_name %> (alias:<%=topic.function_alias%>) | 23 |<%- topic.package_name %> | 24 |<%- topic.function_description%> | 25 |
| No Results! | ||
<%- hit.title %>
15 |<%- hit.description %>
16 |<%- hit.description %>
18 |33 | data-package-name = '<%=user_examples[i].topic.package_version.package_name%>' 34 | <%}%> 35 | > 36 | <%= user_examples[i].example %> 37 |
38 |