6.1 makeImport

When you are building a package to submit to CRAN and you need to have namespace calls for any function that is being imported. It is a pain to manually parse through the code looking for all the *::* and writing it in the roxygen2 header. This function does that for you.

You can write normally your script with the namespace calls and in the end run the function and you can paste the output into the header. (or use it as part of makeOxygen or makeOxyFile)

The function is written to work on single files or whole directories, like a package R subdirectory.

The output can be set to return the format needed for either an roxygen header, NAMESPACE or the DESCRIPTION

6.1.1 DESCRIPTION

## Imports:

To write the output directly into the Imports field of the DESCRIPTION file, specify path to DESCRIPTION in desc_loc

6.1.2 Roxygen

##  
## ../../R/makeImport.R
##  
## ../../R/check_attach.R
## 
##  
## ../../R/create_yml.R
## 
##  
## ../../R/defaults.R
## 
##  
## ../../R/get_oxy.R
## 
##  
## ../../R/importAddin.R
## 
##  
## ../../R/interOxyAddIn.R
## 
##  
## ../../R/ls_param.R
## 
##  
## ../../R/makeDictionary.R
## 
##  
## ../../R/makeImport.R
## 
##  
## ../../R/makeOxyFile.R
## 
##  
## ../../R/makeOxygen.R
## 
##  
## ../../R/makeSeeAlso.R
## 
##  
## ../../R/moga.R
## 
##  
## ../../R/oxygenAddin.R
## 
##  
## ../../R/pretty_namespace.R
## 
##  
## ../../R/pretty_utils.R
## 
##  
## ../../R/rm_oxylines.R
## 
##  
## ../../R/rmOxygen.R
## 
##  
## ../../R/something.R
## 
##  
## ../../R/tabular.R
## 
##  
## ../../R/untangle_examples.R
## 
##  
## ../../R/untangle.R
## 
##  
## ../../R/zzz.R

6.1.2.1 importFrom cutoff

Setting the parameter cut to an integer value allows for control of how many functions to list in a package before concatenating the importFrom to an import. This is useful when there are many functions being used throughout the package from the same library and it is practically the same as just importing the whole library

##  
## ../../R/oxygenAddin.R
##  
## ../../R/oxygenAddin.R