KentonWhite / ProjectTemplate

A template utility for R projects that provides a skeletal project.
http://projecttemplate.net
GNU General Public License v3.0
622 stars 159 forks source link

Support underscore in data file names #301

Closed lyh970817 closed 4 years ago

lyh970817 commented 4 years ago

Report an Issue / Request a Feature

I'm submitting a (Check one with "x") :


Issue Severity Classification -

(Check one with "x") :

Expected Behavior

when data files in the 'data' folder have names in underscore (e.g. dat_raw) the loaded data frame should have identical names to the file.

Current Behavior

When loading a file named 'dat_raw', the loaded data frame is named as 'dat.raw'.

Steps to Reproduce Behavior
Version Information
KentonWhite commented 4 years ago

Should be straightforward. I'll work on it this weekend.

lyh970817 commented 4 years ago

Should be straightforward. I'll work on it this weekend.

Thank you so much!

KentonWhite commented 4 years ago

This has been added. You can check it out in in PR. It will take about a week for this to show up on CRAN. There is a config var underscore_variables that can be set to TRUE. New projects will default to TRUE. Old projects when migrated will go to FALSE so that we don't break projects.