Please check the attached document below. (You don’t need to meet all the requirements, i.e. the 3rd requirement)
Your job is improved my package to various ways. For examples,
- In the current implementation, only one CPU is used in the algorithm. Make it possible to use more than one CPUs. Note that you should let users to decide if they want to use parallelization.
- Allow users to specify file names to run the model rather than loading the whole data in the main process.
- Functions are written in pure R, it is possible, for example, to convert the function
lm1to c++ code. Your might need look at how RcppArmadillo’s fastLm.R and fastLm.cpp. (Spoiler, it is not easy, but if you insist, here is a some slides about it: https://scholar.princeton.edu/sites/default/files/q-aps/files/slides_day4_am.pdf) - Write tests and documentations
- More models? Logistic regression? GLM?
- You should also write a few pages Rmarkdown documentation to explain your work. One recommendation way is to put the documentation as a vignette. (If you want to use
tidyversein the the vignettes, runusethis::use_package("tidyverse", type = "suggest")to addtidyversein the suggest field of DESCRIPTION.)


0 comments