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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:02:56+00:00 2026-05-28T06:02:56+00:00

I have a R package that i need to use. The package in question

  • 0

I have a R package that i need to use. The package in question is BQuant.

The package is downloadable as a zip file which (I found out later) contains windows binaries. First I tried to extract these binaries and pack it in .tar.gz And i installed the .tar.gz package using install.packages().

This didn’t give any error but when i tried to call any function of the package R gave me the error: Error: could not find function <function_name>.

So then i found the source files and tried extracting and repacking in .tar.gz. This time, during the installation the error was: **ERROR: Windows-only package**

When i checked the description in the source files it said OS_type: windows. I removed that line and tried again. This time the error was:

gcc -std=gnu99 -shared -o BQuant.so dp.o -L/usr/lib/R/lib -lR
dp.o: file not recognized: File format not recognized
collect2: ld returned 1 exit status
make:  ***[BQuant.so] Error 1
ERROR: compilation failed for package ‘BQuant’

So in brief:
I need to know whether this windows package can be installed in Linux.

  • 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-05-28T06:02:57+00:00Added an answer on May 28, 2026 at 6:02 am

    I think you need to change a bit in the ‘BQuant\R\fcn_preproc.r’ file.

    This file loads the dll file, which is a windows only file.

    .First.lib <- function(lib, pkg) 
    {
       library.dynam("BQuant.dll")
    }
    

    You might try to add a test based on platform.

    .First.lib <- function(lib, pkg) 
    {
       if(.Platform$OS.type == 'windows'){
          library.dynam("BQuant.dll")
       }
       if(.Platform$OS.type == 'unix'){
          library.dynam("BQuant.so")
       }
    }
    

    This might do the trick.
    Also don’t forget to change the os line the dependent file.

    To try to compile the .c file, you can use this command from terminal.

    R CMD SHLIB -o BQuant.so dc.c
    

    As per : http://www.ats.ucla.edu/stat/r/library/interface.pdf and http://www.maths.lancs.ac.uk/~prangle/CinR/CinR.pdf

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

Sidebar

Related Questions

Fresh Asking of this Question-> I have a WIX file that I need to
I am completely new to python but I found a package that I need
I have a package that I just made and I have an old-mode that
I have a DTS package that drops a table then creates it and populates
I have an SSIS package that connects to a mysql server and attempts to
I have an SSIS package that does the following: Selects the connection strings from
I have an SSIS package that executes several tasks. I manually added an event
I have an SSIS package that I've saved under Maintenance Plans on SQL Server
I have an SSIS package that queries data from a view using an SQL
Right now I have an SSIS package that runs every morning and gives me

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.