Changelog
Source:NEWS.md
g6tr 2.1.6
-
g6tr_use_pr_packages()updated to userenv::install()instead ofremotes::install_github()in order to cache installation properly.
g6tr 2.1.5
- Added new project templates
000_libraries.Rmd,001_project.Rmd, and the placeholder901_crunch_crosstabs.Rmd. - Updated
conflicted.Rtemplate to run quietly and added commong6tr.crunchconflict preferences. -
g6tr_setup()now creates a minimal.Rprojwhen RStudio APIs are unavailable and only opens projects when supported. -
g6tr_project_continue()now warns whenrenv.lockincludes GitHub-sourced packages after the renv check. -
g6tr_use_pr_packages()added to install packages from GitHub PR
g6tr 2.1.3
- g6tr_session_get_main_repo() added fallback for when utils::osVersion is not available. This is in particular the case for R Server sessions in VS Code.
g6tr 2.1.2
- Updating RSPM and STAN repos in
g6tr_session().
g6tr 2.1.1
- Handle the case in
gitconflict_renv_lock_resolve()when at least on of the Bioconductor versions is missing.
g6tr 2.1.0
- Removed mlogit version requirement from DESCRIPTION template.
- Removed 101_read_data.Rmd script to align with stand-alone script policy.
- Added note about shortcut assignment capability for
g6tr_project_continue(). - Updated conflicted template with commonly used entries from all projects.
- knitr option
eval = FALSEis now forced over all child chunks in the main project Rmd so there’s no need to specify it in each child Rmd.
g6tr 2.0.4
- Added a new Project Continue addin, allowing users to map
g6tr_project_continue()to a shortcut.
g6tr 2.0.3
- New
gitconflict_renv_lock_resolve()to resolve conflicts in renv.lock files after merging two branches of an analysis project.
g6tr 2.0.2
- Updated g6tr cran link to https instead of http in
g6tr_session().
g6tr 2.0.1
- Main Rmd of a project is now correctly populated with relative path to the project folder instead of full path.
- Removed chunk names from crunch Rmd templates.
g6tr 2.0.0
Big cleanup
- Removed
cloud_*functions and addedcloudfsas a default project import. - In
g6tr_project_continue(),resolve_conflictsstep now happens before libraries are loaded. - Removed a legacy dataset example –
ds_chakra_expl. - Removed old unused functions and datasets:
g6tr_install_*()g6tr_library()verify_*()instance_config_*()g6tr_find_replace()g6tr_rmd_report()
- Removed unused files in the package “inst” directory.
- Removed no longer relevant vignettes.
- Removed “dev” directory.
- Cleaned up package dependencies.
Most of the removed legacy items can still be found in the new g6t/code-dump repo.
g6tr 1.1.12
- Updated
100_prepare_data.Rmdtemplate to account for open-ends data cleaning. - Generalized
100_prepare_data.Rmdand101_read_data.Rmdfiles.
g6tr 1.1.10
- Removed AWS variables from the list of required environment variables in
g6tr_session().
g6tr 1.1.9
- Added
aws.ec2metadatapackage to the Depends field of the standard project DESCRIPTION. This package is needed foraws.s3functions to automatically capture AWS credentials from the instance role. - Suppress prompt for
renv::install()step during new project setup.
g6tr 1.1.8
- Removed automatic column resizing for all spreadsheets uploaded with
cloud_drive_*()functions. - New
cloud_drive_spreadsheet_autofit()function to auto-resize columns after uploading.
g6tr 1.1.7
- Updated
100_read_data.Rmdtemplate to account for open-ends data cleaning. - Changed
100_read_data.Rmd->100_prepare_data.Rmd. - Changed
101_prep_data.Rmd->101_read_data.Rmd.
g6tr 1.1.6
- New
renv_install_missing()function to install packages listed in the renv.lock file but absent from the project-specific library. Helpful when using RStudio Job Launcher.
g6tr 1.1.5
- Added a check to
g6tr_session_git()to prevent Workbench jobs from reinitializing git credentials. - In
g6tr_project_continue()renv prompt by default is displayed only in interactive mode. That is, default value forrenv_promptisinteractive().
g6tr 1.1.4
- Create a Crunch template for the new Qualtrics -> Crunch integration.
- Removed
g6tr_populate()function.
g6tr 1.1.1
- Made
g6tr_session()truly silent whenverbose = FALSE.
g6tr 1.1.0
-
g6tr_setup()refactored to detect potential problems with sub-steps that cause side effects as early as possible. -
g6tr_newsletter_setup()was moved fromg6tr.api. This function was simplified:- it no longer creates surveys on Qualtrics
- instead of
nameandtitleparameters it now has oneeditionparameter, name and title are derived automatically from the survey edition
g6tr 1.0.6
cloud functions
- Excel files are now automatically post-processed when uploaded to Google Drive. This means that excel file will be converted to Google Sheets native mime type and all columns will be resized to fit the data.
- Google drive functions now use a more strict internal
drive_download()implementation which keeps original file extension intact. -
cloud_s3_ls()output is no longer limited to 1000 items.
Other updates
- Rewritten all
usethis::ui_console messages withclifunction. - Replaced all
progressprogress bars withclialternative. - Suppressed
g6tr_session()messages in non-interactive mode in project .Rprofile template.
g6tr 1.0.5
- New function
g6tr_session()to execute all our standard R session setup. -
g6tr_project_continue()conflicts are now resolved from a project-level file. Added a corresponding template with our defaultconflictedsetup.
g6tr 1.0.4
-
g6tr_clone_monorepo(): fixed a bug with cli notification.
g6tr 1.0.2
g6tr_build_pkgd_package() updates
- For all packages but
g6trlinks in package navbar menu now get updated to one level up. This allows to use relative links in the main pkgdown.yml instead of full ones - which point directly to “https://docs.gradientmetrics.com/”. This makes review of netlify deploy previews more convenient. -
repo$url$sourcefield containing the path to package source files is now correctly set up for each individual package. - Before building a package site, working directory is changed to the package root. This is workaround to make
pkgdownproduce correct source links for vignettes.
g6tr 1.0.0
Updates connected with transitioning to RStudio Workbench
g6tr_project_continue()
This function was significantly reworked. It now has 4 clearly defined sub-steps:
renv prompt Will run
renv::status()and if project library is not synchronized with renv.lock file, will show a prompt to choose eitherrenv::snapshot()orrenv::restore(), or just skip.attach packages Will attach all the packages listed in project’s DESCRIPTION file.
resolve conflicts Will load the
conflictedlibrary and resolve a set of locally defined conflicts.source r Will source all scripts located in the “R” subfolder of the project folder.
Each of the steps can be turned off by switching the corresponding parameter.
Cloning g6tr monorepo
With our approach of spinning up a new ec-2 machine for each project we’ve got used to the fact that we can have multiple concurrently working sessions set to different git branches. To have similar luxury without launching multiple machines you’ll need to have multiple copies of the repository. So we’ve created a helper function to aid with this.
g6tr_clone_monorepo()- creates a clone of the g6tr monorepo. Uses an on-server repository copy to speed up the process of cloning.We’ve also created an RStudio project template for this. To use it, go to New Project -> New Directory and select “G6TR Monorepo” template.
g6tr 0.7.2
- Use
g6tr.dev::check_g6tr_cran_for_new_version()on package startup. - Move
g6tr_package_setup()to the newg6tr.devpackage.
g6tr 0.7.1
-
g6tr_setup(): New projects are now added at the top of the _pkgdown.yml file.
g6tr 0.7.0
Introduced a set of new functions for working with S3 and Google Drive files
cloud_s3_attach()/cloud_drive_attach()- connects a project with a dedicated place on S3/Google Drive and stores its location in DESCRIPTION file.cloud_s3_browse()/cloud_drive_browse()- open project’s S3/Google Drive folder in internet browser.cloud_s3_ls()/cloud_drive_ls()- list contents of S3/Google Drive folder in console.cloud_s3_upload(),cloud_s3_download()/cloud_drive_upload(),cloud_drive_download()- upload/download files to/from S3/Google Drive.cloud_s3_write(),cloud_s3_read()/cloud_drive_write(),cloud_drive_read()- write/read R objects to/from S3/Google Drive.cloud_s3_download_bulk()/cloud_drive_download_bulk()- download multiple files at once.cloud_s3_read_bulk()/cloud_drive_read_bulk()- read multiple files at once.
Other updates:
- Fixed
g6tr_setup()not initializing RStudio project whenopen_project=FALSEandrenv=FALSE.
g6tr 0.6.8
- A set of functions to store invidual instance configurations on S3:
instance_config_push(),instance_config_pull()and more.
g6tr 0.6.7
-
g6tr_project_continue()no longer rebuilds project’s base package.
g6tr 0.6.6
Updates to project templates: * .Rprofile no longer does renv::restore("g6tr") automatically if g6tr is not available. Instead a guidance on how to install it is displayed. * 001_libraries.Rmd - updated the call to g6tr_use_packages(): replaced tidyverse with an explicit list of packages. tidyverse may sometimes cause problems with installation.
g6tr 0.6.3
- fixed g6tr namespace unloading in
g6tr_setup() - cosmetic fixes
g6tr 0.6.0
Updates to projects created with g6tr_setup()
- A new project folder is now initiated with a .Rproj and .Rprofile files. This project is automatically opened.
-
g6trpackage is loaded on project startup - Project folder contains a DESRIPTION file. The only relevant field is Imports. It contains the list of packages that are directly used in the project. Previously this list was stored in the
packagesvariable. - removed
g6tr_project_start() -
g6tr_project_continue()restores library from renv.lock, reads Renviron, builds and documents base package (g6tr.projects or g6tr.voice), resolves conflicts viaconflictedand loads projects packages specified in DESCRIPTION
In this regard a set of helper functions is introduced:
-
g6tr_use_packages()loads specified packages and adds them to DESCRIPTION. -
g6tr_get_packages()gets the list of packages from DESCRIPTION. -
g6tr_edit_packages()opens DESCRIPTION in case you want to edit it manually.
Renv setup is reworked:
- renv now only tracks packages listed DESCRIPTION and their recursive dependencies.
- renv is automatically loaded when the project is opened (as it usually happens in RStudio projects initiated with renv).
Functions to manage pgkdown builds
New pkgdown setup is experimental and is still in development. The approach that we aim for is to keep all documentation on github, most likely in an isolated branch. To facilitate this the following functions were developed:
g6tr_build_pkgd_package()builds site for a package. The main package (g6tr) documentation is built into the root ofpackages/documentationdirectory. Documentation for all the other packages is build into corresponding subdirectories. Global level pkgdown yaml setup is read frompkgdown/pkgdown.yaml(path relative to the monorepo root). css configuration is taken frompkgdown/extra.css. All the package-individual pkgdown files ideally should contain onlynavbar:components:articles:andreferencecomponents. Prior to building pkgdown, this function rebuilds package’sREADME.Rmdin case if it’s newer than the corresponding md output.g6tr_build_pkgd_all()builds sites for all the packages.
Other new functions
-
g6tr_here()to find files relative to g6tr monorepo root. E.g.g6tr_here(".Renviron")finds (i.e. returns full path to) the root-level .Renviron independently of the current working directory.
g6tr 0.5.7
- updated
g6tr_package_setupnow uses separate.Rmdfiles fornewsletterprojects..Rmdchunks containing variables used to set folder names and survey id are added to the top of each.Rmdfiles.
g6tr 0.5.6
-
g6tr_package_setupnow correctly creates dir structure and addsNAMESPACE, template forREADME.Rmdand updatedDESCRIPTION
g6tr 0.5.5
- Updating the
000_libraries.Rscript for projects and creating an easier workflow withg6tr_project_startg6tr_project_continue
g6tr 0.5.3
- created
g6tr_package_setup()that creates a bare bone package setup for a new R package, as explained here - use
gitcredspackage ing6tr_setup()to ask for github credentials if none was found
g6tr 0.5.2
-
g6tr_prune_git()created to remove unneeded branches from local or remote git.
g6tr 0.5.0
- changed
renv::hydrate()torenv::restore()in default000_libraries.Rmdfile for new packages so that it is possible to userenv::paths$cache()
g6tr 0.4.21
- g6tr startup local version verification was extended since the internal CRAN allows to install old versions of packages now.
g6tr 0.4.20
- extend
g6tr_setup()so that is sets working directories for your project in 001_libraries.Rmd depending on whether you are using the ‘Show output inline for rmarkdown documents’ option or not - update the template of
000_libraries.Rmdforg6tr_setup() - removed the step that verified whether provided list of packages in
g6tr_libraryexist in out docker images, since it was obsolete.
g6tr 0.4.19
- g6tr on startup verifies whether the local package version is up to date with the one on the internal CRAN.
g6tr 0.4.18
- Provided proper directory specification in packages/g6tr.projects/pkgdown/_pkgdown.yml when using
g6tr_setup() - Fixed Roxygen2 tag in
g6tr_find_replace()
g6tr 0.4.15
- fix in g6tr_library()
- removed bioc variable that is unneeded after BiocManager was removed
g6tr 0.4.14
- removed tidyverse, rlang, tidyr, purrr and BiocManager from package dependencies
- removed option to install packages from Bioconductor with g6tr_library
- to much dependencies and rarely ever used functionality
- moved dummify_factors, fct_case_when and g6tr_join and g6tr_spread functions to g6tr.misc
g6tr 0.4.13
- g6tr_setup()
- Update vignette building in g6tr.voice and g6tr.projects
- Added automatic pkgdown entry
g6tr 0.4.11
- g6tr_update() was split into
- g6tr_install_cran()
- g6tr_install_local()
- g6tr_install_github()
- g6tr_library()
- by default uses INSTALL_opts set to “–no-multiarch” on install.packages
- fixed R CMD CHECKS
g6tr 0.4.9
- g6tr_populate() also extracts files from g6tr.voice
- g6tr_setup is used natively by g6tr.newsletter::g6tr_newsletter_setup
g6tr 0.4.8
- g6tr_populate() was added to pull functions, manual pages and tests from new g6tr.projects to software package
g6tr 0.4.7
- g6tr_setup() by default uses packages structure
- packages structure was refreshed/updated to meet current standards
g6tr 0.4.5
-
dummify_factorsadded to convert all categorical variables into dummy / indicator variables
g6tr 0.4.4
-
fct_case_when()added to factorize a case_when statement. -
inst/markdown_templates/checksupdated and extended. Should make it easier to follow and check our data and analyses.
g6tr 0.4.0
- Split of the package into smaller packages was made.
-
g6tr - Base package with operational features.
- Functions that were left:
- g6tr_setup
- g6tr_library
- g6tr_update
- g6tr_rmd_report
- g6tr_as_numeric
- gather_in_order
- spread_in_order
- left_join_bigger_n
- left_join_same_n
- verify_*
- Functions that were left:
- g6tr.analytics - Full suite of analytical tools we use at Gradient.
- g6tr.ec2 - Tools to launch a Gradient Amazon EC2 instance with your preferences.
- g6tr.newsletter - Tools to launch an automated survey through Dynata & Qualtrics API.
- g6tr.survey - Collection of functions to help clean or analyze survey data.
- g6tr.theme - Collection of functions to create Gradient themed ggplot2 graphics.
- g6tr.tm - Collection of functions related to Text Mining or NLP analy
-
g6tr.verse - A package similar to the
tidyversein the sense that it loads all our packages.
-
g6tr - Base package with operational features.
g6tr 0.3.21
- Qualtrics
- qlt_get_quotas() was added
- dynata_events() was updated
- AWS EC2
- fixed g6tr_ec2_start()
g6tr 0.3.19
- dynata API functions were added
- dynata_project_invoice()
- dynata_project_pause()
- dynata_project_resume()
- dynata_project_report() was updated to use detailedReport endpoint instead of depracated report endpoint
- dynata_create_yml_template() cretes proper surveyURL appendix
g6tr 0.3.18
- text mining updates CODE-471
- updated vginette
- reorder_within(), scale_x_reordered() and scale_y_reordered() were added as minor plot helpers
- tm_clean_text() and tm_wordcloud() were updated
- tm_network() and tm_network_plot() were added
- tm_visualize_ngrams() was renamed to tm_ngrams_plot()
- tm_tf_idf() and tm_tf_idf_plot() were added
g6tr 0.3.17
- new functions for dynata newsletter setup RES-88
- dynata_newsletter_setup()
- dynata_create_yml_template()
- dynata_list_to_attribute()
- dynata_create_json_config()
g6tr 0.3.15
- g6tr_ec2() was renamed to g6tr_ec2_launch()
- g6tr_ec2_stop(), g6tr_ec2_start() and g6tr_ec2_terminate() were added
- g6tr_ec2 vignette was updated to describe new functionalities
g6tr 0.3.14
- added vignettes
- md_read_toy_data() got 2 bugs fixed in (#49 @krzyslom)
- data files delivered with this package are now named after vendors instead of projects
- project path was changed from md to g6tr
g6tr 0.3.13
- g6tr_newsletter_setup()
- was created so Qualtrics project, AWS and G6TR can be setup for Newsletter Analysis
- g6tr_rmd_report()
- was updated co it can provide template for checks
- g6tr_setup()
- was extended to use renv::init instead of packrat::init
- added vignettes
- g6tr_ec2()
- was divided to smaller functions
- verifies parameters on a startup
- has new parameters to configure AWS
g6tr 0.3.11
- NMF
- nmf_fit() weights parameter by default is set to FALSE
- g6tr_ec2() by defualt uses the newest recommended AMI
- minor
- reduced imports for
magrittrandNMFpackages - removed non-ascii srv_detect_outliers() manual
- reduced imports for
g6tr 0.3.10
- below nmf functions are able to take weights into the account
- nmf_fit()
- nmf_breakdowns()
- mmf_descibre_likert()
- g6tr_setup() creates checks/checks.Rmd in the new project
g6tr 0.3.9
- added MaxDiff functions
- md_read_data()
- md_assert_data()
- md_tidy_data()
- md_mlogit_data()
- md_mlogit_model()
- md_mlogit_stats()
- md_apply_labels()
- md_write_xlsx()
- md_stan_data()
- md_stan_model()
- md_stan_sgmts()
g6tr 0.3.6
- g6tr_update() allows to update g6tr package, the moment you set github acc token under GTHUB_PAT environmental variable
g6tr 0.3.4
- general
- reduced the number of dependent R packages
- user will need to install dependencies on his own for less popular functions
- reduced the number of dependent R packages
g6tr 0.3.3
- updated the following functions to follow a better RMD format;
- g6tr_rmd_report()
- g6tr_setup()
g6tr 0.3.2
- verify functions for data verification
- verify_ids()
- verify_completes()
- verify_labels()
- verify_classes()
- verify_levels()
- verify_NAs()
- vignette for verification functions added
- with examples of proper execution
- and occuring errors
g6tr 0.3.1
- g6tr options
- fonts are now hardcoded in zzz.R file as startup options and are reused as in the code as parameters
g6tr 0.3.0
- dynata API wrappers
- setup
- dynata_token()
- dynata_creds()
- dynata_info()
- dynata_attributes()
- dynata_countries()
- dynata_sources()
- dynata_categories()
- projects
- dynata_project_list()
- dynata_project_create()
- dynata_project_report()
- dynata_project_update()
- dynata_project_buy()
- dynata_project_close()
- events
- dynata_events()
- dynata_call()
- setup
g6tr 0.2.9
- qualtrics API wrappers
- qlt_tidy_question() tidies top commonly used question
- qlt_copy_survey() as a wrapper to copy the survey
- Qualtrics Vignette was extended with the chapter about data tidying.
- nmf
- nmf_plot() was updated to use
IBM Plex Mono Lightinstead ofAnonymous Profont
- nmf_plot() was updated to use
- updates to documentation
g6tr 0.2.8.2
- srv_
-
srv_gather_MR()added. Gather Multiple Response variables and replaces the column names or label if you wish. -
srv_gather_MR_crunch()added. Gathers Multiple Response variables inCrunch. Allows to change subvariable names and description as well -
srv_detect_outliers()added. Detects and replaces outliers with a manually defined imputation (e.g. mean / median, NA or a value). -
srv_id_straightline()added. Detects and returns a vector of all potential straightliners.
-
g6tr 0.2.8.1
- g6tr_
g6tr_setup()- changes made to transition to packrat were reverted
- which means we still work with .Rproj files and we don’t use here::here in sripts/000_libraries
g6tr 0.2.8
- qualtrics API wrappers added
- qlt_set_creds()
- qlt_get_creds()
- qlt_import_survey()
- qlt_emb_data()
- qlt_get_data()
- qlt_list_questions()
g6tr 0.2.7
- g6tr_
-
g6tr_setup()extended the monorepo template by - allowing not to create an S3 bucket on AWS
- specfying setwd(here::her(‘scripts/project_name’)) in libraries
- not including .Rproj file in the monorepo template
-
g6tr 0.2.6.3
- Added a transparent theme
-
theme_g6tr()andg6tr_finalise_plot()now have atype = 'transparent'setting. -
g6tr_finalise_plot()now doesn’t save the plot by default.
-
g6tr 0.2.6.2
- Updated with newest brand guidelines provided by Plato
-
theme_g6tr()- Fonts
- Colors
-
g6tr_finalise_plot()- Fonts
- Colors
- Logo
-
g6tr 0.2.6.1
- g6tr_
-
g6tr_setup()extended the monorepo template by- option to create a new branch for a client project
- extending 000_libraries by aws.s3
-
g6tr 0.2.6
- Text Mining
-
tm_clean_text()- Function to clean text easily -
tm_wordcloud()- Function to create a ggplot2 wordcloud -
tm_ngram()- Function to create a count of ngrams -
tm_visualize_ngrams()- Function to visualize the ngrams with ggplot -
tm_coocurrance_network()- Function to create a coocurance network -
tm_network()- Similiar to tm_coocurrance_network but with calculated counts
-
g6tr 0.2.5
- theme_g6tr
- WHAT WAS ADDED?
- cjt_
- removed dependencies from purrr::discard that changed behavior between 0.2.5 and 0.3.0 purrr versions
g6tr 0.2.4.2 and 0.2.4.3
- g6tr_
-
g6tr_setup()extended by the template for monorepo
-
g6tr 0.2.4.1
- prepare g6tr for build at Monorepo
- tabu_search vignette grammar updates by our boy Stefan
g6tr 0.2.4
- Clean up
- Renamed functions so they have grouping prefixes
- Renamed datasets so they have grouping prefixes
g6tr 0.2.3.2
- Clean up
- archived
protocol(),survplotandcodebookfunctions - and moved their vignettes to the
dev/directory
- archived
g6tr 0.2.3.1
- Typing Tools
- Extended the manual page of the
?tt_fitworkflow
- Extended the manual page of the
- NMF
- Extended the description of the vignette
- NMF
nmf_silhouette
g6tr 0.2.3
-
tabu_searchimplemented in 0.1.9 was extended with- the use case of
cjt_fintess_generator - the use case of
cjt_get_neighbors_of_candidate_generator
- the use case of
g6tr 0.2.0
- NMF with
nmf_fitnmf_breakdownsnmf_predictnmf_plotnmf_mapsnmf_stats-
index_likert,index_mean(for continuous variables) -
nmf_describe_likert,nmf_describe_continuous
- Factor Analysis with
fa_screefa_fitfa_describe
- And for the comparison
fa_nmf_compare
g6tr 0.1.9
-
tabu_search()was implemented https://en.wikipedia.org/wiki/Tabu_search#Pseudocode
g6tr 0.1.8.1
-
check_comments()is redisgned so it’s combined of 5 small functions for each criterion stringi,drakeandqdapwere added to the Dockerfile
g6tr 0.1.7
- extended the
setupfunction so it also provides an R package structure - changed default
packrat = TRUEvalue in thesetupfunction toFALSE
g6tr 0.1.6
- integrated
drakeinto the workflow [#6]
g6tr 0.1.4
-
check_documentation()function. [#5]