Important MCQs R Package Development 13

The post is about MCQs R Package Development Quiz. The quiz also contains questions about git. There are a total of 17 questions and some of the questions have multiple correct answers. Let us start with MCQs R Package Development.

Online MCQs about R Package Development

1. Which of the following files and subdirectories will be included in the initial package directory if you create a new package using the ‘create’ function from ‘devtools’?

 
 
 
 
 
 
 
 
 
 
 

2. For packages that require C code, what should be installed on your system?

 
 
 
 

3. What is the purpose of the Imports field in the DESCRIPTION file?

 
 
 
 

4. When a test fails in a call to expect_that(), what happens?

 
 
 
 

5. Which of the following are good reasons for open-sourcing your software?

 
 
 
 

6. Which of the following statements correctly describes how R functions should be defined with the package directory?

 
 
 
 

7. Which of the following are good reasons to build an R Package?

 
 
 
 

8. Which of the following files and folders are required in an R package?

 
 
 
 
 
 

9. What is Git?

 
 
 
 

10. What is a pull request on GitHub?

 
 
 
 

11. Which of the following functions from the `devtools` package are you likely to use often, rather than just once per package, when building a package?

 
 
 
 

12. How is attaching a package namespace different from loading a namespace?

 
 
 
 

13. The GNU General Public License is called a copyleft license because

 
 
 
 

14. In which sub-directory of an R package should tests be placed?

 
 
 
 

15. What does the is_a() function do in the context of testthat?

 
 
 
 

16. What does the ::: operator do?

 
 
 
 

17. What is the purpose of the DESCRIPTION file in a package?

 
 
 
 

MCQs R Package Development with Answers

R FAQS Logo: MCQs R Package Development
  • Which of the following are good reasons to build an R Package?
  • Which of the following files and folders are required in an R package?
  • Which of the following files and subdirectories will be included in the initial package directory if you create a new package using the ‘create’ function from ‘devtools’?
  • Which of the following functions from the devtools package are you likely to use often, rather than just once per package, when building a package?
  • What is the purpose of the DESCRIPTION file in a package?
  • Which of the following statements correctly describes how R functions should be defined with the package directory?
  • How is attaching a package namespace different from loading a namespace?
  • For packages that require C code, what should be installed on your system?
  • What is the purpose of the Imports field in the DESCRIPTION file?
  • Which of the following are good reasons for open-sourcing your software?
  • When a test fails in a call to expect_that(), what happens?
  • What does the is_a() function do in the context of testthat?
  • In which sub-directory of an R package should tests be placed?
  • What is Git?
  • What is a pull request on GitHub?
  • The GNU General Public License is called a copyleft license because
  • What does the ::: operator do?

https://itfeature.com, https://gmstat.com

Leave a Reply

Discover more from R Language Frequently Asked Questions

Subscribe now to keep reading and get access to the full archive.

Continue reading