-
Notifications
You must be signed in to change notification settings - Fork 351
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
e52e3b0
commit 6601570
Showing
64 changed files
with
6,828 additions
and
115 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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
.DS_Store | ||
node_modules/ | ||
.Rproj.user | ||
.Rhistory | ||
Robyn.Rproj | ||
node_modules/ |
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
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
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
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,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) |
This file was deleted.
Oops, something went wrong.
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,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. |
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,4 @@ | ||
^Robyn\.Rproj$ | ||
^\.Rproj\.user$ | ||
\.github$ | ||
^tests$ |
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,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 |
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,4 @@ | ||
.Rproj.user | ||
.Rhistory | ||
.RDS | ||
.DS_Store |
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,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 |
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,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. |
Oops, something went wrong.