Coder Social home page Coder Social logo

Comments (3)

dannyparsons avatar dannyparsons commented on September 10, 2024

The suggestion in the link above is not compatible with testthat and devtools which requires tests to be in a specific location.

One way to achieve this is here https://stackoverflow.com/a/31382772/6424231

It requires building the package from source with specific options:

devtools::build(binary=TRUE, args=c("--preclean", "--install-tests"))

The install the package binary file which is created e.g.

install.packages("cdms.products_0.0.0.9000.zip", repos = NULL, type = "win.binary")

Then you can run the tests using testthat:

testthat::test_package("cdms.products")

@lloyddewit Attached is a binary file for the package. Could you check you can install it and run the tests with the code above?

I'm looking into how you could do the build step directly from GitHub without needing the package source. In the meantime, try the file below.

cdms.products_0.0.0.9000.zip

from cdms.products.

lloyddewit avatar lloyddewit commented on September 10, 2024

@dannyparsons I downloaded the zip file.
I tried to install the zip file using the R command line in my VS Code terminal window.
I got an error:

image

This makes sense because my development environment is WSL Ubuntu, and the binary is for Windows.

So I opened RStudio in Windows and executed the R commands in my Windows R environment.

install.packages("C:/Users/steph/OneDrive/Desktop/FirefoxDownloads/cdms.products_0.0.0.9000.zip", repos = NULL, type = "win.binary")
testthat::test_package("cdms.products")

All tests passed.

image

So if we want to run testthat::test_package("cdms.products") as part of the Python layer testing, then we'll need to create a Linux binary, or build from sources.

from cdms.products.

dannyparsons avatar dannyparsons commented on September 10, 2024

Thanks for checking this. I'll check how to do something similar that will work on Linux.

from cdms.products.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.