Giter Site home page Giter Site logo

elric2718 / gitblog Goto Github PK

View Code? Open in Web Editor NEW

This project forked from imuncle/gitblog

0.0 0.0 0.0 740 KB

基于git issue的轻量级个人博客模板。

Home Page: https://imuncle.github.io/

License: MIT License

HTML 22.18% CSS 25.41% JavaScript 51.16% PHP 1.25%

gitblog's People

Contributors

elric2718 avatar imuncle avatar kytrun avatar

Watchers

 avatar

gitblog's Issues

Issues of Seagate external drive on MacOS

NFTS issue

Due to historical reasons, Apple does not like Windows, so it does not embrace the NFTS format which is widely used on Windows system. As a consequence, external drives of NFTS format can only be read on MacOS. There are two solutions to this problem.

  • Use the Mounty app.
  • Change the format from NFTS to ExFat. (Warning: this procedure will erase everything on the drive).

Extended file attribute

Due to some reason (I have not yet figured out), some files in the external hard drive will have the Extended file attribute, which can be checked by ls -l@. As a consequence, these files cannot be opened or copied.

Make R packages

Make a R package based on devtools (without C/Cpp functions)

Procedure

  1. Download needed package
    install.packages("devtools"); install.packages("roxygen2")
  2. Create the package folder
    devtools::create("path_to_myPkg")
    Then go to this folder, setwd("path_to_myPkg")
  3. Copy R scripts in path_to_myPkg/R. If external packages are used, use otherPkg::func. Accordingly, update used packages in DESCRIPTION.
  4. Document functions

@param
@return
@export
Then, devtools::document(). If the package roxygen2 is not used, need to update NAMESPACE manually to export needed packages. To generate a vignette, use usethis::use_vignette("introduction").

  1. Install the package
    devtools::install()
    or push the folder to github, then
    devtools::install_github("yourusername/myPkg")

References

Make a R package with C/Cpp functions

Procedure

Caveats

  • To fix fatal error: Rcpp.h: No such file or directory, need to add LinkingTo: Rcpp in DESCRIPTION. This can also be avoided by using package.skeleton() when creating the package folder.
  • A macOS update (>=10.15) uninstalled the XCode developer tools.

To fix fatal error: 'stdio.h' file not found, do
export CPATH="/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/"

  • When building R package using R CMD build, it might need an appropriate R version. If the default one is not the wanteded, try /usr/local/bin/R.
  • For errors related to math.h, replace #include_next<math.h> with #include</Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1/math.h>.
  • There might be some errors in R CMD check, try first install.packages(pkgKitten) before package.skeleton.

References

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.