Skip to content

Commit

Permalink
Deployment v3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
laresbernardo committed Sep 28, 2021
1 parent e52e3b0 commit 6601570
Show file tree
Hide file tree
Showing 64 changed files with 6,828 additions and 115 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.DS_Store
node_modules/
.Rproj.user
.Rhistory
Robyn.Rproj
node_modules/
8 changes: 1 addition & 7 deletions CHANGELOG.md → CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
# Copyright (c) Facebook, Inc. and its affiliates.

# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.


{\rtf1\ansi\ansicpg1252\cocoartf1671\cocoasubrtf600
{\fonttbl\f0\fswiss\fcharset0 Helvetica;}
{\colortbl;\red255\green255\blue255;}
Expand Down Expand Up @@ -31,4 +25,4 @@
\
### React DOM\
\
* Fix a regression in unstable exports used by React Native Web. ([@aweary](https://github.com/aweary) in [#13598](https://github.com/facebook/react/issues/13598))}
* Fix a regression in unstable exports used by React Native Web. ([@aweary](https://github.com/aweary) in [#13598](https://github.com/facebook/react/issues/13598))}
5 changes: 0 additions & 5 deletions CODE_OF_CONDUCT.md → CODE_OF_CONDUCT
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
Copyright (c) Facebook, Inc. and its affiliates.

This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.

# Code of Conduct

## Our Pledge
Expand Down
11 changes: 3 additions & 8 deletions CONTRIBUTING.md → CONTRIBUTING
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
Copyright (c) Facebook, Inc. and its affiliates.

This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.

# Contributing to FB Project Robyn
# Contributing to FB NextGen MMM R script

We want to make contributing to this project as easy and transparent as
possible.
Expand All @@ -21,7 +16,7 @@ geographic hierarchies are the next features to come.

We actively welcome your pull requests.

1. Fork the repo and create your branch from `main`.
1. Fork the repo and create your branch from `master`.
2. If you've added code that should be tested, add tests.
3. If you've changed APIs, update the documentation.
4. Ensure the test suite passes.
Expand Down Expand Up @@ -51,6 +46,6 @@ outlined on that page and do not file a public issue.

## License

By contributing to FB Project Robyn script, you agree that your contributions
By contributing to FB NextGen MMM R script, you agree that your contributions
will be licensed under the LICENSE file in the root directory of this source
tree.
28 changes: 28 additions & 0 deletions ISSUE_TEMPLATE
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{\rtf1\ansi\ansicpg1252\cocoartf1671\cocoasubrtf600
{\fonttbl\f0\fmodern\fcharset0 Courier;}
{\colortbl;\red255\green255\blue255;\red42\green44\blue51;\red249\green249\blue249;\red42\green44\blue51;
\red249\green249\blue249;}
{\*\expandedcolortbl;;\cssrgb\c21961\c22745\c25882;\cssrgb\c98039\c98039\c98039;\cssrgb\c21961\c22745\c25882;
\cssrgb\c98039\c98039\c98039;}
\margl1440\margr1440\vieww10800\viewh8400\viewkind0
\deftab720
\pard\pardeftab720\sl340\partightenfactor0

\f0\fs30 \cf2 \cb3 \expnd0\expndtw0\kerning0
\outl0\strokewidth0 \strokec2 # Contributing to FB NextGen MMM R script\


# Issue
A summary of what the issue is about.

# Steps to Reproduce
Please provide instructions that can be used to reproduce your issue. Usually this will include a test case that produces the wrong output.

# Expected Behavior
What you expected to happen. For example the error message you expected to see.

# Actual Results
What actually happened. For example, an error message you did not expect to see.

# Environment
R version (R --version)
20 changes: 0 additions & 20 deletions LICENSE.md

This file was deleted.

33 changes: 33 additions & 0 deletions PULL_REQUEST_TEMPLATE
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{\rtf1\ansi\ansicpg1252\cocoartf1671\cocoasubrtf600
{\fonttbl\f0\fmodern\fcharset0 Courier;}
{\colortbl;\red255\green255\blue255;\red42\green44\blue51;\red249\green249\blue249;\red42\green44\blue51;
\red249\green249\blue249;}
{\*\expandedcolortbl;;\cssrgb\c21961\c22745\c25882;\cssrgb\c98039\c98039\c98039;\cssrgb\c21961\c22745\c25882;
\cssrgb\c98039\c98039\c98039;}
\margl1440\margr1440\vieww10800\viewh8400\viewkind0
\deftab720
\pard\pardeftab720\sl340\partightenfactor0

\f0\fs30 \cf2 \cb3 \expnd0\expndtw0\kerning0
\outl0\strokewidth0 \strokec2 # Contributing to FB NextGen MMM R script\


Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context.

Fixes # (issue)

# Type of change
* Bug fix (non-breaking change which fixes an issue)
* New feature (non-breaking change which adds functionality)
* Breaking change (fix or feature that would cause existing functionality to not work as expected)
* API change with a documentation update
* Additional test coverage
* Code cleanup or just keeping up with the latest Rustc nightly

# How Has This Been Tested?
Checklist:
* Fork the repo and create your branch from master.
* If you've added code that should be tested, add tests.
* If you've changed APIs, update the documentation.
* Ensure the test suite passes.
* Make sure your code lints.
4 changes: 4 additions & 0 deletions R/.Rbuildignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
^Robyn\.Rproj$
^\.Rproj\.user$
\.github$
^tests$
96 changes: 96 additions & 0 deletions R/.github/workflows/R-CMD.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
# For help debugging build failures open an issue on the RStudio community with the 'github-actions' tag.
# https://community.rstudio.com/new-topic?category=Package%20development&tags=github-actions
on:
push:
branches:
#- main
#- master
- package
pull_request:
branches:
#- main
#- master
- package

name: R-CMD-check

jobs:
R-CMD-check:
runs-on: ${{ matrix.config.os }}

name: ${{ matrix.config.os }} (${{ matrix.config.r }})

strategy:
fail-fast: false
matrix:
config:
- {os: windows-latest, r: 'release'}
- {os: macOS-latest, r: 'release'}
- {os: ubuntu-20.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/focal/latest"}

env:
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
_R_CHECK_FORCE_SUGGESTS_: false
_R_CHECK_dontrun_EXAMPLES_: false
RSPM: ${{ matrix.config.rspm }}
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}

steps:
- uses: actions/checkout@v2

- uses: r-lib/actions/setup-r@v1
with:
r-version: ${{ matrix.config.r }}

- uses: r-lib/actions/setup-pandoc@v1

- name: Query dependencies
run: |
install.packages('remotes')
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
shell: Rscript {0}

- name: Cache R packages
if: runner.os != 'Windows'
uses: actions/cache@v2
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-

- name: Install system dependencies
if: runner.os == 'Linux'
run: |
while read -r cmd
do
eval sudo $cmd
done < <(Rscript -e 'writeLines(remotes::system_requirements("ubuntu", "20.04"))')
- name: Install dependencies
run: |
remotes::install_deps(dependencies = TRUE)
remotes::install_cran("rcmdcheck")
shell: Rscript {0}

- name: Install Miniconda
run: |
Rscript -e "remotes::install_github('rstudio/reticulate')"
Rscript -e "reticulate::install_miniconda()"
- name: Check
env:
_R_CHECK_CRAN_INCOMING_REMOTE_: false
run: rcmdcheck::rcmdcheck(
args = c("--no-manual", "--as-cran", "--ignore-vignettes"),
build_args = c('--no-build-vignettes'),
error_on = "warning",
check_dir = "check")
shell: Rscript {0}

- name: Upload check results
if: failure()
uses: actions/upload-artifact@master
with:
name: ${{ runner.os }}-r${{ matrix.config.r }}-results
path: check
4 changes: 4 additions & 0 deletions R/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.Rproj.user
.Rhistory
.RDS
.DS_Store
46 changes: 46 additions & 0 deletions R/DESCRIPTION
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
Package: Robyn
Type: Package
Title: Automated Marketing Mix Modeling (MMM) Open Source Beta Project from Facebook Marketing Science
Version: 3.0.0
Authors@R: c(
person("Gufeng", "Zhou", , "[email protected]", c("aut")),
person("Leonel", "Sentana", , "[email protected]", c("aut")),
person("Antonio", "Prada", , "[email protected]", c("aut")),
person("Igor", "Skokan", , "[email protected]", c("aut")),
person("Bernardo", "Lares", , "[email protected]", c("cre")))
Maintainer: Bernardo Lares <[email protected]>
Description: Automated Marketing Mix Modeling (MMM) package that aims to reduce human bias by means of ridge regression and evolutionary algorithms, enables actionable decision making providing a budget allocator and diminishing returns curves and allows ground-truth calibration to account for causation.
Depends:
R (>= 3.5)
Imports:
data.table,
doParallel,
doFuture,
doRNG,
foreach,
future,
ggplot2,
glmnet,
lubridate,
minpack.lm,
nloptr,
patchwork,
prophet,
reticulate,
rPref,
stringr
Suggests:
shiny
Config/reticulate:
list(
packages = list(
list(package = "nevergrad", pip = TRUE)
)
)
URL: https://github.com/facebookexperimental/Robyn, https://facebookexperimental.github.io/Robyn/
BugReports: https://github.com/facebookexperimental/Robyn/issues
RoxygenNote: 7.1.1
License: MIT + file LICENSE
Encoding: UTF-8
LazyData: true
Config/testthat/edition: 3
27 changes: 27 additions & 0 deletions R/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
YEAR: 2021-present
COPYRIGHT HOLDER: Facebook, Inc. and its affiliates

and specify as

License: MIT + file LICENSE

Copyright (c) <YEAR>, <COPYRIGHT HOLDER>

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Loading

0 comments on commit 6601570

Please sign in to comment.