Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8332081
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T02:37:06+00:00 2026-06-09T02:37:06+00:00

R beginner with a two part question – I like the one class per

  • 0

R beginner with a two part question –

  1. I like the one class per file ‘rule’ in ‘other’ languages – is this a common practise in R also ?

  2. How would I go about doing this in R ? From the documentation I’ve read so far, I would have to create a package and use ‘require’. However, will I need to write man pages and documentation for each package ? (One file may contain a very small class that I don’t really want to document). Are there any alternative ways of doing this ?

Many thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T02:37:09+00:00Added an answer on June 9, 2026 at 2:37 am

    Three options for you:

    1. ProjectTemplate may have functionality that would let you load all source scripts in a given directory automatically.

    2. You can write a simple script that does it yourself by source()ing the output of dir(). taRifx::readdir does something similar to load all data files in a directory.

    3. Likely the best answer: put all your functions into a package, even if you don’t release it to CRAN. All .R files in the R directory automatically become part of the package when you build it. Bonus: documentation becomes easier as well (use roxygen2).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is definitely a beginner's question. There are two issues. The id in my
Absolute beginner question here. I have two lists in mathematica. The first one was
I'm quite a beginner at database design. I have two problems that I'd like
i m a beginner... i have added two different jQuery... one is pop up
I am a beginner and working on joomla 1.5. I have two question :
Okay, this might be a very silly beginner question, but: I've got an ClassA,
This might seem like a silly question, but after asking some questions on stackoverflow
I am a beginner learning Java. I have two classes, public class myClassA {
Please note I am a beginner to this. I have two questions: 1) How
sorry i'm a beginner and i can't determine how good a question this is,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.