diff --git a/.gitignore b/.gitignore index 65f3544..2cc57db 100644 --- a/.gitignore +++ b/.gitignore @@ -19,7 +19,7 @@ /*.Rcheck/ # RStudio files -.Rproj.user/ +R/.Rproj.user/ # produced vignettes vignettes/*.html diff --git a/.Rbuildignore b/R/.Rbuildignore similarity index 90% rename from .Rbuildignore rename to R/.Rbuildignore index bafeb4c..7a25587 100644 --- a/.Rbuildignore +++ b/R/.Rbuildignore @@ -5,6 +5,6 @@ ^LICENSE\.txt$ ^NEWS$ ^cran-comments\.md$ -^manuscript +^manuscript$ ^icon$ ^\.github$ diff --git a/.lintr b/R/.lintr similarity index 100% rename from .lintr rename to R/.lintr diff --git a/DESCRIPTION b/R/DESCRIPTION similarity index 76% rename from DESCRIPTION rename to R/DESCRIPTION index c589ec3..f83268b 100644 --- a/DESCRIPTION +++ b/R/DESCRIPTION @@ -11,13 +11,13 @@ Authors@R: person("German Cancer Research Center (DKFZ)", role="cph") ) Description: - Location- and scale-invariant Box-Cox and Yeo-Johnson power transformations - allow for transforming variables with distributions distant from 0 to - normality. Transformers are implemented as S4 objects. These allow for - transforming new instances to normality after optimising fitting parameters on - other data. A test for central normality allows for rejecting transformations - that fail to produce a suitably normal distribution, independent of sample - number. + Location- and scale-invariant Box-Cox and Yeo-Johnson power transformations + allow for transforming variables with distributions distant from 0 to + normality. Transformers are implemented as S4 objects. These allow for + transforming new instances to normality after optimising fitting parameters + on other data. A test for central normality allows for rejecting + transformations that fail to produce a suitably normal distribution, + independent of sample number. URL: https://github.com/oncoray/power.transform BugReports: https://github.com/oncoray/power.transform/issues License: EUPL diff --git a/LICENSE.txt b/R/LICENSE.txt similarity index 100% rename from LICENSE.txt rename to R/LICENSE.txt diff --git a/NAMESPACE b/R/NAMESPACE similarity index 100% rename from NAMESPACE rename to R/NAMESPACE diff --git a/NEWS.md b/R/NEWS.md similarity index 100% rename from NEWS.md rename to R/NEWS.md diff --git a/R/AccessorsMutatorsLambda.R b/R/R/AccessorsMutatorsLambda.R similarity index 100% rename from R/AccessorsMutatorsLambda.R rename to R/R/AccessorsMutatorsLambda.R diff --git a/R/AccessorsMutatorsScale.R b/R/R/AccessorsMutatorsScale.R similarity index 100% rename from R/AccessorsMutatorsScale.R rename to R/R/AccessorsMutatorsScale.R diff --git a/R/AccessorsMutatorsShift.R b/R/R/AccessorsMutatorsShift.R similarity index 100% rename from R/AccessorsMutatorsShift.R rename to R/R/AccessorsMutatorsShift.R diff --git a/R/AccessorsTransformationMethod.R b/R/R/AccessorsTransformationMethod.R similarity index 100% rename from R/AccessorsTransformationMethod.R rename to R/R/AccessorsTransformationMethod.R diff --git a/R/Checks.R b/R/R/Checks.R similarity index 100% rename from R/Checks.R rename to R/R/Checks.R diff --git a/R/FindParameters.R b/R/R/FindParameters.R similarity index 100% rename from R/FindParameters.R rename to R/R/FindParameters.R diff --git a/R/GoodnessOfFit.R b/R/R/GoodnessOfFit.R similarity index 100% rename from R/GoodnessOfFit.R rename to R/R/GoodnessOfFit.R diff --git a/R/ParameterEstimatorEDF.R b/R/R/ParameterEstimatorEDF.R similarity index 100% rename from R/ParameterEstimatorEDF.R rename to R/R/ParameterEstimatorEDF.R diff --git a/R/ParameterEstimatorMLE.R b/R/R/ParameterEstimatorMLE.R similarity index 100% rename from R/ParameterEstimatorMLE.R rename to R/R/ParameterEstimatorMLE.R diff --git a/R/ParameterEstimatorRaymaekers.R b/R/R/ParameterEstimatorRaymaekers.R similarity index 100% rename from R/ParameterEstimatorRaymaekers.R rename to R/R/ParameterEstimatorRaymaekers.R diff --git a/R/ParameterEstimatorSkewnessKurtosis.R b/R/R/ParameterEstimatorSkewnessKurtosis.R similarity index 100% rename from R/ParameterEstimatorSkewnessKurtosis.R rename to R/R/ParameterEstimatorSkewnessKurtosis.R diff --git a/R/ParameterEstimators.R b/R/R/ParameterEstimators.R similarity index 100% rename from R/ParameterEstimators.R rename to R/R/ParameterEstimators.R diff --git a/R/PlotQQPlot.R b/R/R/PlotQQPlot.R similarity index 100% rename from R/PlotQQPlot.R rename to R/R/PlotQQPlot.R diff --git a/R/PlotResidualPlot.R b/R/R/PlotResidualPlot.R similarity index 100% rename from R/PlotResidualPlot.R rename to R/R/PlotResidualPlot.R diff --git a/R/PlotUtilities.R b/R/R/PlotUtilities.R similarity index 100% rename from R/PlotUtilities.R rename to R/R/PlotUtilities.R diff --git a/R/TransformationBoxCox.R b/R/R/TransformationBoxCox.R similarity index 100% rename from R/TransformationBoxCox.R rename to R/R/TransformationBoxCox.R diff --git a/R/TransformationObjects.R b/R/R/TransformationObjects.R similarity index 100% rename from R/TransformationObjects.R rename to R/R/TransformationObjects.R diff --git a/R/TransformationSkeleton.R b/R/R/TransformationSkeleton.R similarity index 100% rename from R/TransformationSkeleton.R rename to R/R/TransformationSkeleton.R diff --git a/R/TransformationYeoJohnson.R b/R/R/TransformationYeoJohnson.R similarity index 100% rename from R/TransformationYeoJohnson.R rename to R/R/TransformationYeoJohnson.R diff --git a/R/Utilities.R b/R/R/Utilities.R similarity index 100% rename from R/Utilities.R rename to R/R/Utilities.R diff --git a/R/WeightingFunctionParameters.R b/R/R/WeightingFunctionParameters.R similarity index 100% rename from R/WeightingFunctionParameters.R rename to R/R/WeightingFunctionParameters.R diff --git a/R/WeightingFunctions.R b/R/R/WeightingFunctions.R similarity index 100% rename from R/WeightingFunctions.R rename to R/R/WeightingFunctions.R diff --git a/R/power.transform-package.R b/R/R/power.transform-package.R similarity index 100% rename from R/power.transform-package.R rename to R/R/power.transform-package.R diff --git a/R/sysdata.rda b/R/R/sysdata.rda similarity index 100% rename from R/sysdata.rda rename to R/R/sysdata.rda diff --git a/cran-comments.md b/R/cran-comments.md similarity index 100% rename from cran-comments.md rename to R/cran-comments.md diff --git a/man/assess_transformation.Rd b/R/man/assess_transformation.Rd similarity index 100% rename from man/assess_transformation.Rd rename to R/man/assess_transformation.Rd diff --git a/man/create_transformer_skeleton.Rd b/R/man/create_transformer_skeleton.Rd similarity index 100% rename from man/create_transformer_skeleton.Rd rename to R/man/create_transformer_skeleton.Rd diff --git a/man/find_transformation_parameters.Rd b/R/man/find_transformation_parameters.Rd similarity index 100% rename from man/find_transformation_parameters.Rd rename to R/man/find_transformation_parameters.Rd diff --git a/man/get_residuals.Rd b/R/man/get_residuals.Rd similarity index 100% rename from man/get_residuals.Rd rename to R/man/get_residuals.Rd diff --git a/man/huber_estimate.Rd b/R/man/huber_estimate.Rd similarity index 100% rename from man/huber_estimate.Rd rename to R/man/huber_estimate.Rd diff --git a/man/lambda-accessor-method.Rd b/R/man/lambda-accessor-method.Rd similarity index 100% rename from man/lambda-accessor-method.Rd rename to R/man/lambda-accessor-method.Rd diff --git a/man/lambda-mutator-method.Rd b/R/man/lambda-mutator-method.Rd similarity index 100% rename from man/lambda-mutator-method.Rd rename to R/man/lambda-mutator-method.Rd diff --git a/man/plot_qq_plot.Rd b/R/man/plot_qq_plot.Rd similarity index 100% rename from man/plot_qq_plot.Rd rename to R/man/plot_qq_plot.Rd diff --git a/man/plot_residual_plot.Rd b/R/man/plot_residual_plot.Rd similarity index 100% rename from man/plot_residual_plot.Rd rename to R/man/plot_residual_plot.Rd diff --git a/man/power.transform.Rd b/R/man/power.transform.Rd similarity index 100% rename from man/power.transform.Rd rename to R/man/power.transform.Rd diff --git a/man/power_transform.Rd b/R/man/power_transform.Rd similarity index 100% rename from man/power_transform.Rd rename to R/man/power_transform.Rd diff --git a/man/ragn.Rd b/R/man/ragn.Rd similarity index 100% rename from man/ragn.Rd rename to R/man/ragn.Rd diff --git a/man/revert_power_transform.Rd b/R/man/revert_power_transform.Rd similarity index 100% rename from man/revert_power_transform.Rd rename to R/man/revert_power_transform.Rd diff --git a/man/scale-accessor-method.Rd b/R/man/scale-accessor-method.Rd similarity index 100% rename from man/scale-accessor-method.Rd rename to R/man/scale-accessor-method.Rd diff --git a/man/scale-mutator-method.Rd b/R/man/scale-mutator-method.Rd similarity index 100% rename from man/scale-mutator-method.Rd rename to R/man/scale-mutator-method.Rd diff --git a/man/shift-accessor-method.Rd b/R/man/shift-accessor-method.Rd similarity index 100% rename from man/shift-accessor-method.Rd rename to R/man/shift-accessor-method.Rd diff --git a/man/shift-mutator-method.Rd b/R/man/shift-mutator-method.Rd similarity index 100% rename from man/shift-mutator-method.Rd rename to R/man/shift-mutator-method.Rd diff --git a/man/transformation-method-accessor-method.Rd b/R/man/transformation-method-accessor-method.Rd similarity index 100% rename from man/transformation-method-accessor-method.Rd rename to R/man/transformation-method-accessor-method.Rd diff --git a/man/transformationNone-class.Rd b/R/man/transformationNone-class.Rd similarity index 100% rename from man/transformationNone-class.Rd rename to R/man/transformationNone-class.Rd diff --git a/man/transformationPowerTransform-class.Rd b/R/man/transformationPowerTransform-class.Rd similarity index 100% rename from man/transformationPowerTransform-class.Rd rename to R/man/transformationPowerTransform-class.Rd diff --git a/man/transformation_box_cox.Rd b/R/man/transformation_box_cox.Rd similarity index 100% rename from man/transformation_box_cox.Rd rename to R/man/transformation_box_cox.Rd diff --git a/man/transformation_yeo_johnson.Rd b/R/man/transformation_yeo_johnson.Rd similarity index 100% rename from man/transformation_yeo_johnson.Rd rename to R/man/transformation_yeo_johnson.Rd diff --git a/power.transform.Rproj b/R/power.transform.Rproj similarity index 100% rename from power.transform.Rproj rename to R/power.transform.Rproj diff --git a/tests/testthat.R b/R/tests/testthat.R similarity index 100% rename from tests/testthat.R rename to R/tests/testthat.R diff --git a/tests/testthat/test-accessors-mutators.R b/R/tests/testthat/test-accessors-mutators.R similarity index 100% rename from tests/testthat/test-accessors-mutators.R rename to R/tests/testthat/test-accessors-mutators.R diff --git a/tests/testthat/test-estimators.R b/R/tests/testthat/test-estimators.R similarity index 100% rename from tests/testthat/test-estimators.R rename to R/tests/testthat/test-estimators.R diff --git a/tests/testthat/test-goodness-of-fit.R b/R/tests/testthat/test-goodness-of-fit.R similarity index 100% rename from tests/testthat/test-goodness-of-fit.R rename to R/tests/testthat/test-goodness-of-fit.R diff --git a/tests/testthat/test-transformation.R b/R/tests/testthat/test-transformation.R similarity index 100% rename from tests/testthat/test-transformation.R rename to R/tests/testthat/test-transformation.R