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 8706259
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T03:34:20+00:00 2026-06-13T03:34:20+00:00

I have gotten an old package from CRAN that contains some R scripts, the

  • 0

I have gotten an old package from CRAN that contains some R scripts, the question that I have is how I can load those scripts automatically without the need to open and run them line by line, is there any way possible?
The package was called knnflex and it was deprecated from CRAN. There is a zip available for R for windows in:

http://cran.uvigo.es/web/packages/knnflex/index.html

but when one installs the package, it occurs a problem with the namespace, due to lack of compatibility (I dont put the problem or the solution here, because it was solved before in a thread in SO). I have included the namespace in the zip file with a trick that I found in this page, but some functions like predict are not recognized at all.

One turnaround that I make it was to download the tar.gz file, uncompress it and inside the R folder there are the scripts that make it possible to work. So actually I am loading those scripts one by one and then make it run separately line by line and it works.

So that is why I was asking if there is a way to call those scripts automatically.

Long story, but I think it can be helpful to other people also.
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-13T03:34:21+00:00Added an answer on June 13, 2026 at 3:34 am

    I haven’t cleaned it up much but I moved those source files into my github repo so if you have the devtools package installed you can install knnflex with the following commands…

    library(devtools)
    install_github("knnflex", "Dasonk")
    

    But really if you just want to load Rscripts then source is what you should be using.

    If you want something to run when you load R then you should put it in your .Rprofile file. You can learn more in ?Startup

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

Sidebar

Related Questions

I have gotten a great deal of help from KandadaBoggu on my last question
I was reviewing some of my old code and I have a method that
I have an old website that hasn't gotten much love over the years and
I have a multistop gradient created with colorzilla that I have successfully gotten to
have a brief question regarding innerHTML and input values that have been entered. See
I've noticed my old question has gotten closed due to lack of details and
I'm taking some AI classes and have learned about some basic algorithms that I
I have just gotten an upgrade from our IT guy on to Office 2010
I have gotten the following errors using ruby 1.9.2-p320 with Heroku's Taps-using 'db' commands
I have gotten myself into a catch 22 and cannot seem to find my

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.